Can the MATLAB Data API be used with MFC framework
이전 댓글 표시
The following code snippet runs OK within a console application but will crash on the call to initMATLABApplication if put within a MFC application. It also seems that the runMain function would/can only be called within main(), which MFC does not provide?
auto mode = mc::MATLABApplicationMode::IN_PROCESS;
const std::string STR_OPTIONS = "-nojvm";
const std::u16string U16STR_OPTIONS = convertAsciiToUtf16(STR_OPTIONS);
std::vector<std::u16string> options = { U16STR_OPTIONS };
m_matlabApplication = mc::initMATLABApplication(mode, options);
int ret = mc::runMain(&CADCTestDlg::RunADCMetrics, std::move(matlabApplication), 0, NULL);

답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 MATLAB Compiler SDK에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!