Re: Biometric scanner(Finger print reader) need help implementing in delphi.
"Ed Wilson" <[email protected]> Wed, 1 Mar 2006 17:39:49 -0500
| Newsgroups | gmane.comp.lang.delphi.jedi |
|---|---|
| Message-ID | <009b01c63d81$0c6355f0$0300a8c0@hyperdrive> |
I have a Delphi DLL that has two functions. They return nothing, but get passed a pointer and an integer. I'm having a hard time understanding how to reference the functions from within VC 6. I can load the DLL, that's easy enough... however, how do I declare the functions so that VC 6 can locate them within the DLL and assign them to variable to be called?
Here is the VC 6 code I tried, and it didn't work.
typedef VOID (*TGaugeCall)(PGAUGEHDR, int, UINT32); // function proto
typedef VOID (*TGaugeDraw)(HDC); // function proto
TGaugeCall GaugeCall = NULL; // function pointer
TGaugeDraw GaugeDraw = NULL; // function pointer
HMODULE MGaugeHandler = NULL; // DLL handle
I understand that VC 6 does name mangling... so how do I write this so I can use the EXTERN "C" definition and dynamically link to the library? My C knowledge is quite a bit rusty, so forgive me if I'm asking for too much.
Ed Wilson
[Non-text portions of this message have been removed]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Delphi-JEDI/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/