随笔分类 -  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.. 阅读全文
posted @ 2013-04-16 14:31 赤色 阅读(1314) 评论(0) 推荐(0)
摘要:在写一的读取注册表的小程序的时,发现中文字符不能显示,并导致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 阅读全文
posted @ 2013-04-01 13:27 赤色 阅读(326) 评论(0) 推荐(0)
摘要://// 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... 阅读全文
posted @ 2013-03-31 21:16 赤色 阅读(371) 评论(0) 推荐(0)

知识共享许可协议本博客作品采用知识共享署名-相同方式共享 3.0 未本地化版本许可协议进行许可。