天天看點

VC++6.0獲得目前程式路徑

char path[255];

GetMouleFileName(NULL,path,255);                   "D:\\MyProject\\Test\\Bin\\Test.exe"

*strrchr(path,'\\')='\0';                                           "D:\\MyProject\\Test\\Bin\\"