🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #1812

Re: Problems calling a DLL function from a VB app. PLEASE HELP!

#1812
From: Don't Judge a book by your cover
Date: Tue, 15 Dec 1992 16:48
38 lines
2678 bytes
In article <1992Dec15.135809.5339@u.washington.edu>, tvp@gibdo.engr.washington.edu writes...
> 
>I rewrote the inside of my C source to compile it into a .dll file.
>Then I followed the instructions in the VB manuals to declare and call
>the function inside the DLL that was replacing the standalone C app I
>used to use under DOS. But when I hit F5 to test the VB app, and get
>to the part where I push the command button that will cause the DLL
>function to be called, it fails and tells me:
> 
>          "Function or sub undefined"
> 
>It also highlights the line where the function is called in the
>source.  This is pretty maddening because the function IS defined
>right there in the Declarations section of the form. And it's defined
>correctly as far as I can tell too, it's of the proper type, with no
>mispellings in the Function name or the Lib path. Does anyone know
>what's up and how I can fix it? I'M STUCK!
> 

How have you created your DLL.  Are you using the SDK?  I know it sounds
like a silly question and probably bordering on being patronising but...
You will need to include a couple of routines (Which I cannot remember
off the top of my head but they are set out in a fairly straight forward 
manner in the SDK manuals.)  If you don't have them mail me and I will send
you a couple of examples I created.

If you have done all this then kindly hit the 'delete' key.  It sounds like
you have done everything else OK.


+---------------------------------------------------------------------------+
|Jon Machtynger (jonm@ingres.com)                                           |
|Ingres Technology Centre. Wharfedale Rd,                                   |
|Winnersh, Wokingham. Berks UK.   (0734)-496525                             |
+---------------------------------------------------------------------------+
| Ahhh Brisbane, people actually get paid to work there... in the sun with  |
| all that fresh air and cheap petrol.... Or so ledgend has it              |
+---------------------------------------------------------------------------+
Technical Details
Message-ID: <1992Dec15.164828.12986@pony.Ingres.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsc!cbfsb!att-out!pacbell.com!rtech!ingres!jonm
References: <1992Dec15.135809.5339@u.washington.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsc!cbfsb!att-out!pacbell.com!rtech!ingres!jonm
From: jonm@Ingres.COM (Don't Judge a book by your cover)
Subject: Re: Problems calling a DLL function from a VB app. PLEASE HELP!
Message-ID: <1992Dec15.164828.12986@pony.Ingres.COM>
News-Software: VAX/VMS VNEWS 1.41    
Organization: University of Arizona MIS Department - Mosaic Group
References: <1992Dec15.135809.5339@u.washington.edu>
Date: 15 Dec 92 16:48:28 GMT
Lines: 38