随笔分类 - MFC
MFC问题集锦
Compiling in Unicode but need to save txt in UTF-8(MFC)
摘要:背景:Compiling in Unicode but need to save txt in UTF-8(MFC) 解法: CString cs_test=_T(“TEST”); CT2A _ cs_test( cs_test,CP_UTF8); CFile m_sFile(_T("D:\test
阅读全文
Linking a C++ DLL 引发LNK1120和LNK2019问题的解决方案
摘要:背景:MFC中一个project App需引用另一个project Dll中的其中一个类的方法。 错误信息: error LNK1120: 1 unresolved externals error LNK2019: unresolved external symbol "public: static
阅读全文
warning C4627: '#include "myLog.h"': skipped when looking for precompiled header use
摘要:解决此warning的方法: 在.cpp文件的第一行写上 #include "stdafx.h"
阅读全文
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall CADOConn::CADOConn(void)"解决
摘要:背景:在MFC程序中写了两个project,其中一个project需要引用win32 project(ADOConn)。 1. __thiscall实为noise信息,重点是之后的CADOConn::CADOConn(void),原因为CADOConn有一个默认的构造函数,只有声明没有实现,需在.c
阅读全文
浙公网安备 33010602011771号