Re: Biometric scanner(Finger print reader) n eed help implementing in delphi.

"Oliver Schneider" <[email protected]> Thu, 2 Mar 2006 00:32:10 +0100 (MET)
Newsgroups gmane.comp.lang.delphi.jedi
Message-ID <[email protected]>
> 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


 
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/