char szCurPath[MAX_PATH];
GetModuleFileName(NULL,szCurPath,_MAX_PATH);
char* p = szCurPath;
while(strchr(p,'//'))
{
p = strchr(p,'//');
p++;
}
*p = '/0';
CString strSwfname = szCurPath;
// GetCurrentDirectory(256, testfilename);
//strcat(strSwfname.data,"//TestPic.xml");
strSwfname+="/TestPic.xml";
vc GetModuleFileName的运用
最新推荐文章于 2023-05-17 09:43:34 发布