VC++6.0取得当前程序路径

VC++6.0获得当前程序路径char path[255]?GetMouleFileName(NULL,path,255)?????????????????? D:\\MyPr

VC++6.0获得当前程序路径

char path[255];

?

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

?

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

?