AfxGetAppName 

LPCTSTR AfxGetAppName( );

Return Value

A null-terminated string containing the application’s name.

Remarks

The string returned by this function can be used for diagnostic messages or as a root for temporary string names.