Solved

Using dll in ms visual C++

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
why debugging a macro i s difficult 10 38
Finding a good hash function 4 127
How to build c program using make in mingw environment? 9 70
Why is compiler in oracle server ? 9 75
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…
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…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch 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