VB DLLs with C++

This is a discussion on VB DLLs with C++ within the Tech Board forums, part of the Community Boards category; I'm sitting in my Visual Basic Programming class, and I just learned how to make activex DLLs with the Visual ...

  1. #1
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916

    VB DLLs with C++

    I'm sitting in my Visual Basic Programming class, and I just learned how to make activex DLLs with the Visual Basic classes. Would I be able to make a DLL with VB and then use it with a C++ program? If so, is there a way using MSVC or some other program to view the classes/methods/members in the DLL?

    I found this thread but his question wasn't really answered so I don't know if he got it working.
    Away.

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    A VB COM Object can be used like any other COM object. A good place to start is here:
    http://www.devarticles.com/art/1/180/

    As for viewing the type info in the dll the best tool is OleView. This is availiable as a seperate download on the microsoft site, is in the platform SDK and is probably included with VC. (Do a web search if you don't have it.)

    Alternatively you can use the object viewer in VB or VBA (easier to understand but less information).

    I think the thread you referenced got very confused between a C++ program accessing a VB COM dll and a VB program accessing a non-COM C++ dll.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. standart dlls
    By keeper in forum C++ Programming
    Replies: 3
    Last Post: 07-05-2006, 08:32 PM
  2. Passing an Array of Strings from VB to a C DLL
    By mr_nice! in forum Windows Programming
    Replies: 9
    Last Post: 03-08-2005, 06:16 AM
  3. Making C++ DLLS for VB
    By MethSnax in forum Windows Programming
    Replies: 0
    Last Post: 07-20-2003, 09:47 AM
  4. Passing parameters from VB to C++ through ActiveX DLL
    By torbjorn in forum Windows Programming
    Replies: 0
    Last Post: 12-10-2002, 03:13 AM
  5. Using C DLLs in VB
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 10-10-2001, 03:58 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21