|
-
July 17th, 1999, 02:58 PM
#1
HELP - COM Local Server
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."
-
July 19th, 1999, 01:08 AM
#2
Re: HELP - COM Local Server
have you registered proxy stub dll ?
-
July 19th, 1999, 11:34 AM
#3
Re: HELP - COM Local Server
Do I have to register something else besides the class factory in my EXE application?
-
July 19th, 1999, 04:59 PM
#4
Re: HELP - COM Local Server
Thanks for any help, the problem was I didn't have the proxy stub dll registered.
-
July 20th, 1999, 04:50 AM
#5
Re: HELP - COM Local Server
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
[email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|