🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.lang.basic
Article #351

Re: VB and Linking to DLLs...

#351
From: Galen Raben
Date: Thu, 19 Nov 1992 17:09
22 lines
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 -
Technical Details
Message-ID: <33680013@hpgrla.gr.hp.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!sdd.hp.com!hpscit.sc.hp.com!scd.hp.com!hpscdm!hplextra!hpfcso!hpgrla!galenr
References: <kenneth.722031336@ponder>

Show Full Headers
Complete Article Headers
From: galenr@hpgrla.gr.hp.com (Galen Raben)
Date: Thu, 19 Nov 1992 17:09:49 GMT
Subject: Re: VB and Linking to DLLs...
Message-ID: <33680013@hpgrla.gr.hp.com>
Organization: Hewlett-Packard, Greeley, CO
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!sdd.hp.com!hpscit.sc.hp.com!scd.hp.com!hpscdm!hplextra!hpfcso!hpgrla!galenr
Newsgroups: alt.lang.basic
References: <kenneth.722031336@ponder>
Lines: 22