天天看点

windows

程序中需要进行这样的赋值,出现了  error c2593: 'operator =' is ambiguous 这样的错误提示。

我的系统是windows xp sp2. vc 2003.

__int64 赋值给_variant_t的时候,一定要在xp以上的系统上才能用,所以宏定义 _win32_winnt 要大于等于0x0501。