error1:'=':overloaded member function 'class _variant_t &(unsigned char)'
not found in '_variant_t'
error2:unexpected token(s) preceding';'
error3:see declaration of '_variant_t'
这3个错误前面都有"d:\program files\microsoft visual studio\vc98\comutil.h(具体行数)"这样的东西。这个路径也就是VC安装的路径。起先我没有点击rebuild all的时候,这3个错误并没有出现。
奇怪的是当我把代码拿到其他机器上的时候是这3个错误都没有了,为什么??
not found in '_variant_t'
error2:unexpected token(s) preceding';'
error3:see declaration of '_variant_t'
这3个错误前面都有"d:\program files\microsoft visual studio\vc98\comutil.h(具体行数)"这样的东西。这个路径也就是VC安装的路径。起先我没有点击rebuild all的时候,这3个错误并没有出现。
奇怪的是当我把代码拿到其他机器上的时候是这3个错误都没有了,为什么??
原来是导如问题!
#import "c:\winnt\system32\msxml.dll" rename_namespace("xml")
不管导如哪个文件好象都有这3个错误!
起先没有的,为什么会这样呢?
就是把include
目录的文件全部覆盖一遍!