摘要:
char szFilePath[MAX_PATH];GetModuleFileName(NULL,szFilePath,MAX_PATH-1);string strFilePath=szFilePath;int nPos=strFilePath.rfind('//');strFilePath=strFilePath.substr(0,nPos+1);其中 DWORD WINAPI GetModuleFileName( __in_optHMODULE hModule, __outLPTSTR lpFilename, __inDWORD nSize); 阅读全文