importing DLL

Neal Alexander wqeqweuqy at hotmail.com
Sat Mar 29 03:03:25 PDT 2008


BCS wrote:
> Reply to Benjamin,
> 
>> Reply to Regan,
>>
>>> BCS wrote:
>>>
>>>> Neal Alexander wrote:
>>>>
>>>>> BCS wrote:
>>>>>
>>>>>> I have a DLL with no .h no .def and nothing but the DLL. What are
>>>>>> my odds of linking it in with a D app?
>>>>>>
>>>>> implib.exe
>>>>>
>>>> Tried that. It gives me a .lib (that doesn't seem to work but I
>>>> could be mistaken) but I still don't know what functions are
>>>> defined. (maybe I should have added "no documentation")
>>>>
>>> Do you have a copy of dumpbin:
>>> http://support.microsoft.com/kb/177429
>>> Regan
>> I will soon.
>>
> 
> correction, I have it but it's not working (not installed correctly or 
> some such, More fun!)
> 
> 

The .lib should work for linking.
Use some PE utility to find the exports - StudPE is ok i think.

or you can modify this code to dump the export table and generate a D 
header for your self:

http://svn.dsource.org/projects/kong/trunk/kong/examples/import_dump.d





More information about the Digitalmars-d-learn mailing list