DLL Help

This is a discussion on DLL Help within the C++ Programming forums, part of the General Programming Boards category; Ive made an ActiveX dll in VB6 which contains several classes. Is there a way to use it from VC++ ...

  1. #1
    Registered User
    Join Date
    Jun 2002
    Posts
    132

    DLL Help

    Ive made an ActiveX dll in VB6 which contains several classes. Is there a way to use it from VC++ 6? There is no lib file. Please help.
    Y3K Network http://www.y3knetwork.com
    Bringing the software of the future on the net.

  2. #2
    Registered User
    Join Date
    Jun 2002
    Posts
    132
    Anybody? I was mistaken, of course there is a lib, I didnt see it. Any ideas?
    Y3K Network http://www.y3knetwork.com
    Bringing the software of the future on the net.

  3. #3
    Registered User
    Join Date
    Feb 2002
    Posts
    20
    Nope, no way that I know of besides rewriting the classes for VC++.

    I think the problem is caused by VC++'s DLL name-mangling algorithm.
    Compilers: MSVC++ 6.0, Dev-C++ 4.0, DJGPP
    Operating System: Windows 98

  4. #4
    Registered User
    Join Date
    Jul 2002
    Posts
    273
    there is certainly a way. it requires working in COM in a lower level though. It will take a lot more work. Name mangling is an issue that was specifically dealt with in COM and actually one of the major reasons for the architecture in the first place.

    As to the way it must be done, that would take a lot of explaining and your best bet is to get a book called "Essential COM" that will explain it. I can't do it in a message board thread even if I had full understanding of it.

  5. #5
    Registered User
    Join Date
    Jun 2002
    Posts
    132
    Someone told me about an #import directive. It is supposed to load activex dlls too, but im not sure and I dont want to spend many hours of testing it. Is anybody sure that it works?
    Y3K Network http://www.y3knetwork.com
    Bringing the software of the future on the net.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. non-MFC DLL with MFC app question.
    By Kempelen in forum Windows Programming
    Replies: 10
    Last Post: 08-20-2008, 07:11 AM
  2. Replies: 1
    Last Post: 09-18-2005, 09:06 PM
  3. dll communicating between each other
    By cloudy in forum C++ Programming
    Replies: 5
    Last Post: 06-17-2005, 02:20 AM
  4. DLL and std::string woes!
    By Magos in forum C++ Programming
    Replies: 7
    Last Post: 09-08-2004, 12:34 PM
  5. .lib vs .h vs .dll
    By Shadow12345 in forum C++ Programming
    Replies: 13
    Last Post: 01-01-2003, 04:29 AM

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