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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get actual name of app?

Status
Not open for further replies.

bitbit

Programmer
Nov 14, 2002
14
US
How do I get the actual name of the application if the user has changed it?

PS: Anybody else having trouble with this site? Can't log in and when i do I get gibberish half the time.
 
With MFC:
CString name = AfxGetAppName( );
Or so:
if(AfxGetApp()) {
name = AfxGetApp()->m_pszExeName;
}
 
If you do not use MFC, look at third parameter of cWinMain or at argv[0] from main(int argc, char *argv).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top