Solved

suggestion required?

Posted on 2008-06-14
3
190 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
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 and use structures in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.

707 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

17 Experts available now in Live!

Get 1:1 Help Now