home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / misc / 4238 < prev    next >
Encoding:
Text File  |  1992-12-15  |  2.6 KB  |  52 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsc!cbfsb!att-out!pacbell.com!rtech!ingres!jonm
  3. From: jonm@Ingres.COM (Don't Judge a book by your cover)
  4. Subject: Re: Problems calling a DLL function from a VB app. PLEASE HELP!
  5. Message-ID: <1992Dec15.164828.12986@pony.Ingres.COM>
  6. Summary: 
  7. News-Software: VAX/VMS VNEWS 1.41    
  8. Keywords: 
  9. Organization: University of Arizona MIS Department - Mosaic Group
  10. References: <1992Dec15.135809.5339@u.washington.edu>
  11. Date: 15 Dec 92 16:48:28 GMT
  12. Lines: 38
  13.  
  14. In article <1992Dec15.135809.5339@u.washington.edu>, tvp@gibdo.engr.washington.edu writes...
  15. >I rewrote the inside of my C source to compile it into a .dll file.
  16. >Then I followed the instructions in the VB manuals to declare and call
  17. >the function inside the DLL that was replacing the standalone C app I
  18. >used to use under DOS. But when I hit F5 to test the VB app, and get
  19. >to the part where I push the command button that will cause the DLL
  20. >function to be called, it fails and tells me:
  21. >          "Function or sub undefined"
  22. >It also highlights the line where the function is called in the
  23. >source.  This is pretty maddening because the function IS defined
  24. >right there in the Declarations section of the form. And it's defined
  25. >correctly as far as I can tell too, it's of the proper type, with no
  26. >mispellings in the Function name or the Lib path. Does anyone know
  27. >what's up and how I can fix it? I'M STUCK!
  28.  
  29. How have you created your DLL.  Are you using the SDK?  I know it sounds
  30. like a silly question and probably bordering on being patronising but...
  31. You will need to include a couple of routines (Which I cannot remember
  32. off the top of my head but they are set out in a fairly straight forward 
  33. manner in the SDK manuals.)  If you don't have them mail me and I will send
  34. you a couple of examples I created.
  35.  
  36. If you have done all this then kindly hit the 'delete' key.  It sounds like
  37. you have done everything else OK.
  38.  
  39.  
  40. +---------------------------------------------------------------------------+
  41. |Jon Machtynger (jonm@ingres.com)                                           |
  42. |Ingres Technology Centre. Wharfedale Rd,                                   |
  43. |Winnersh, Wokingham. Berks UK.   (0734)-496525                             |
  44. +---------------------------------------------------------------------------+
  45. | Ahhh Brisbane, people actually get paid to work there... in the sun with  |
  46. | all that fresh air and cheap petrol.... Or so ledgend has it              |
  47. +---------------------------------------------------------------------------+
  48.