Click here to Skip to main content
15,851,242 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.


Thanks
Pascal
Posted
Updated 27-Dec-09 4:37am
v2

1 solution

First google hit[^]

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

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900