Solved

suggestion required?

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

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…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

840 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