A
A
Alex2017-05-30 22:20:32
C++ / C#
Alex, 2017-05-30 22:20:32

How to include dll library in visual studio (c++)?

I have a dll library, but how to include it in the project to use its class?
For example:
#include <mylibClass.h>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Makarov, 2017-05-31
@Nipheris

To compile:
1. You need to add the path to the includes to the list of include directories of the compiler.
2. You need to add the path to the lib-files to the linker's list of library directories.
3. You must specify the required lib files as dependencies of your project.
In runtime, you need to put the desired dll next to the exe.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question