mxArray* to mwArray

2 次查看(过去 30 天)
Roshtha
Roshtha 2017-8-11
Hello all,
I have a program in C++ that creates mxArray* variables and uses them to call matlab engine and execute matlab scripts. Now I am changing matlab engine with matlab shared dlls.
I use mcc command
mcc -v -W cpplib:libMyLib -T link:lib test.m
This generates .dll, .lib and .h file. The .h file has c++ entry point functions which accept mwArray. As the existing application has a large number of functions which accept and return mxArray*, I don't want to convert them all to mwArray. Instead, I would like to convert the final mxArray* variable to mwArray and pass to shared dll.
How can I convert mxArray* to mwArray?
Thanks

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Deploy to C++ Applications Using mwArray API (C++03) 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by