Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

building lib file from a dll???

Posted on 1999-07-27
3
Medium Priority
?
374 Views
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?
thanks
0
Comment
Question by:unsa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 2

Accepted Solution

by:
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!



0
 

Author Comment

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

0
 

Expert Comment

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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
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.

730 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