From: plim on 18 Nov 2009 11:26 Hi, I create a C DLL ( using matlab compiler) in order to use it in c++. One of the DLL input arguments is a char array. I don't know how to allocate memory of a char array in my c++ script : (... To a double i know... piece of my code: //***************************************************** NUMC = mxCreateDoubleMatrix(1,20,mxREAL); STRC = mxCreateCharArray(???); memcpy(mxGetPr(NUMC),d, 20*sizeof(double)); memcpy(mxGetPr(STRC ),str, 50*sizeof(char));
|
Pages: 1 Prev: Problem calculating multiple summations using MuPAD Next: mimochan help.. |