Solved

suggestion required?

Posted on 2008-06-14
3
191 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
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
evilrix earned 500 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

Scale it in WD Gold

With up to ten times the workload capacity of desktop drives, WD Gold hard drives employ advanced technology to deliver among the best in reliability, capacity, power efficiency and performance.

Question has a verified solution.

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

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.

932 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now