次の方法で共有


AfxGetAppName

更新 : 2007 年 11 月

この関数で返される文字列は診断用のメッセージや一時的な文字列名のルートとして使われます。

LPCTSTR AFXAPI AfxGetAppName( ); 

戻り値

アプリケーション名を NULL で終わる文字列の形式で返します。

使用例

// Print the application name to the debugger output window.
TRACE(_T("Application name is %s\n"), AfxGetAppName());

必要条件

ヘッダー : afxwin.h

参照

概念

MFC マクロとグローバル