CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2002
    Location
    Germany
    Posts
    15

    Question c++ objects in VB ?

    Hi !

    I wrote a .dll in C++ and sucessfully implement the .dll in VB. But i´m tired of declare all the functions again in VB.

    Is it possible to access a C++ Class thru a .dll directly, like a VB Class ?
    Best regards
    Markus

  2. #2
    Join Date
    Jun 2001
    Location
    MO, USA
    Posts
    2,868
    You could create another DLL in VB that acts a wrapper class for all your C functions...

  3. #3
    Join Date
    Aug 2001
    Posts
    1,447
    It's my understanding (this is 2nd hand knowledge) that C++ classes cannot be used directly in VB, just functions.

  4. #4
    Join Date
    Aug 2002
    Location
    Germany
    Posts
    15

    Question wrapper class ?

    At first : thanks to all replys !

    A wrapper class seems to be a possible solution. But how can I implement this without declaring every function in the VB DLL ?

    Thank you
    Best regards
    Markus

  5. #5
    Join Date
    Jun 2001
    Location
    MO, USA
    Posts
    2,868
    You can't, but once the DLL is created you won't have to declare them again in any applications that use the DLL.

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