필터 지우기
필터 지우기

Can Matlab call MFC C++ codes via mex functions?

조회 수: 1 (최근 30일)
Zhengkai
Zhengkai 2011년 10월 5일
Hey,
I used Microsoft studio 2008 visual C++ developed a GUI for 3D graphics visualization (opengl package used). Now I write a mex file for the VC++ code and compiled it successfully(opengl.mexw64 generated). When I call the opengl in matlab, it has no windows (for graphics show) popped out. I doubt whether matlab can call the MFC C++ programs?
I set up the VC++ program as a dll configure,and linked all the mex and opengl libs in VC environment settings.

답변 (2개)

Manohar Reddy
Manohar Reddy 2012년 10월 23일
Hello,
Did you get any solution for this problem even I am facing the same problem with Microsoft Visual Studio 2005. When I call the generated mex file from MATLAB, no window is popped out. Appreciate if you could share your experience on this.
Thanks
Manohar Reddy M

Sachin Ganjare
Sachin Ganjare 2012년 10월 23일
It is possible to call MFC C++ program in matlab, refer the link below for details:
Hope it helps!!!

카테고리

Help CenterFile Exchange에서 MATLAB Compiler SDK에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by