Re: MEX error: can't convert to mwSize



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:
Hello, I wrote some MEX code a few months ago and switched
over to Visual Studio 2008 in the mean time. =A0I'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] =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
*)&dimArray[0]);

I don't know why the first one doesn't work though.

.



Relevant Pages

  • Re: MEX error: cant convert to mwSize
    ... over to Visual Studio 2008 in the mean time. ... recompile my code, and I'm getting an error on the line (and ... things the exact same way, I'm at a loss as to how to get ...
    (comp.soft-sys.matlab)
  • Re: Error: 7 Out of Memory
    ... neither have Visual Studio of any sort installed. ... run the same company wide Windows Updater with all very similar if not ... it was showing the exact same symptoms as the problem PCs. ...
    (microsoft.public.vb.bugs)
  • Re: .NET 2.0 (RTM) serialization does not thror exception for missing/changed properties!
    ... > When I debug the Readmethod after deserializing I see that class ... I tried the exact same code on Visual Studio 2003 with ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Visual Studio 2005 released.....
    ... there is allways scope for failure, confusion or loss of data. ... I just installed Visual Studio 2005 Beta 2. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Studio Lost
    ... I am at a loss here. ... I can see the pages in Visual Studio. ... > SPS Site contains Web part pages which are stored in the database, ... > - Ram ...
    (microsoft.public.sharepoint.portalserver.development)