I am sorry that I didn’t express my problem clear enough. Function is written for 32 bit system but I am using 64 bit system now.
"Bruno Luong" <firstname.lastname@example.org> wrote in message <email@example.com>... > "Tomas Schiler" <firstname.lastname@example.org> wrote in message <email@example.com>... > > Hello, > > I am looking for way how to convert mwsize *type to int * because i was using mex file writen for 32 bit matlab which was used to call function of MIP solver xpress do i cannot change type in these functions. Now the code doesn't work and i am would like to find simpliest posible solution to solve problem. > > Thank you. > > Huuh? mwSize IS actually defined as INT on 32 bit platform. Here is highlight of the definition header: > > #ifdef MX_COMPAT_32 > typedef int mwSize; > typedef int mwIndex; > typedef int mwSignedIndex; > #else > typedef size_t mwSize; /* unsigned pointer-width integer */ > typedef size_t mwIndex; /* unsigned pointer-width integer */ > typedef ptrdiff_t mwSignedIndex; /* a signed pointer-width integer */ > #endif > > Bruno