Re: using DLL built with VC6
"Timur Safin" <[email protected]> Tue, 23 Aug 2005 16:17:11 +0400
| Newsgroups | gmane.comp.lang.delphi.jedi |
|---|---|
| Message-ID | <[email protected]> |
For the beginning I'd look into the real names exported. What do you see after this command? tdump -ee wrapi.dll | findstr isas Timur ----- Original Message ----- From: "soya protein" <[email protected]> To: <[email protected]> Sent: Thursday, August 11, 2005 3:43 AM Subject: [Delphi-JEDI] using DLL built with VC6 > Hello folks ! > > Is there some guide/faq on how to use pre-compiled DLL written in Visual C > version 6 > with appication written in Delphi ? > > The DLL in question is WRAPI.dll. This is a wrapper dll intended to simplify > communcation with wireless network adapters via NDIS 5.1. > > I have complete sources for WRAPI and have translated it's header file > for use with Delphi. I wrote a simple application to test the link and > it failed. > > When trying to run the file i get a messagebox with > > WIFI_CONTROL.exe - Entry Point Not Found > The procedure entry point WRAPIDisassociate could not be located in the > dynamic link library WRAPI.dll. > > I'm pretty sure that functions in DLL ARE exported. I even used a resource > tool to confirm that > functions are exported. > > The definition of the above function is > > function WRAPIDisassociate() : HRESULT; stdcall; external 'WRAPI.dll' name > 'WRAPIDisassociate'; > > Also, i tried with function index (it is number 1, i found it via resource > tool), but app simply > fails quietly. > > I wish to avoid use of LoadLibrary() and GetProcAddress(), but if there's no > other way ... > I'll do it then. > > -- > Best regards, > soya > > > > > > > > Yahoo! Groups Links > > > > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12h4ud4h4/M=362329.6886308.7839368.1510227/D=groups/S=1705115362:TM/Y=YAHOO/EXP=1124806766/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992 ">Fair play? Video games influencing politics. Click and talk back!</a>.</font> --------------------------------------------------------------------~-> 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/