Category : C Source Code
Archive   : MONO.ZIP
Filename : MONOWIN.CPP

 
Output of file : MONOWIN.CPP contained in archive : MONO.ZIP
// File : MONOWIN.CPP

// Contents ------------------------------------------------------------------
//
// mPrintf
//
// Description
//
// These routines allow a secondary monochrome monitor to be
// used as a debugging screen. They are to be used with the MONODLL
// dynamic link library and actually require MONODLL.
//
// These routines take the same parameters as printf. They accept
// a format string and a variable number of parameters. Since they
// have a variable number of parameters, they cannot be defined as
// PASCAL and have therefore been left out of MONODLL.
//
// Organization
//
// Interface Dependencies
// Implementation Dependencies
// Global Variables
// Functions
//
// End -----------------------------------------------------------------------

// Interface Dependencies ----------------------------------------------------
// End Interface Dependencies ------------------------------------------------

// Implementation Dependencies -----------------------------------------------
#include "monodll.h"
#include
#include /* for variable parameter processing */
// End Implementation Dependencies -------------------------------------------

// Global Variables ----------------------------------------------------------
// End Global Variables ------------------------------------------------------

// Functions -----------------------------------------------------------------

//extern "C" void far
void far
mPrintf( int newLine, LPSTR format, ...) {
// Summary -------------------------------------------------------------------
//
// This function displays a formatted string on the secondary monitor
// and accepts the same parameter list as printf.
//
// Input Parameters
//
// newLine a true/false parameter used to determine whether a
// CR/LF (newline) is generated after the message is
// displayed on the monitor.
//
// format,... See printf in the c library.
//
// Remarks
//
// The non parameter formatting strings usable in printf will not work
// the same way on the monochrome monitor. Control codes will be
// displayed as solid squares.
//
// End -----------------------------------------------------------------------
va_list argptr;
char buf[MONOBUFSIZE];
// char lformat[128];
// lstrcpy( lformat, format);
va_start( argptr, format );
// vsprintf( buf, lformat, argptr );
vsprintf( buf, format, argptr );
va_end( argptr );

mPrint( newLine, buf );
}

// End of File: MONOWIN.CPP


  3 Responses to “Category : C Source Code
Archive   : MONO.ZIP
Filename : MONOWIN.CPP

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/