把这VS20008上写的代码放到VS2005编译时,这样报错: OpenFileDialog' does not contain a definition for'SafeFileName' 。
经查MSDN,原来NET Framework3.5、3.0版本 才支持SafeName用法,VS2005没有更新前.NET 2.0 不支持。所以编译时会报错。更新后就可以了。
把这VS20008上写的代码放到VS2005编译时,这样报错: OpenFileDialog' does not contain a definition for'SafeFileName' 。
经查MSDN,原来NET Framework3.5、3.0版本 才支持SafeName用法,VS2005没有更新前.NET 2.0 不支持。所以编译时会报错。更新后就可以了。