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

WinCE中如何获得当前运行程序的文件路径?WinCE中如何获得当前运行程序的文件路径?[解决办法]void GetCurre

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); 
}