Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!pasteur!ucbvax!decwrl!sun!pitstop!sundc!seismo!uunet!mcvax!philmds!leo
From: leo@philmds.UUCP (Leo de Wit)
Newsgroups: comp.sys.atari.st
Subject: Re: GDOS Handles
Message-ID: <554@philmds.UUCP>
Date: 7 Jul 88 15:35:49 GMT
References: <8807061204.AA27467@ucbvax.Berkeley.EDU>
Reply-To: leo@philmds.UUCP (Leo de Wit)
Organization: Philips I&E DTS Eindhoven
Lines: 19

In article <8807061204.AA27467@ucbvax.Berkeley.EDU> ONM07@DMSWWU1A.BITNET writes:
>Date: 6 July 1988, 13:58:58 MES
>From: Julian F. Reschke         (02501) 13279        ONM07    at DMSWWU1A
>Concerning Leo de Wit's program to read characters from screen:
>
>PLEASE NEVER NEVER NEVER do VDI-calls with a zero-handle. Valid VDI
>handles start at 1! Calling a VDI-function with zero-handle will result
>in an error when working with Atari's brand new GDOS (AMCGDOS)!

You're right; the graf_handle() function can be used to get the desktop's
handle.

B.T.W. I was a bit puzzled, because the VDI call has nothing to do with
the program; it was merely a remark about getting the cursor position.
The program source followed in the same posting, but doesn't even use
VDI or AES (only a Line-A exception is used to get the font
parameters). It should be correct as it stands.

         Leo.