Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Program's path 1

Status
Not open for further replies.

ForeverCode

Programmer
Dec 6, 2002
41
0
0
US
How would I get my program's current path its running from?
 
Try this

TCHAR tcModule[ _MAX_PATH ];
if ( GetModuleFileName( AfxGetResourceHandle(), tcModule, MAX_PATH ) ) {

AfxMessageBox( tcModule );

}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top