Questions tagged [com-server]
42 questions
0
votes
1 answer
tlibimp.exe output differs on different OSes
I'm trying to import a third-party .NET type library (COM server DLL) using tlibimp.exe (version 11.0). This basically works fine, but the results differ when I run it on different computers, one running Windows XP, the other Windows 7. What's…

Hendrik
- 569
- 3
- 12
0
votes
1 answer
Is Windows Com Server with multiple clients connected multi threaded?
I have a com server that is started in the following way:
extern "C" int WINAPI _tWinMain(HINSTANCE hInstance,
HINSTANCE /*hPrevInstance*/, LPTSTR lpCmdLine, int /*nShowCmd*/)
{
lpCmdLine = GetCommandLine(); //this line necessary for…

Cole W
- 15,123
- 6
- 51
- 85
0
votes
0 answers
Implementing Out of Process COM Server, one server process per calling process
I need to implement an out-of-process com server which initiates a com process per client process. An answer to this same question suggests using different GUID's for each server.
My COM server is ATL & I invoke it simple by CoCreateInstance. The…

grunt
- 662
- 1
- 8
- 24
0
votes
0 answers
How to read all excel data with com server update
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…

hileli
- 21
- 2
0
votes
2 answers
Out of Process COM Server - can't create file
I'm attempting to run the following piece of code from an Out-of-Process COM Server in its main thread, however no file is ever created.
I wondered if anyone can tell me why this is?
FILE *f = fopen("Log.txt", "w");
fputs("Tony", f);
fputs("\n",…

Tony The Lion
- 61,704
- 67
- 242
- 415
0
votes
1 answer
Permission required for CreateInstance of COMserver from a service
I have created a simple windows service (e.g. MyService.exe) and a (ATL) COMserver (e.g. MyCOMServer.exe).
I would like the service to create an instance of an interface exposed by MyCOMServer. The COMserver currently does nothing.
It works if the…

Kim
- 37
- 7
0
votes
1 answer
How to create multiple application instances in CANoe COM Server Interface
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…

akuller
- 3
- 5
0
votes
1 answer
Getting ref parameter from COM with InvokeMember call
I am trying to call a method of a COM server using InvokeMember.
The method has the following signature:
void InsUpdOpInstance(
[in] long inIdOperDescr,
[in] long inIsWait,
…

nnspu
- 11
- 3
0
votes
0 answers
How to reset a comserver via telnet using a python script with telnetlib
I want to write a python script that automatically resets a com server.
For this aim, the script has to transmit the commands "2","5","y"
I already wrote this little program:
import sched
import time
import sys
from LoggerTelnet import…

Marcel Gangwisch
- 8,856
- 4
- 23
- 32
0
votes
0 answers
.NET - is it possible to run an out of process COM Server in a WinForms app?
I want to run a COM Server (out of process) as part of a WinForms application - targeting .NET 2.0
The sample code I found here: http://support.microsoft.com/kb/977996 uses a message loop, which will most likely interfere with the WinForms app
Is it…

Joon
- 2,127
- 1
- 22
- 40
0
votes
0 answers
Client Needed for COM Server Created in C#
I looked on StackOverflow, but did not see a posted question/solution for this (but maybe missed).
I am looking for a way to test my COM server that is created in C# (i.e. registered for COM interop). When I try and add a reference to the COM object…

Buck
- 599
- 7
- 20
-1
votes
2 answers
How do I identify if a client of a Microsoft COM-Server is out-of-process or within the process?
I am not so familiar with the Microsoft COM Technology. In a nutshell I have an Microsoft Out-of-process COM Server that is implemented in the executable file foo.exe. The environment is C++ and the Microsoft Foundation Classes Framework (MFC).…

kbisang
- 558
- 4
- 13