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

前端 未结 6 1497
北恋
北恋 2020-11-28 02:01

I understand that I need to use LoadLibrary(). But what other steps do I need to take in order to use a third-party DLL file?

I simply jumped into C++ and this is th

6条回答
  •  猫巷女王i
    2020-11-28 02:24

    I'f you're suppsed to be able to use it, then 3rd-party library should have a *.lib file as well as a *.dll file. You simply need to add the *.lib to the list of input file in your project's 'Linker' options.

    This *.lib file isn't necessarily a 'static' library (which contains code): instead a *.lib can be just a file that links your executable to the DLL.

提交回复
热议问题