CString str;
str.Format("%ld",-2147483648);
J:\workworkwork\Osiris\RawDate.cpp(1555) :
warning C4146: unary minus operator applied to unsigned type, result still unsigned
str.Format("%ld",-2147483648);
J:\workworkwork\Osiris\RawDate.cpp(1555) :
warning C4146: unary minus operator applied to unsigned type, result still unsigned
我的本意是一个文本框,关联一个CString str,然后str.Format("%ld",-2147483648);,
显示可挑数字的最小值,然后UpdateData(),atol得到此值.只是不解%ld显示long int 最小值为何警告呢?