用matlab加载MFC Dll [英] loading MFC Dll with matlab

查看:99
本文介绍了用matlab加载MFC Dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我需要帮助,我有我需要在Matlab中使用的c ++ MFC Dll文件,但我无法加载它,总是从matlab收到gettinh错误,从matlab使用了loadlibrary函数,dll使用了MFC类并且无法避免. .

1.是否可以使用Matlab v7从Matlad加载MFC DLL?
2.有没有人有一个很好的示例,本文中的示例使用的是不带mfc类的c ++ dll ....

我从matlab得到的

Hi,
i need help on that , i have c++ MFC Dll file that i need to use in matlab but i could not load it , allways gettinh error from matlab, used loadlibrary function from matlab, the dll uses MFC class and could not be avoided...

1. is it possible to load MFC dll from matlad using matlab v7?
2. does any one have good example, the examples in articles here are using c++ dll without the mfc class....

The that i getting from matlab

loadlibrary (''MfcDll1.dll'',''MfcDll1.def'')
??? Error using ==> loadlibrary There was an error loading the library "C:\Program Files\MATLAB71\work\MfcDll1.dll"
Error using == loaddefinedlibrary

This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.



谢谢
Pascal



Thanks
Pascal

推荐答案

第一次被Google点击 [^ ]

也许如果您构建一个使用Matlab的MFC应用程序,则可以将MFC dll导入其中?
First google hit[^]

Perhaps if you build an MFC app to use Matlab, you can import your MFC dll into it ?


这篇关于用matlab加载MFC Dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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