Re: Biometric scanner(Finger print reader) need help implementing in delphi.
"Ed Wilson" <[email protected]> Wed, 1 Mar 2006 18:38:40 -0500
| Newsgroups | gmane.comp.lang.delphi.jedi |
|---|---|
| Message-ID | <00a301c63d89$45027280$0300a8c0@hyperdrive> |
I understand there is no .lib file. There is a way to define the functions using the extern "c" delcaration to ensure the VC does NOT use the normal 'mangled' names. That's the question I'm asking. ----- Original Message ----- From: Oliver Schneider To: [email protected] Sent: Wednesday, March 01, 2006 6:32 PM Subject: Re: [Delphi-JEDI] Biometric scanner(Finger print reader) need help implementing in delphi. > 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. The problem is that you have no LIB for the DLL, because Delphi doesn't produce one (and Borland's LIBs seem anyway different from MS's). However, you can dynamically link to the DLL (GetProcAddress ...) or create a LIB - I believe MS's linker has an option for that. Cheers, Oliver -- --------------------------------------------------- May the source be with you, stranger ;) ICQ: #281645 URL: http://assarbad.net SPONSORED LINKS Basic programming language C programming language Computer programming languages The c programming language C++ programming language List of programming languages ------------------------------------------------------------------------------ YAHOO! GROUPS LINKS a.. Visit your group "Delphi-JEDI" on the web. b.. To unsubscribe from this group, send an email to: [email protected] c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. ------------------------------------------------------------------------------ [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/