- 博客(1)
- 资源 (1)
- 收藏
- 关注
原创 获取exe程序路径
char exePath[LEN_PATH]={0}; GetModuleFileName(NULL,exePath,LEN_PATH); // 得到exe文件的绝对路径 strrchr( exePath, '\\')[0]= '\0'; printf("exePath: %s\n",exePath); exePath 为程序入口的路径 比如test1: int main() {
2016-09-10 09:04:45 636
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人