How do I use a third-party DLL file in Visual Studio C++? -


I understand that I need to use LoadLibrary () but to use the third party DLL file What other steps have to be taken?

I just jumped into C ++ and this is the only part that I can not find (as a Java programmer). How can I use just one library and Tessaract-OCR, this process does not matter to me and it is very difficult for Google.

How do I tell the compiler of my actions? Should a file be included from third party vendor?

As everybody says, LoadLibrary is the hard way to do this, and seldom Necessary.

The DLL should come with the .lib file to link, and one or more header files should be included in your sources. The header file will define the class and the function prototype that you use with DLL You can. You will need it even if you use LoadLibrary.

To link to a library, you may have to add a .lib file to the project configuration under the linker / input / additional dependencies.


Comments