|
-
April 6th, 1999, 08:55 PM
#1
Why the DLL I made in VC5 Can't Be used in VB5
I have made a dll through VC, and call it in VB5, all passed if I don't transfer
parameter from VB to that dll's function. But if I do it , Error happens.
Thanks for the answer.
(the dll I made through vc5's wizard (MFC suport))
-
April 7th, 1999, 04:00 AM
#2
Re: Why the DLL I made in VC5 Can't Be used in VB5
check out forum entry "Strange behaviour of DLL Calls in VB5". It might solve your problem, too.
-
April 9th, 1999, 08:40 AM
#3
Re: Why the DLL I made in VC5 Can't Be used in VB5
The MFC function was probably a member of a class, and C++ decorates function names when it compiles them so that the signature for FooClass::Foo() might really be ?Foo@FooClass@@AAEHXZ
Check out http://msdn.microsoft.com/library/de...lications.htm.
-
April 9th, 1999, 10:17 AM
#4
Re: Why the DLL I made in VC5 Can't Be used in VB5
Better yet, turn your MFC DLL into an MFC ActiveX control and access it through its automation interface. Use COM if possible when interfacing modules written in different languages.
-
September 8th, 1999, 08:37 AM
#5
Re: Why the DLL I made in VC5 Can't Be used in VB5
If you right click on the dll file in explorer, and select quick view, it will give you a list of all function names, then you can see if it really is [email protected]**$%blah""£$Blah.
-
September 8th, 1999, 04:25 PM
#6
Re: Why the DLL I made in VC5 Can't Be used in VB5
I believe you can use a .def file in development of your C++ dll to overcome the name mangling problem in VC++ 5.0.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|