随笔分类 -  VC

跟IDE相关的放这里,否则放C/C++
摘要:Workaround: Solution Explorer ->项目右键-> properties ->Configuration Properties->C/C++ -> Preprocessor-> Preprocessor Definitions->下拉框<Edit...> ->最末尾增加_S 阅读全文
posted @ 2019-07-22 20:49 长老猪 阅读(279) 评论(0) 推荐(0)
摘要:0000-007F | 0xxxxxxx #UTF-8规定,若1字符=1字节,首位须为0 0080-07FF | 110xxxxx 10xxxxxx #UTF-8规定,若1字符=2字节,高位前3位为110,低位前2位为10 0800-FFFF | 1110xxxx 10xxxxxx 10xxxxxx #UTF-8规定,若1字符=3字节,高位前4... 阅读全文
posted @ 2019-02-07 23:06 长老猪 阅读(311) 评论(0) 推荐(0)
摘要:在窗口类中要得到它的hwnd,以便操作SDK函数 CWnd::GetSafeHwnd() 要得到窗口指针CWnd*,使用全局函数 AfxGetMainWnd( ); 要得到应用程序指针CWinApp*,使用全局函数 AfxGetApp(); 要得到hInstance,使用MACRO GetWindo 阅读全文
posted @ 2019-02-07 20:59 长老猪 阅读(2504) 评论(0) 推荐(0)
摘要:将wchar_t* 转成 char* 阅读全文
posted @ 2019-01-04 20:46 长老猪 阅读(138) 评论(0) 推荐(0)