home *** CD-ROM | disk | FTP | other *** search
/ Multimedia Jumpstart / Multimedia Microsoft Jumpstart Version 1.1a (Microsoft).BIN / develpmt / source / hotspot / vbx / debug.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-11-02  |  916 b   |  32 lines

  1. /**************************************************************************
  2.  *
  3.  *  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4.  *  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5.  *  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6.  *  PURPOSE.
  7.  *
  8.  *  Copyright (c) 1993  Microsoft Corporation.  All Rights Reserved.
  9.  * 
  10.  **************************************************************************/
  11. /*
  12.     debug.c:
  13.         DbgOut -- printf to the debug window
  14. */
  15.  
  16. #include <windows.h>
  17.  
  18. #include "hotspot.h"
  19.  
  20. /*
  21.     DbgOut -- uses wvsprintf to simulate printf but putting the output
  22.         into a string, then sends the string to the debug window with
  23.         OutputDebugString.
  24. */
  25. void cdecl DbgOut(LPSTR lpFormat, ...)
  26. {
  27.     char buf[256];
  28.     wvsprintf(buf, lpFormat, (LPSTR)(&lpFormat+1));
  29.     OutputDebugString(buf);
  30.     OutputDebugString("\r\n");
  31. }
  32.