在Visual Studio中链接DLL

编程入门 行业动态 更新时间:2024-10-22 07:47:10
本文介绍了在Visual Studio中链接DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在Windows XP上使用Visual Studio C ++ 2005.

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

我已经使用Visual Studio C ++ 2005创建了一个DLL共享库.

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

但是,我不确定如何链接它.通常,我刚刚创建了静态库(* .lib).

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

我是否以与链接库时相同的方式链接.通过使用属性C/C ++和链接程序的常规属性,然后选择标题和库路径的路径?

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.

推荐答案

创建DLL时,应创建一个用于动态链接目的的.lib文件.您可以像使用静态.lib文件一样使用它们.

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.

更多推荐

在Visual Studio中链接DLL

本文发布于:2023-11-13 14:34:54,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1584589.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:链接   Visual   Studio   DLL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!