size_t Considerations
 
 
 

A size_t has a different size depending on the target platform.

#ifdef _WIN64
typedef unsigned __int64 size_t;
#else
typedef _W64 unsigned int size_t;
#endif

When porting 3ds Max to x64, size_t compatibility was forsaken

We chose the following practices for the x64 version of 3ds Max:

The above also applies to a few other major APIs, such as fread and fwrite.