Re: MEX error: can't convert to mwSize
- From: "Christopher " <crohdenospam@xxxxxxx>
- Date: Wed, 13 Aug 2008 20:03:03 +0000 (UTC)
It works now, thanks a lot! I don't know why I didn't try that.
Praetorian <ashish.sadanandan@xxxxxxxxx> wrote in message
<79a20835-3072-4285-a3ce-e9620341847a@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>...
On Aug 13, 1:04=A0pm, "Christopher "<crohdenos...@xxxxxxx> wrote:
trying toHello, I wrote some MEX code a few months ago and switched
over to Visual Studio 2008 in the mean time. =A0I'm
*)&dimArray[0]);recompile my code, and I'm getting an error on the line (and
on other lines that take the dimensionality of an array as a
parameter):
plhs[1] =3D mxCreateCharArray(2,dimArray);
The error text is
error C2664: 'mxCreateCharArray_730': cannot convert
parameter 2 from 'int [2]' to 'const mwSize *'
Since this worked before, and I've seen example code doing
things the exact same way, I'm at a loss as to how to get
this code to work.
Any suggestions?
Does this work?
plhs[1] =3D mxCreateCharArray(2, (const mwSize
I don't know why the first one doesn't work though.
.
- References:
- MEX error: can't convert to mwSize
- From: Christopher
- Re: MEX error: can't convert to mwSize
- From: Praetorian
- MEX error: can't convert to mwSize
- Prev by Date: Re: Find a vector in a matrix
- Next by Date: Uiwait or waitfor and how?
- Previous by thread: Re: MEX error: can't convert to mwSize
- Next by thread: Re: MEX error: can't convert to mwSize
- Index(es):
Relevant Pages
|