当前位置: 代码迷 >> Windows Mobile >> WinCE中怎么获得当前运行程序的文件路径
  详细解决方案

WinCE中怎么获得当前运行程序的文件路径

热度:77   发布时间:2016-04-25 07:40:47.0
WinCE中如何获得当前运行程序的文件路径?
WinCE中如何获得当前运行程序的文件路径?

------解决方案--------------------
void GetCurrentDirectory(CString &strPath) 

wchar_t pBuf[256]; 

GetModuleFileName(NULL,pBuf,sizeof(pBuf)/sizeof(wchar_t)); 
strPath=pBuf; 
strPath = strPath.Left(strPath.ReverseFind('\\') + 1); 
}
  相关解决方案