[comp.sys.amiga.tech] async copier -- AmigaDOS-like requestors

deven@rpi.edu (Deven T. Corzine) (04/13/90)

One last problem.  I wanted the diskcopier to be able to bring up
requesters very much like those AmigaDOS brings up, except to use
messages like "destination disk is write-protected" and the like.  I
tried to use the Intuition AutoRequest() function with the window
pointer that's supposed to be in the pr_WindowPtr field of the process
structure, but it never worked.  It turned out that the pr_WindowPtr
was zero.

I realize zero is a legal value, and perhaps I had run noreq in the
shell-startup, clearing it.  In fact, come to think of it, I likely
did.  In any event, given that pr_WindowPtr was zero, I instead tried
using a FindWindow() routine I had written to get the window pointer
by sending the ACTION_DISKINFO packet to the handler for "*" and
returning the window pointer.

This routine works, a test program changed the title bar and screen
title bar for a bit then changed them back and exited.  However, the
AutoRequest() still failed. I don't remember if it GURUed, but I think
it did, probably with either 00000003 or 00000004...  (i.e. address
error or illegal instruction.)  But it didn't work anyway.  Did I miss
something else?  Also, is it possible to do AutoRequest() or similar
without having a window already open?  (i.e. some way to say "use the
workbench screen"...)

Well, I guess that's all for now...  (whew!)

Deven
-- 
Deven T. Corzine        Internet:  deven@rpi.edu, shadow@pawl.rpi.edu
Snail:  2151 12th St. Apt. 4, Troy, NY 12180   Phone:  (518) 274-0327
Bitnet:  deven@rpitsmts, userfxb6@rpitsmts     UUCP:  uunet!rpi!deven
Simple things should be simple and complex things should be possible.