Wednesday, January 4, 2012

How to convert a DLL to LIB for Windows


1. Start Visual Studio Tools command promopt from Start -> Program Files -> Microsoft Visual Studio 2005 -> Visual Studio Tools -> Visual Studio 2005 Command Prompt
2. Create the .def file for the target DLL if you don't have it on hand by entering following command
  (Ex. dumpbin /exports D:\Ts2Sqlite\sqlite3.dll)
3. To create the import library (.LIB), run following command
  LIB /def:PATH_TO_DEF_OF_DLL /out:OUTPUT_PATH /machine:x86
  (Ex. lib /def:D:\Ts2Sqlite\sqlite3.def /out:D:\Ts2Sqlite\sqlite3.lib /machine:x86)
4. Now you can use this LIB file along with the DLL like using a real LIB file


No comments:

Check clients which connect to Mac OS X Wi-Fi Internet Sharing

arp -i bridge100 -a bridge100 may be different on your Mac OSX