如何在Visual Studio 2008中添加dll [英] how to add a dll in visual studio 2008
本文介绍了如何在Visual Studio 2008中添加dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个dll(例如abc.dll),并且该.dll包含一些功能并基于C语言构建.
我有两个问题要问-
Q1.我如何在我的Visual Studio项目中加载该dll
Q2.如何在我的代码中从该dll调用函数?
谢谢,
Devesh
Hi,
I have a dll (eg. abc.dll) and this .dll contains some function and is built on C language.
I have two questions to ask -
Q1. How I load that dll in my visual studio project
Q2. How can I call the function from that dll, in my code?
Thanks,
Devesh
推荐答案
Q0.您使用什么语言来实现用法?
Q0. What is your language to implement the usage ?
if (A0 == C++ || A0 == C) {
A1. You could use the DLLs *.h and *.lib when they are provided too
if (A1 == YES) {
A2. Directly
} else {
A2. <code>LoadLibrary/GetProcAddress/Calling/FreeLibrary</code>
}
}
:)
这篇关于如何在Visual Studio 2008中添加dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文