/**************/ /* hellopr2.c */ /***************************************************************************** PROGRAM: hellopr2.c PURPOSE: Hello World! tulostetaan Windowsin oletuskirjoittimelle Malli tulostus-kirjaston käytöstä PROJECT: hellopr2.c, ALI\tulostus.c, tulostus.def Editor: Vesa Lappalainen 4.11.1992 *****************************************************************************/ #include #include "tulostus.h" /****************************************************************************/ int PASCAL WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow) { #pragma argsused HDC hdcPrinter; if ( (hdcPrinter = StartPrinting(NULL,0) ) == NULL) return 1; TextOut(hdcPrinter,20,20,"Hello World!",12); StopPrinting(NULL,hdcPrinter); MessageBeep(MB_OK); /* Ei tarvita, mutta kun ei tul. mitään, niin kuul*/ return 0; }