Click to See Complete Forum and Search --> : HELP - COM Local Server


Chi_guy
July 17th, 1999, 02:58 PM
Can anyone tell me why it is that when I create a local server and successfully "CoRegisterClassObject" my class factory, my "client" application is unable to "CoCreateInstance" the COM object. I've stepped through the code, and I see the class factory return the correct interface. However, the client receives "No such interface is supported."

Satya Ramesh
July 19th, 1999, 01:08 AM
have you registered proxy stub dll ?

Chi_guy
July 19th, 1999, 11:34 AM
Do I have to register something else besides the class factory in my EXE application?

Chi_guy
July 19th, 1999, 04:59 PM
Thanks for any help, the problem was I didn't have the proxy stub dll registered.

Satya Ramesh
July 20th, 1999, 04:50 AM
For a local server you have to do marshaling to pass data.
This can be done in 3 ways.
Standard marshalling : make the proxystub dll using nmake and register it using regsvr32.
Typelibrary marshalling : if you use IDispatch interface / Ole automation types only in your server
you can use the typelib marshaller supplied by microsoft ( oleaut32.dll )
Custom marshalling : You can implement IMarshal interface and write your own code.

most cases standard marshalling will do.

-Satya
n.satyaramesh@blr.spcnl.co.in