dllexport 和 dllimport 有什么区别? [英] What is the difference between dllexport and dllimport?
本文介绍了dllexport 和 dllimport 有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我只是想对这两者之间的区别进行简单、简洁的解释.MSDN 没有在这里详细介绍.
I'm just looking for a simple, concise explanation of the difference between these two. MSDN doesn't go into a hell of a lot of detail here.
推荐答案
__declspec(dllexport)
告诉链接器您希望此对象可供其他 DLL 导入.在创建其他人可以链接到的 DLL 时使用它.__declspec(dllexport)
tells the linker that you want this object to be made available for other DLL's to import. It is used when creating a DLL that others can link to.__declspec(dllimport)
从 DLL 导入实现,以便您的应用程序可以使用它.__declspec(dllimport)
imports the implementation from a DLL so your application can use it.我只是一个 C/C++ 开发新手,所以也许有人比我有更好的解释.
I'm only a novice C/C++ developer, so perhaps someone's got a better explanation than I.
这篇关于dllexport 和 dllimport 有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文