home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / alt / lang / basic / 874 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.2 KB

  1. From: galenr@hpgrla.gr.hp.com (Galen Raben)
  2. Date: Thu, 19 Nov 1992 17:09:49 GMT
  3. Subject: Re: VB and Linking to DLLs...
  4. Message-ID: <33680013@hpgrla.gr.hp.com>
  5. Organization: Hewlett-Packard, Greeley, CO
  6. Path: sparky!uunet!wupost!sdd.hp.com!hpscit.sc.hp.com!scd.hp.com!hpscdm!hplextra!hpfcso!hpgrla!galenr
  7. Newsgroups: alt.lang.basic
  8. References: <kenneth.722031336@ponder>
  9. Lines: 22
  10.  
  11. In alt.lang.basic, kenneth@ponder.csci.unt.edu (Kenneth W. Rich) writes:
  12.  
  13. >I am about to go crazy.  A few months ago I was able to declare
  14. >API fuctions and use them in Visual Basic.  Recently, however, I
  15. >can't seem to get it to work.  The error I am getting when I try
  16. >to call a defined function from API is "Bad DLL Calling Convention"
  17. >It shows up during runtime when VB calls the external function.
  18. >I have checked and double checked everything about four times
  19. >and everything seems to be correct.
  20.  
  21. >Thanks for any insights provided.
  22.  
  23. >Ken.
  24.  
  25. Did you check to see if you are truly calling a "function" or a "procedure"?
  26. If you declared a function as a procedure or vice-versa you can get this
  27. error...
  28.  
  29. Did you try giving the full pathname to the dll?  (this one sometimes bites,
  30. especially if your dll is not in the DOS path...)  
  31.  
  32. - Galen -
  33.