Path: utzoo!utgpu!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!andrew.cmu.edu!mm5l+ From: mm5l+@andrew.cmu.edu (Matthew Mashyna) Newsgroups: comp.sys.mac.programmer Subject: Re: C++ and MacApp Message-ID: Date: 6 Nov 89 15:17:26 GMT References: <4418@ncsuvx.ncsu.edu>, <36237@apple.Apple.COM> Organization: Humanities and Social Sciences, Carnegie Mellon, Pittsburgh, PA Lines: 32 In-Reply-To: <36237@apple.Apple.COM> Thanks to the folks at Apple, and in particular Larry Rosenstein, for setting me straight on this. Sorry I got a bit flustered. I should know better than to panic about Beta software. I've had plenty panic about my early releases. In case anyone else can't sit still long enough to read two thick inches of documentation, here's what I had to do to get my copy of the C++ MacApp headers to work: In Types.h I had to typedef VHSelect and SignedByte and redefine the Length Macro as follows: enum {v,h}; typedef unsigned char VHSelect; typedef unsigned char Byte; typedef char SignedByte; and #ifdef __cplusplus inline int Length(const StringPtr string) { return (*string); }; #else #define Length(string) (*(unsigned char *)(string)) #endif Matt Mashyna Macintosh Initiative, H&SS Dean's Office Carnegie Mellon