Results 1 to 3 of 3

Thread: C++, VB and COM

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2003
    Posts
    183

    C++, VB and COM

    Hi, a friend of mine asked me this question and I wondered if anyone here can help me answer it?

    "I've created an interface using C++/ATL which I can then implement in a coclass. What I want to do is to now build a VB COM object which implements the same interface. Is this possible or can VB only *use* a C++ coclass I've implemented in a COM server?"

    Thanks.

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    With vb, you can only call on publicly accessible methods held within a compiled C++ dll file...
    Last edited by alex_read; Jul 23rd, 2003 at 02:10 AM.

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  3. #3
    Addicted Member
    Join Date
    Feb 2003
    Posts
    237
    add a reference to teh tlb file (you may have to manually register it ) in your vb project and try to implement it in a vb class in the normal way

    (at top of class type implements and see if it is in the drop down)

    the idl is all that matters

    if its not to huge of an interface, you can just retype it in VB
    Free Code, papers, tools, and more

    http://sandsprite.com

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