dllexport和dllimport有什么区别? [英] What is the difference between dllexport and dllimport?

查看:596
本文介绍了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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆