Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!oliveb!ames!killer!cantrell From: cantrell@killer.Dallas.TX.US (Keith Cantrell) Newsgroups: comp.sys.apollo Subject: Need help with creating a pad. (Please Help!) Message-ID: <7489@killer.Dallas.TX.US> Date: 9 Mar 89 19:29:55 GMT Reply-To: cantrell@killer.DALLAS.TX.US (Keith Cantrell) Distribution: usa Organization: The Unix(R) Connection BBS, Dallas, Tx Lines: 39 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, window_desc, stream_id, status); error_$print(status); } Thanks for any help, Keith ----------------------------------------------------------------------- Keith Cantrell Phones: hm: 214-492-1088 Integrated Telecom wk: 214-234-3340 USMAIL: EMAIL: 2100 Sonata Ln cantrell@killer.DALLAS.TX.US Carrollton TX 75007 or ...!uunet!{killer | texsun | letni}!dalitc!keith -----------------------------------------------------------------------