随笔分类 - VC++
摘要:compiler warning (level 1) C4482warning description:使用了非标准扩展: 限定名中使用了枚举“enum”当引用类型内的枚举时,无需指定枚举的名称。文件范围的枚举定义相当于常量,也不需要限定名。example: C4482(MS Visual Studio)// C4482.cpp// compile with: /c /W1struct S { enum E { a };};int i = S::E::a; // C4482int j = S::a; // OKNOTE:warring C4482: nonstandard extensio..
阅读全文
摘要:在写一的读取注册表的小程序的时,发现中文字符不能显示,并导致wcout阻塞(连后面的wcout都不输出了)解决:wcout.imbue(locale("chs"));//cout.imbue(locale("chs"));APIlocale imbue ( const locale& loc );Imbue localeAssociates loc to the stream as the new locale object to be used with locale-sensitive operations.Before that, all
阅读全文
摘要://// Define the severity codes////// MessageId: ERROR_SUCCESS//// MessageText://// The operation completed successfully.//#define ERROR_SUCCESS 0L#define NO_ERROR 0L // dderror#define SEC_E_OK ((HRESULT)0x0000...
阅读全文

浙公网安备 33010602011771号