using DLL built with VC6
soya protein <[email protected]> Thu, 11 Aug 2005 01:43:04 +0200
| Newsgroups | gmane.comp.lang.delphi.jedi |
|---|---|
| Message-ID | <[email protected]> |
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 Sponsor --------------------~-->
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12h26a7tq/M=362329.6886308.7839368.1510227/D=groups/S=1705115362:TM/Y=YAHOO/EXP=1124804490/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/