.lib to .dll

  • Thread starter Thread starter Dragon
  • Start date Start date
D

Dragon

Hello,

Can I convert C/C++ .lib file to a dll, which can be used with PInvoke from
VB? I believe the tool that can do this is somewhere in VC\BIN\, but since I
haven't used C before, I don't know what is it.

Thanks
 
Dragon said:
Can I convert C/C++ .lib file to a dll, which can be used with PInvoke
from
VB? I believe the tool that can do this is somewhere in VC\BIN\, but since
I
haven't used C before, I don't know what is it.

The LIB file doesn't contain the implementation. The easiest way is to
translate the header files to 'Declare', 'Const', 'Structure', 'DllImport',
etc., or simply add a reference to the DLL if it is a COM DLL.
 
Thanks Herfried.

Fortunately, I have downloaded this dll from internet, so... nevermind.
 
I believe the tool that can do this is somewhere in VC\BIN\, but since
That would be the C++ compiler (Cl.exe) or linker (Link.exe).

The LIB file doesn't contain the implementation.

It can, not all Lib files are like the ones in the Platform SDK.



Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top