debugPrintf

適用対象: Excel 2013 | Office 2013 | Visual Studio

Windows SDK 関数 OutputDebugStringA を使用して、アクティブなデバッガーにヌル終端文字列の書き込みを行うフレームワーク ライブラリ関数。 アプリケーションにデバッガーがない場合は、システムのデバッガーに文字列が表示されます。 アプリケーションにデバッガーがなく、システムのデバッガーがアクティブでない場合は、debugPrintf は何の動作も行いません。

この関数は値を返しません。

void WINAPI debugPrintf(LPSTR lpFormat, arguments);

パラメーター

lpFormat (LPSTR)

形式文字列。sprintf 関数とともに用いられる文字列の構文とルールに従います。

arguments

形式文字列に一致する 0 個以上の引数。

This function prints a string to show that control was passed to it. The _DEBUG flag must be defined before compiling or else this function does nothing.

\SAMPLES\EXAMPLE\EXAMPLE.C

short WINAPI debugPrintfExample(void)
{
#ifdef _DEBUG
   debugPrintf("Made it!\r");
#endif
   return 1;
}

関連項目

フレームワーク ライブラリの関数