Skip to content

Latest commit

 

History

History
63 lines (39 loc) · 1.37 KB

debugprintf.md

File metadata and controls

63 lines (39 loc) · 1.37 KB
title manager ms.date ms.audience ms.topic f1_keywords keywords ms.localizationpriority ms.assetid
debugPrintf
lindalu
11/16/2014
Developer
reference
debugPrintf
debugprintf function [excel 2007]
medium
9ad541f6-0b35-4f50-926a-8940e3f8033a

debugPrintf

Applies to: Excel 2013 | Office 2013 | Visual Studio

Framework library function that writes a null-terminated byte-string to the active debugger via the Windows SDK function OutputDebugStringA. If the application has no debugger, the system debugger displays the string. If the application has no debugger and the system debugger is not active, debugPrintf does nothing.

This function does not return a value.

void WINAPI debugPrintf(LPSTR lpFormat, arguments);

Parameters

lpFormat (LPSTR)

The format string, which follows the syntax and rules for that used with the sprintf function.

arguments

Zero or more arguments to match the format string.

Example

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;
}

See also

Functions in the Framework Library