CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 1999
    Location
    Southampton, England
    Posts
    45

    VB accessing a DCOM interface

    I have a service (VC++) which exposes a COM interface. When I register the proxy stub on a client machine it does not register a ProgID.

    Is the a build setting to make this happen. Otherwise, how can I get a VB app to access this interface given only the GUID and not a ProgID ?

    Brendan Baird

  2. #2
    Guest

    Re: VB accessing a DCOM interface

    I have the same question, anyone can help us out?


  3. #3
    Join Date
    Mar 2000
    Posts
    4

    Re: VB accessing a DCOM interface



    perhaps a call to the function ProgIDFromCLSID defined in the ole32.dll

    just an idea!


  4. #4
    Join Date
    Mar 2000
    Location
    RJ, Brazil
    Posts
    7

    Re: VB accessing a DCOM interface

    Yes, you will need to use ProgIDFromCLSID from ole32.dll, but you cant access this interface with early bound without the use of other com interface functions.

    the QueryInterface is the aswer for your problem but in vb is very boring to do this.

    The use of late bound references is more simple.



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