?
Solved

suggestion required?

Posted on 2008-06-14
3
Medium Priority
?
197 Views
Last Modified: 2010-04-15
I have 3rd Party DLL. which are developed in C not C++
now i need to write code in C to use those dll?
how would i get .lib ? .def? i think i can not use lib or def ? rite???
i need to use loadlibrary?
0
Comment
Question by:xPert_Umer
[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
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
evilrix earned 2000 total points
ID: 21785029
>> how would i get .lib ? .def? i think i can not use lib or def ? rite???
The .lib file should have been supplied with the DLL

>> i need to use loadlibrary?
If you don't have a .lib file to link against you will have to use LoadLibrary() to explicitly load the DLL

Determining Which Linking Method to Use
http://msdn.microsoft.com/en-us/library/253b8k2c.aspx
0
 
LVL 1

Expert Comment

by:gregmulvihill
ID: 21786066
You might find these Code Project articles useful in your effort.

http://www.codeproject.com/KB/cpp/libfromdll.aspx

http://www.codeproject.com/KB/debug/LibView.aspx
0
 
LVL 40

Expert Comment

by:evilrix
ID: 22013627
I see no valid reason for this Q to be deleted. Two good answers have been provided.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.
Suggested Courses

752 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