com-server

How to create multiple application instances in CANoe COM Server Interface

非 Y 不嫁゛ 提交于 2020-06-09 06:27:40
问题 I’m trying write client application to CANoe (application by Vector). I can fully control one application trough COM server objects but if i create a new application instance, gCanAppB, the original instance gCanAppA is closed. How can i tell to the COM Server, that open the new instance in new application window? My source code: Set gCanAppA = CreateObject( "CANoe.Application") Set gCanAppB = CreateObject( "CANoe.Application") gCanAppA.Open ("Easy.cfg") gCanAppA.CAPL.Compile gCanAppA

How to create multiple application instances in CANoe COM Server Interface

浪尽此生 提交于 2020-06-09 06:27:12
问题 I’m trying write client application to CANoe (application by Vector). I can fully control one application trough COM server objects but if i create a new application instance, gCanAppB, the original instance gCanAppA is closed. How can i tell to the COM Server, that open the new instance in new application window? My source code: Set gCanAppA = CreateObject( "CANoe.Application") Set gCanAppB = CreateObject( "CANoe.Application") gCanAppA.Open ("Easy.cfg") gCanAppA.CAPL.Compile gCanAppA

Out of Process COM Server - One server process per calling process?

五迷三道 提交于 2019-12-23 01:45:37
问题 I have an out of process com server, specifying CLSCTX_LOCAL_SERVER as the context, and REGCLS_MULTIPLEUSE for the connection type. This results in a single server process being reused by multiple calls from multiple clients. I’m now wanting to make some changes to the server, which unfortunately can not work with a single process shared amongst clients (there are reasons for this, but they're long winded). I know you can set the server to use REGCLS_SINGLEUSE as the connection type, and this

Python COM server throws 'module' object has no attribute 'VARIANT'

主宰稳场 提交于 2019-12-13 17:54:57
问题 Here is a COM server implemented in Python: from win32com.server.exception import COMException import pythoncom import sys import os from string import Template import logging import logging.config class Connector: _reg_clsctx_ = pythoncom.CLSCTX_LOCAL_SERVER _reg_clsid_ = "{0CE25AEB-1AFA-4DA7-97BD-F93CDBFB376C}" _reg_desc_ = "Python Test COM Server" _reg_progid_ = "Compy.Connect" _public_methods_ = ['Process', 'Status'] _public_attrs_ = [] _readonly_attrs_ = [] def Process(self, what): pass

How to read all excel data with com server update

空扰寡人 提交于 2019-12-12 04:11:55
问题 for j=1:??? Loc = [func(j) '1:' func(j) '803']; Result = get(Excel.Activesheet, 'Range', Loc); Result.Select; expResult = Excel.Selection.Value func converts number to character of excel column. I want to read all data. If I write a number for ??? e.g 100 only Read 100 columns. 来源: https://stackoverflow.com/questions/37209193/how-to-read-all-excel-data-with-com-server-update

Excel 2007 UDF: how to add function description, argument help?

放肆的年华 提交于 2019-12-03 07:39:59
问题 The description I am writing a couple of Excel UDFs in COM Servers. I'd like to get the standard help ( Insert Function dialog) that you get when you press fx . Yes, I can see my COM Server listed in among the Category drop down, but I also see Equals, GetHashCode, GetType, and ToString (which are fairly undesirable to expose to the Excel user), selecting my COM Server brings up the *Function Arguments*[1] dialog with no argument information and no description of the function. Here is the

Excel 2007 UDF: how to add function description, argument help?

只谈情不闲聊 提交于 2019-12-02 21:07:53
The description I am writing a couple of Excel UDFs in COM Servers. I'd like to get the standard help ( Insert Function dialog) that you get when you press fx . Yes, I can see my COM Server listed in among the Category drop down, but I also see Equals, GetHashCode, GetType, and ToString (which are fairly undesirable to expose to the Excel user), selecting my COM Server brings up the *Function Arguments*[1] dialog with no argument information and no description of the function. Here is the lameness that I get: Insert Function dialog http://www.iwebthereforeiam.com/files/Insert%20function

CDialog::Create fails for dialog with ActiveX control

萝らか妹 提交于 2019-12-01 06:06:52
I have a module that creates a modeless dialog containing an ActiveX control. This module was part of an MFC EXE application and the creation of the dialog worked fine. Recently, I moved the module out into an ATL/COM server and copied the dialog resource from the EXE into the COM server. When trying to create the modeless dialog using CDialog::Create() an error happens. I debugged into CDialog::Create and noticed that it fails in ::CreateDialogIndirect() which returns NULL and GetLastError returns 0 . I changed the "No Fail Create" flag to True in the dialog resource properties and I get more

CDialog::Create fails for dialog with ActiveX control

筅森魡賤 提交于 2019-12-01 03:39:42
问题 I have a module that creates a modeless dialog containing an ActiveX control. This module was part of an MFC EXE application and the creation of the dialog worked fine. Recently, I moved the module out into an ATL/COM server and copied the dialog resource from the EXE into the COM server. When trying to create the modeless dialog using CDialog::Create() an error happens. I debugged into CDialog::Create and noticed that it fails in ::CreateDialogIndirect() which returns NULL and GetLastError

Get Process ID of COM Server

拈花ヽ惹草 提交于 2019-11-26 23:23:02
问题 I'm doing some automation via a combination of windows message sending directly to HWNDs and calls to a COM server exposed by the automated application. If there is more than one instance running, I need to be able to determine the process ID of the COM server so I can hit the same instance with the COM call as the one I'm sending windows messages to. I can enumerate all the running COM servers with the running object table and get back monikers for all of them, but the COM objects themselves