Click here to Skip to main content
16,017,238 members
Home / Discussions / COM
   

COM

 
GeneralRe: SysAllocString hangs on Windows 2003 server Pin
jan larsen26-May-03 22:18
jan larsen26-May-03 22:18 
QuestionHow to check if an instance still exists? Pin
Jonathan de Halleux22-May-03 1:09
Jonathan de Halleux22-May-03 1:09 
GeneralAbout ISupporErrorInfo in Atl/com Pin
satishsilla21-May-03 23:49
satishsilla21-May-03 23:49 
GeneralRe: About ISupporErrorInfo in Atl/com Pin
Giles22-May-03 2:30
Giles22-May-03 2:30 
GeneralRe: About ISupporErrorInfo in Atl/com Pin
geo_m26-May-03 7:49
geo_m26-May-03 7:49 
GeneralClass to Variant Pin
makaveli1998200221-May-03 9:00
makaveli1998200221-May-03 9:00 
GeneralRe: Class to Variant Pin
AlexO21-May-03 10:16
AlexO21-May-03 10:16 
Generalpassing interfacepointers in dcom Pin
ELCH21-May-03 2:29
ELCH21-May-03 2:29 
Hi,

I build a singelton comobject, to be a 'meetingpoint' for different processes located on remote computers.
I've got a method called:
[id(2), helpstring("method ConnectMachine")] HRESULT ConnectMachine([in] IUnknown* pUnk, [in] BSTR strMachineName);
which connects a client to the meetingpoint and passes an interfacepointer to an interface implemented on the client, for callbacks.
The 'meetingpoint' objects saves the machinename and the interfacepointer
in a list for every connected machine.
If I now use this interfacepointer to call methods on a client this is no problem, and works well.
But i want to go a little further, and want to retrieve an interfacepointer from one client to another over the meetingpoint by a method called:
[id(3), helpstring("method GetMachineInterface")] HRESULT GetMachineInterface([in] BSTR strMachineName, [out] IUnknown** ppvObject);
which should retrieve an interfacepointer by the machinename.
If I try this, a get the errormessge "invalid access to memory location" on the client side.
Does anybody known why?

Thanks for help!


Confused | :confused:

Elch
GeneralRe: passing interfacepointers in dcom Pin
AlexO21-May-03 10:18
AlexO21-May-03 10:18 
GeneralRe: passing interfacepointers in dcom Pin
ELCH21-May-03 19:18
ELCH21-May-03 19:18 
GeneralRe: passing interfacepointers in dcom Pin
AlexO22-May-03 4:31
AlexO22-May-03 4:31 
GeneralRe: passing interfacepointers in dcom Pin
ELCH22-May-03 20:20
ELCH22-May-03 20:20 
GeneralRe: passing interfacepointers in dcom Pin
AlexO23-May-03 4:54
AlexO23-May-03 4:54 
GeneralRe: passing interfacepointers in dcom Pin
Vi225-May-03 17:42
Vi225-May-03 17:42 
GeneralRe: passing interfacepointers in dcom Pin
John M. Drescher27-May-03 6:00
John M. Drescher27-May-03 6:00 
Generaladdin, that comments code Pin
schaereran@gmx.net20-May-03 22:10
schaereran@gmx.net20-May-03 22:10 
GeneralMIDL Compiler problem Pin
msh20-May-03 2:32
msh20-May-03 2:32 
GeneralRe: MIDL Compiler problem Pin
valikac20-May-03 8:48
valikac20-May-03 8:48 
GeneralRe: MIDL Compiler problem Pin
geo_m26-May-03 7:55
geo_m26-May-03 7:55 
GeneralRe: MIDL Compiler problem Pin
J. Dunlap26-May-03 8:32
J. Dunlap26-May-03 8:32 
QuestionError code 0x80010005 mean what and how to avoid it? Pin
i--19-May-03 22:07
i--19-May-03 22:07 
AnswerRe: Error code 0x80010005 mean what and how to avoid it? Pin
Anonymous27-May-03 22:19
Anonymous27-May-03 22:19 
Generalcreation of client of an EXE Com server . Pin
satishsilla19-May-03 18:14
satishsilla19-May-03 18:14 
GeneralRe: creation of client of an EXE Com server . Pin
valikac20-May-03 8:50
valikac20-May-03 8:50 
GeneralRe: creation of client of an EXE Com server . Pin
satishsilla21-May-03 23:34
satishsilla21-May-03 23:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.