Thread View: alt.lang.basic
3 messages
3 total messages
Started by Kenneth W. Rich
Tue, 17 Nov 1992 20:15
VB and Linking to DLLs...
Author: Kenneth W. Rich
Date: Tue, 17 Nov 1992 20:15
Date: Tue, 17 Nov 1992 20:15
14 lines
870 bytes
870 bytes
I am about to go crazy. A few months ago I was able to declare API fuctions and use them in Visual Basic. Recently, however, I can't seem to get it to work. The error I am getting when I try to call a defined function from API is "Bad DLL Calling Convention" It shows up during runtime when VB calls the external function. I have checked and double checked everything about four times and everything seems to be correct. Thanks for any insights provided. Ken.
Re: VB and Linking to DLLs...
Author: Phillip Cooper
Date: Thu, 19 Nov 1992 17:02
Date: Thu, 19 Nov 1992 17:02
18 lines
1013 bytes
1013 bytes
In article <kenneth.722031336@ponder> kenneth@ponder.csci.unt.edu (Kenneth W. Rich) writes: > >I am about to go crazy. A few months ago I was able to declare >API fuctions and use them in Visual Basic. Recently, however, I >can't seem to get it to work. The error I am getting when I try >to call a defined function from API is "Bad DLL Calling Convention" >It shows up during runtime when VB calls the external function. >I have checked and double checked everything about four times >and everything seems to be correct. > > >Thanks for any insights provided. > The VB support group at (900)896-9876 should be be able to help you out with this. Phil Cooper
Re: VB and Linking to DLLs...
Author: Galen Raben
Date: Thu, 19 Nov 1992 17:09
Date: Thu, 19 Nov 1992 17:09
22 lines
1262 bytes
1262 bytes
In alt.lang.basic, kenneth@ponder.csci.unt.edu (Kenneth W. Rich) writes: >I am about to go crazy. A few months ago I was able to declare >API fuctions and use them in Visual Basic. Recently, however, I >can't seem to get it to work. The error I am getting when I try >to call a defined function from API is "Bad DLL Calling Convention" >It shows up during runtime when VB calls the external function. >I have checked and double checked everything about four times >and everything seems to be correct. >Thanks for any insights provided. >Ken. Did you check to see if you are truly calling a "function" or a "procedure"? If you declared a function as a procedure or vice-versa you can get this error... Did you try giving the full pathname to the dll? (this one sometimes bites, especially if your dll is not in the DOS path...) - Galen -
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads