Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!bellcore!texbell!killer!igloo!bhv From: bhv@igloo.Scum.COM (Bronis Vidugiris) Newsgroups: comp.sys.apollo Subject: Re: Need help with creating a pad. (Please Help!) Message-ID: <1210@igloo.Scum.COM> Date: 11 Mar 89 13:33:44 GMT References: <7489@killer.Dallas.TX.US> Reply-To: bhv@igloo.UUCP (Bronis Vidugiris) Distribution: usa Organization: igloo, Northbrook, IL Lines: 36 In article <7489@killer.Dallas.TX.US> cantrell@killer.DALLAS.TX.US (Keith Cantrell) writes: =Could some kind sole tell me what is wrong with the following code. =All I am trying to do is create a window with a help file in it. =Every time I try an run this I get an "Invalid leaf" error, but I =know the file exist! I am running a C-Shell under BSD4.2 with =SR 9.7. = = =#include "/sys/ins/base.ins.c" =#include "/sys/ins/pad.ins.c" =#include "/sys/ins/error.ins.c" = =main() = ={ = char *path = {"/sys/help/help.hlp"}; = status_$t status; = pad_$window_desc_t window_desc; = stream_$id_t stream_id; = = window_desc.top = window_desc.left = window_desc.height = = window_desc.width = 0; = pad_$create_window(path, (short) strlen(path), pad_$read_edit, (short) 1, I haven't tried compiling this myself - but from past experience I suspect that you will have to replace path with *path here due to the vagaries of the 'standard call'. Another workaround is to copy the information in path into a variable declared with the 'standard' filename type - (don't recall what it is. Hope this works = window_desc, stream_id, status); = error_$print(status); =} = -- bhv@igloo