Solved

Using dll in ms visual C++

Posted on 2000-03-13
2
211 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 50 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
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…
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 conditional statements in the C programming language.

724 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