Article View: comp.os.ms-windows.programmer.tools.mfc
Article #55Re: Prob calling VC++ 4.0 DLL from VB4 (32bit)
From: ESSA
Date: Thu, 22 Feb 1996 04:41
Date: Thu, 22 Feb 1996 04:41
22 lines
1673 bytes
1673 bytes
Bill Boland (billbo@ix.netcom.com) wrote: : >Having a frustrating time trying to call a function in a DLL developed in : >VC++ 4.0 from Visual Basic 4.0 (32bit). I'm getting VB error 49 (bad DLL : >calling convention) from the following simple function ... : I may have a clue since I had a similar situation today. : If a DLL is compiled with VB 4.0 WITHOUT a module definition file and : uses the new __declspec( dllexport ) to declare functions as : exportable, VB4 cannot seem to understand them. At least that is what : I discovered today on my own. Thanks Bill. And thanks Rob Ross of FTP Software, who got back to me after phoning MS support about the same problem. In the root of the VB4 installation directory, there is a file called vb4dll.txt that explains a number of issues concerning 32bit DLL's, including the problems I'd been having. The solution, as Bill discovered (how many hours do you figure we've all collectively wasted ?) is the use of the DEF file. --- pwhiteside@essa.com ESSA Software Ltd.
Technical Details
Message-ID:
<4ggs6j$4j1@fountain.mindlink.net>Path:
arc1-ca.pugleaf.net!news.mindlink.net!giant!a09748References:
<4f7u8h$63q@fountain.mindlink.net> <3129a180.11614278@nntp.ix.netcom.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.mindlink.net!giant!a09748 From: a09748@giant.mindlink.bc.ca (ESSA) Newsgroups: comp.os.ms-windows.programmer.tools.mfc,comp.lang.c++,comp.lang.basic.visual.misc Subject: Re: Prob calling VC++ 4.0 DLL from VB4 (32bit) Followup-To: comp.os.ms-windows.programmer.tools.mfc,comp.lang.c++,comp.lang.basic.visual.misc Date: 22 Feb 1996 04:41:55 GMT Organization: MIND LINK! - British Columbia, Canada Message-ID: <4ggs6j$4j1@fountain.mindlink.net> References: <4f7u8h$63q@fountain.mindlink.net> <3129a180.11614278@nntp.ix.netcom.com> NNTP-Posting-Host: giant.mindlink.net X-Newsreader: TIN [version 1.2 PL2]