Solved

Using dll in ms visual C++

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
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…
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 how to create, access, and change arrays in the C programming language.

760 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

18 Experts available now in Live!

Get 1:1 Help Now