可以在标准C++中调用dll吗?

jjchzh 2003-06-24 06:33:37
如题,若可以,怎么调用?望大虾指教。谢!
...全文
55 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
jjchzh 2003-06-26
  • 打赏
  • 举报
回复
to all:
thanks. check out.
jjchzh 2003-06-25
  • 打赏
  • 举报
回复
to all:thanks.
明天结贴。
okli 2003-06-25
  • 打赏
  • 举报
回复
what's true c++?

developing is depend by os ,
in windows-os, you can use LoadLibrary to load .dll or another files
then use GetProcAddress() get pfn.
rtdb 2003-06-25
  • 打赏
  • 举报
回复
严格的说, 在标准C++中不可以。

楼上说的是用WIN32 API调用。

事实上, DLL专用于WINDOWS系统, 在其它系统中就没有了。
ChineseLove 2003-06-25
  • 打赏
  • 举报
回复
up
cloudtarget 2003-06-25
  • 打赏
  • 举报
回复
可以
glassshark 2003-06-25
  • 打赏
  • 举报
回复
并非标准C/C++中规定的特性,和"标准"无关,也可以说不是标准的一部分.
huigll 2003-06-24
  • 打赏
  • 举报
回复

可以查查MSDN上的这个函数的说明: LoadLibrary()
zxm954712 2003-06-24
  • 打赏
  • 举报
回复
or you can use the dllexport to export the function in your library file.
#define EXPORT __declspec(dllexport)

about the detail of dllexport you may refer to the MSDN.
zteliubin 2003-06-24
  • 打赏
  • 举报
回复
当然可以:
1. 加入创建dll时的申明(.h)和生成的.lib文件,编译即可,和使用库函数一样。
2. 使用LoadLibrary装载dll,使用GetProcAddress()来获得函数指针。

69,382

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧