Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!NUSVM.BITNET!GBOPOLY1 From: GBOPOLY1@NUSVM.BITNET (fclim) Newsgroups: comp.sys.apollo Subject: Re: Need help with creating a pad (Please Help!) Message-ID: <8903100340.AA05419@umix.cc.umich.edu> Date: 10 Mar 89 03:36:13 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 30 X-Unparsable-Date: Fri, 10 Mar 89 11:25:07 SST In article <7489@killer.Dallas.TX.US>, Keith Cantrell ask > 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. Your problem is that when you declared path as char *path; /* A pointer */ you must pass path to pad_$create_window() as in pad_$create_window(*path, (short)strlen(path), ...); ie you must derefernce path. The reason is the differences in the ways C and Pascal passes arguments. Another way to fix the problem is char path[BUFSIZ]; /* An array */ strcpy(path, "/sys/help/help.hlp"); pad_$create_window(path, (short)strlen(path), ...); You have to use either method whenever you uses any Aegis subroutines that requires string arguments. fclim. :-) fclim --- gbopoly1 % nusvm.bitnet @ cunyvm.cuny.edu computer centre singapore polytechnic dover road singapore 0513.