Hi,
I need to convert int32 to int in VS2008 C++ CLI?
How is this done?
Hi,
I need to convert int32 to int in VS2008 C++ CLI?
How is this done?
Just use a cast:
int32 a = ...;
int b = (int) a;
Note that in principle this might lead to problems if you're running on a platform where int
is less than 32 bits, but that's unlikely if it's a program for Windows.