Re: MEX error: can't convert to mwSize
- From: Praetorian <ashish.sadanandan@xxxxxxxxx>
- Date: Wed, 13 Aug 2008 12:53:25 -0700 (PDT)
On Aug 13, 1:04 pm, "Christopher " <crohdenos...@xxxxxxx> wrote:
Hello, I wrote some MEX code a few months ago and switched
over to Visual Studio 2008 in the mean time. I'm trying to
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] = 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] = mxCreateCharArray(2, (const mwSize *)&dimArray[0]);
I don't know why the first one doesn't work though.
.
- Follow-Ups:
- Re: MEX error: can't convert to mwSize
- From: Chris Hulbert
- Re: MEX error: can't convert to mwSize
- From: Christopher
- Re: MEX error: can't convert to mwSize
- References:
- MEX error: can't convert to mwSize
- From: Christopher
- MEX error: can't convert to mwSize
- Prev by Date: negative indexing, as in R/Splus
- Next by Date: Re: brushing linked data with indices
- Previous by thread: MEX error: can't convert to mwSize
- Next by thread: Re: MEX error: can't convert to mwSize
- Index(es):
Relevant Pages
|