Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Using dll in ms visual C++

Posted on 2000-03-13
2
Medium Priority
?
220 Views
Last Modified: 2012-05-04
Hi.. it's newbie here..
I have a dll file and the required header files..
It's my first time in using dll for my program..
Can anybody point me out about this?
what environment setting I should set? how?
and how can I use those header files (different directory with my code file)
without have to copy those header files into my working directory?

Thank you..
0
Comment
Question by:wayud
[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 Comments
 
LVL 2

Accepted Solution

by:
AndrewRodionov earned 150 total points
ID: 2615371
Hi!

Using dll in Visual C++ is simple enough.

First of all you have to have DLL-file, LIB-file and necessary H-files. DLL-file is the dynamic library file itself and LIB-file is so called import library file (you need it to link you program with DLL calls).

Usually you have to add the required header files directory to "system" directories and the import library directory to "system" directories. Look at the 'Tools|Options...' dialog at the 'Directories' tab 'Include files' and 'Library files' respectively.

And then you have to add the import library to you project. Look at the 'Projects|Settings...' dialog at the 'Link' tab 'Object/Library modules'.

You can build your application with dll now!

Andrew
0
 

Author Comment

by:wayud
ID: 2615632
Thanks Andrew..
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

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.

636 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