Sender: news@dartvax.dartmouth.edu (The News Manager)
Organization: Dartmouth College, Hanover, NH
Lines: 92
All:
I am currently writing an After Dark module, and was having problems with the storage variable. I set it up ok...it seems to have the correct intial values, but
after that, it seems that I can't change anything. See code below:
{DoInitialize: Allocates Memory and various variables}
function DoInitialize (var storage: Handle; blankRgn: rgnHandle; params:
GMParamBlockPtr): OSErr;
var
msg: msgPtr;
begin
msg := msgPtr(NewPtr(sizeof(msgType)));
msg^.h := 100;
msg^.v := 100;
hlock(storage);
storage^ := Ptr(msg);
hunlock(storage);
DoInitialize := noErr;
end;
{DoBlank: Blanks the Screen}
function DoBlank (storage: Handle; blankRgn: rgnHandle; params: