如何在另一个exe中调用exe的函数 [英] how to call a function of an exe in another exe

查看:472
本文介绍了如何在另一个exe中调用exe的函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个exe,我有一个名为openmethod()的函数被实现,现在我已经创建了一个doc-view应用程序,在这里我想调用该函数以便使用它的MFC功能,任何人都可以帮助我我怎么能这样做。



它们都是.exe的,所以请告诉我达到这个目的的正确方法。

I have an exe where i have a function called openmethod()is implemented,and now i had created a doc-view application and here i want to call that function in order to use its functionality using MFC,can anyone help me how can i do this.

Both of them are .exe's ,so tell me the correct approach to attain that.

推荐答案

糟糕的主意。为此目的,有DLL(共享库):

http://en.wikipedia。 org / wiki / Dynamic-link_library [ ^ ],

http://en.wikipedia.org/wiki/Shared_library#Shared_libraries [ ^ ]。



-SA
Bad idea. For such purpose, there are DLLs (shared libraries):
http://en.wikipedia.org/wiki/Dynamic-link_library[^],
http://en.wikipedia.org/wiki/Shared_library#Shared_libraries[^].

—SA


这篇关于如何在另一个exe中调用exe的函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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