在动态链接库里,可否调用应用程序中的函数

qclore 2004-09-28 11:22:35
在动态链接库里,可否调用应用程序中的函数,如果可以,如何实现?谢谢!
...全文
107 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
DivXExtend 2004-09-30
  • 打赏
  • 举报
回复
ACuke(黄瓜):
First way, function pointer is equal to call back function.
tengfei2005 2004-09-30
  • 打赏
  • 举报
回复
同意dylwx
ACuke 2004-09-30
  • 打赏
  • 举报
回复
回调函数可以么?
superhandsome 2004-09-29
  • 打赏
  • 举报
回复
简单的。就是爱护的。
同意dylwx
Wenxy1 2004-09-29
  • 打赏
  • 举报
回复
同意 roger_ding(海天一色),
把exe看成DLL就行。
DivXExtend 2004-09-29
  • 打赏
  • 举报
回复
I agree with dylwx(dylwx); Because their realization is easier than the later.
And the later uses exported function from exe file, this is very unusual and very skillful.
To sum up, there are two ways which can resolve your question. the former is more usual, only need to know how to use function pointer. and the later need to know exe file have the exported function as the same as DLL file.
I think, the ways is different. More import, the underling knowlege under the resolution to the question is crtial for all of us: programmers.
roger_ding 2004-09-29
  • 打赏
  • 举报
回复
可以,把exe中的函数仿照dll中的导出函数格式定义,即exe中导出函数,由dll来调用即可
dylwx 2004-09-29
  • 打赏
  • 举报
回复
用指向函数的指针作为参数好像可以。

15,471

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 进程/线程/DLL
社区管理员
  • 进程/线程/DLL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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