/**************/ /* hellopr3.c */ /***************************************************************************** PROGRAM: hellopr3.c PURPOSE: Hello World! tulostetaan Windowsin oletuskirjoittimelle Toinen malli tulostus-kirjaston käytöstä PROJECT: hellopr3.c, kolmiom.c, tulostus.def ALI\tulostus.c, ALI\tulostus.rc, ALI\timer.c Määrittele vakio: NO_CHECKER Editor: Vesa Lappalainen 4.11.1992 *****************************************************************************/ #include #include "tulostus.h" #include "kolmiom.h" /****************************************************************************/ int PASCAL WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow) { #pragma argsused HDC hdcPrinter; SetupPrinter(0); InformPrinter(hInstance); // Tarvitaan koska ei ikkunaa! if ( (hdcPrinter = StartPrinting(NULL,140) ) == NULL) return 1; MyDraw(NULL,hdcPrinter); StopPrinting(NULL,hdcPrinter); MessageBeep(MB_OK); return 0; }