CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 1999
    Posts
    3

    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."


  2. #2
    Join Date
    Apr 1999
    Posts
    9

    Re: HELP - COM Local Server

    have you registered proxy stub dll ?


  3. #3
    Join Date
    Jul 1999
    Posts
    3

    Re: HELP - COM Local Server

    Do I have to register something else besides the class factory in my EXE application?



  4. #4
    Join Date
    Jul 1999
    Posts
    3

    Re: HELP - COM Local Server

    Thanks for any help, the problem was I didn't have the proxy stub dll registered.


  5. #5
    Join Date
    Apr 1999
    Posts
    9

    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
  •  





Click Here to Expand Forum to Full Width

Featured