vico
vico

Reputation: 18171

Call dll class function

I have dll that contains class. I need to create object of that class and call it's methods in my console application. What is procedure of calling class dll in c++? How I should define dll in my code?

Upvotes: 0

Views: 51

Answers (1)

ScottMcP-MVP
ScottMcP-MVP

Reputation: 10415

A DLL should come with an h file and a lib file. To use the DLL you #include the h file and you link to the lib file. To do the linking go into the project properties, link section, and add the lib file to the "additional dependencies" setting.

Upvotes: 1

Related Questions