Linking a DLL in Visual Studio

2019-02-18 02:12发布

I'm using Visual Studio C++ 2005 on Windows XP.

I have created a DLL shared library using Visual Studio C++ 2005.

However, I am not sure how to link it. Normally I have just created the static libraries (*.lib).

Do I link the same way I would when linking a library. By using the properties C/C++ and linker general properties and selecting the path for the headers and library paths?

Many thanks for any advice.

2条回答
祖国的老花朵
2楼-- · 2019-02-18 02:18

When you create the DLL there should be a .lib file created for the purpose of dynamic linking. You can use these just as you would static .lib files.

查看更多
神经病院院长
3楼-- · 2019-02-18 02:39

This article explains Windows dlls well.

The .LIB file associated with a DLL describes what (exported) symbols are present in the DLL, together with their locations.

查看更多
登录 后发表回答