首页 > 编程语言 > 详细

Create C/C++ DLLs in Visual Studio

时间:2019-07-12 00:27:41      阅读:114      评论:0      收藏:0      [点我收藏+]

 

 

https://docs.microsoft.com/zh-tw/cpp/build/dlls-in-visual-cpp?view=vs-2019

Walkthrough: Create and use your own Dynamic Link Library (C++) ::https://docs.microsoft.com/zh-tw/cpp/build/walkthrough-creating-and-using-a-dynamic-link-library-cpp?view=vs-2017

 

To make use of a DLL, whether your own or a third-party DLL, your client app project must find the headers that declare the DLL exports, the import libraries for the linker, and the DLL itself. One way, is to copy all of these files into your client project. For third-party DLLs that are unlikely to change while your client is in development, this method may be the best way to use them. However, when you also build the DLL, it‘s better to avoid duplication. If you make a copy of DLL files that are under development, you may accidentally change a header file in one copy but not the other, or use an out-of-date library. To avoid this problem, we recommend you set the include path in your client project to include the DLL header files from the DLL project. Also, set the library path in your client project to include the DLL import libraries from the DLL project. And finally, copy the built DLL from the DLL project into your build output directory. This step allows your client app to use the same DLL code you build.

Create C/C++ DLLs in Visual Studio

原文:https://www.cnblogs.com/butterflybay/p/11173508.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!