Converting __int64 to long in Windows
问题 How to convert __int64 to long in Windows (MSVC8 & MSVC6)? Will a normal typecasting work? Also, how about converting long to __int64? If the long is a negative value, will it work? Note - I am talking of a scenario in which the __int64 variable will always contain a value which will not be more than 32 bits long. 回答1: 1. Convert long to __int64 Acorrding to MSDN on the __int64 keyword: The _ _int64 keyword declares a new type, a 64-bit (8-byte) integer. As with the int, short, and long types