vc GetModuleFileName的运用
2010-08-05 14:23
113 查看
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";
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获取应用程序路径
- VC中使用GetModuleFileName获取应用程序路径
- VC中使用GetModuleFileName获取应用程序路径 转帖
- VC:注册表实现软件自动启动(CRegKey 、GetModuleFileName)
- VC中使用GetModuleFileName获取应用程序路径
- VC中使用GetModuleFileName获取应用程序路径(转)
- VC中使用GetModuleFileName获取应用程序路径(转)
- VC中使用GetModuleFileName获取应用程序路径
- VC++ GetModuleFileName、_splitpath和_makepath用法
- VC中使用GetModuleFileName获取应用程序路径(整理)
- VC中使用GetModuleFileName获取应用程序路径 2010-9-3 13:19
- VC中使用GetModuleFileName获取应用程序路径 转帖
- 十一:VC中使用GetModuleFileName获取应用程序路径
- VC新建目录CreateDirectory、得到exe存放路径GetModuleFileName、获取当前目录GetCurrentDirectory、CFileDialog设置打开默认路径
- VC新建目录CreateDirectory、得到exe存放路径GetModuleFileName、获取当前目录GetCurrentDirectory、CFileDialog设置打开默认路径
- VC中使用GetModuleFileName获取应用程序路径
- 获取文件路径函数之GetModuleFileName()
- <Win32 API> 获取系统文件夹路径 GetModuleFileName
- GetModuleFileNameA获取病毒的自身路径
- MFC学习20160718(GetModuleFileName&&GetAppDataPath)