Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!pasteur!ucbvax!hplabs!hp-ses!hpcea!hpausla!jcl From: jcl@hpausla.HP.COM (Jeff Laing) Newsgroups: comp.sys.mac.programmer Subject: Lightspeed C & Pedit Message-ID: <2580014@hpausla.HP.COM> Date: 30 Jan 89 02:15:29 GMT Organization: HP Australian Software Operation Lines: 25 Well, I finally got the time to sit down and use this neato Pedit package from Think. Has anyone else out there done the same and therefore headed off any more of its problems so that I don't have to stumble over them. First, the DA makes a big deal (12 lines of comment) about the tricks it uses to ensure the Edit menu will work. Then they botch the implementation so that it always asks for a file TWICE. [ the variable "first" needs to be set before the call to DoOpenFile, not after; the problem is that SFGetFile() will cause a DEACTIVATE for the current window which will call DoOpenFile again. ] Second, and worse, the function "Find Clipboard" crashes me with access errors. [ the problem is the routine PEGetScrpLength(). it is used but IS NOT DEFINED in PE.h. The manual talks about a routine PEGetScrapLen() but it doesn't exist in the library. Also, PEGetScrpLength() would appear to have some troubles of its own. To make it work, I had to declare it as /*NONPASCAL*/ long PEGetScrpLength(long dummy); and pass in a long dummy (which it would overwrite!!) Note this hack does not actually solve the problem, but fortunately the result accidentally comes back in the right register ... Anyone else out there had any problems, and/or know of any fixes? Disclaimer: Although the above sounds terribly negative, I think the product is great.