标签:ar 使用 sp bs ef line nbsp 程序 file
例如:
TCHAR path[8192];
int len = getmodulefilename(afxgetinstancehandle(),path,8192);//会出现断言
如果没有选择支持MFC,就使用afxgetinstancehandle(),会出现断言,要先使用AfxWinInit(::GetModuleHandle(NULL),NULL,::GetCommandLine(),0)初始化MFC(相当于支持MFC)。
标签:ar 使用 sp bs ef line nbsp 程序 file
原文地址:http://www.cnblogs.com/lisuyun/p/4134651.html