building lib file from a dll???

Posted on 1999-07-27
Medium Priority
Last Modified: 2010-04-02
I have a DLL written C with stdcall calling convention but I have not the lib file. How can I build a lib file for this DLL for MS visual C++ 6.0??
which command line tools and which parameters do I need?
Question by:unsa

Accepted Solution

arikka earned 40 total points
ID: 1201159
You have DLL and now you like to have import library for
that DLL.
First, you need to get DEF file for that DLL. It's not depended on what compiler you use.

For example, you can use impdef utility from Borland :
(I do not know something like it from Microsoft)

 > impdef YourDll.def YourDll.dll -- here you got DEF file

After getting DEF file,

  Use MSVC utility LIB :

   > lib /DEF:YourDll.def

This command (lib) builds import library!


Author Comment

ID: 1201160
I did, thanks. Hope MS will have its own impdef.


Expert Comment

ID: 13260694
This was alot of help for me thank you much

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

592 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question