This is a convenient function I use to print formatted statements (i.e.
printf) to the Windows debugger. It formats the text using
vsprintf and then relays the output to the system debugger by passing it to the
The API is documented in the header file (
The code ("dbgprintf") is licensed under the GNU Lesser General Public License.
Below is a simple example:
DebugPrintf(TEXT("Ticks: %ld"), GetTickCount());