摘要:2011.05.04 : 头文件, lib, 初始化, 很多库都要初始化, gdi+, COM, OCX, Continer等等.
阅读全文
摘要:[2011.3.25] wstring, string[2011.3.25] 头文件引入顺序, DoDataExchange(DDX_LOAD)要在m_control使用之前调用顺序.
阅读全文
摘要:[11.03.23] Rich Edit 2.0 Control http://hi.baidu.com/sppeivan/blog/item/794e60f357e4571ab17ec56a.htmlHMODULE hMod;HRESULT hRes = ::OleInitialize(NULL);hMod = LoadLibrary(_T("riched20.dll"));FreeLibrary(hMod);::OleUninitialize();[11.03.23] 错误: 资源重复 解决:MAINFEST资源改个ID号[11.03.23] 错误:资源重复 解决:嵌入
阅读全文
摘要:11.01.291.BOOL类型返回TRUE! 如果返回bool会引发很奇怪的错误.花费至少半小时查各种奇怪错误.2.Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->int WINAPI DllMain (HINSTANCE hInstance, DWORD fdwReason, PVOID pvReserved){ return 2;}如果返回0, 生成没错误, 运行时有错误.尽量所有return 的都返回true.11.01.24----
阅读全文