electrohome@watcgl.UUCP (electrohome) (07/15/85)
I've been attempting to use the low-level driver routines provided by
Aztec C (version 1.06F) to print a copy of the screen without any
luck. As far as I can tell, I've done everything according to the
instructions given in _Inside Mac_. Can anyone give me an idea what
I'm doing wrong (or suggestions on how to do it in other ways)? My test
program follows:
==============================TEST PROGRAM=================================
#include "stdio.h"
#include "quickdraw.h"
#include "menu.h"
#include "window.h"
#include "event.h"
#include "control.h"
#include "inits.h"
#include "desk.h"
#include "textedit.h"
#include "font.h"
#include "dialog.h"
#include "print.h"
main()
{
InitGraf(&thePort);
InitFonts();
FlushEvents(everyEvent,0);
InitWindows();
TEInit();
InitDialogs(0L);
SetCursor(&arrow);
InitCursor();
PrDrvrOpen();
PrCtlCall(iPrEvtCtl,iPrEvtAll,0L,0L);
PrDrvrClose();
}