[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 223
  • Last Modified:

Using dll in ms visual C++

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
wayud
Asked:
wayud
1 Solution
 
Andrei RodionovCommented:
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
 
wayudAuthor Commented:
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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now