home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / misc / 4231 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  1.7 KB

  1. Path: sparky!uunet!ogicse!news.u.washington.edu!gibdo!tvp
  2. From: tvp@gibdo.engr.washington.edu
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Problems calling a DLL function from a VB app. PLEASE HELP!
  5. Message-ID: <1992Dec15.135809.5339@u.washington.edu>
  6. Date: 15 Dec 92 13:58:09 GMT
  7. Article-I.D.: u.1992Dec15.135809.5339
  8. Sender: news@u.washington.edu (USENET News System)
  9. Organization: clearer than blir
  10. Lines: 28
  11.  
  12.  
  13. Okay, I posted a few days ago about not wanting the screen to blank
  14. for the few seconds it took me Shell() out to DOS to run an .exe
  15. utility (written in C) that I was calling from inside my VB app.
  16.  
  17. I rewrote the inside of my C source to compile it into a .dll file.
  18. Then I followed the instructions in the VB manuals to declare and call
  19. the function inside the DLL that was replacing the standalone C app I
  20. used to use under DOS. But when I hit F5 to test the VB app, and get
  21. to the part where I push the command button that will cause the DLL
  22. function to be called, it fails and tells me:
  23.  
  24.           "Function or sub undefined"
  25.  
  26. It also highlights the line where the function is called in the
  27. source.  This is pretty maddening because the function IS defined
  28. right there in the Declarations section of the form. And it's defined
  29. correctly as far as I can tell too, it's of the proper type, with no
  30. mispellings in the Function name or the Lib path. Does anyone know
  31. what's up and how I can fix it? I'M STUCK!
  32.  
  33. Thanks in advance to anyone who can help me.
  34.  
  35. ------------------------------------------------------------------------
  36. Tad Perry      Internet:    tvp@gibdo.engr.washington.edu
  37.                CompuServe:  70402,3020
  38.                NIFTY-Serve: GBG01266
  39. ------------------------------------------------------------------------
  40.