"__int64" 如何转成 "_variant_t"类型

程序中需要进行这样的赋值,出现了  error C2593: 'operator =' is ambiguous 这样的错误提示。
我的系统是windows xp sp2. vc 2003.

 

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

 

 

 

 

posted on 2014-03-04 00:44  &大飞  阅读(341)  评论(0)    收藏  举报

导航