Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site watcgl.UUCP
Path: utzoo!watmath!watnot!watcgl!electrohome
From: electrohome@watcgl.UUCP (electrohome)
Newsgroups: net.micro.mac
Subject: Help with printing from Aztec C
Message-ID: <2201@watcgl.UUCP>
Date: Sun, 14-Jul-85 22:36:38 EDT
Article-I.D.: watcgl.2201
Posted: Sun Jul 14 22:36:38 1985
Date-Received: Mon, 15-Jul-85 07:04:17 EDT
Reply-To: electrohome@watcgl.UUCP ()
Organization: U of Waterloo, Ontario
Lines: 40
Keywords: Aztec C, Printing, Driver



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();
}