From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,ef0074ec236ba6e3 X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,b19fa62fdce575f9 X-Google-Attributes: gid103376,public X-Google-Thread: 1014db,ef0074ec236ba6e3 X-Google-Attributes: gid1014db,public X-Google-Thread: 108717,ef0074ec236ba6e3 X-Google-Attributes: gid108717,public X-Google-Thread: 1108a1,ef0074ec236ba6e3 X-Google-Attributes: gid1108a1,public X-Google-ArrivalTime: 1994-12-16 13:53:57 PST Path: bga.com!news.sprintlink.net!hookup!news.mathworks.com!panix!zip.eecs.umich.edu!newsxfer.itd.umich.edu!caen!news.tc.cornell.edu!newsserver.sdsc.edu!nic-nac.CSU.net!charnel.ecst.csuchico.edu!csusac!csus.edu!dick From: dick@silicon.csci.csusb.edu (Dr. Richard Botting) Newsgroups: comp.lang.ada,comp.lang.c,comp.programming,comp.lang.c++,comp.object Subject: Re: Why don't large companies use Ada? Followup-To: comp.lang.ada,comp.lang.c,comp.programming,comp.lang.c++,comp.object Date: 16 Dec 1994 19:53:32 GMT Organization: CS Dept., Calif. State Univ., San Bernardino Message-ID: <3csr7t$e75@news.csus.edu> References: <1994Nov29.154220.27952@cognos.com> <3blinp$8dm@gnat.cs.nyu.edu> <3c873t$lut@calvin.st-and.ac.uk> <3c9jle$796@thyme.csv.warwick.ac.uk> NNTP-Posting-Host: blaze.csci.csusb.edu X-Newsreader: TIN [version 1.2 PL2] Xref: bga.com comp.lang.ada:8665 comp.lang.c:35099 comp.programming:5884 comp.lang.c++:41565 comp.object:9976 Date: 1994-12-16T19:53:32+00:00 List-Id: Pete Gontier (gurgle@dnai.com) wrote: : In article <3c9jle$796@thyme.csv.warwick.ac.uk>, : csusb@csv.warwick.ac.uk (Jules) wrote: : > In article <3c873t$lut@calvin.st-and.ac.uk>, : > ajry@st-andrews.ac.uk (Alistair James Robert Young) writes: : > : >> I am in the throes of learning C++ m'self, and have a problem using : >> the OS-specific header files with C++. These header files use a type : >> PSZ to pass strings to functions. This type is exactly the same as a : >> char *, but the compiler refuses to acknowledge this, forcing me to : >> use three or four typecasts in every OS call. : I think it's likely that this is the headers' fault. Perhaps they are [...snip...] Now PSZ is Hungarian for a pointer to Zero terminated string, isn't it? Perhaps they planned to make a safe string type? Could you add another header that declares inline functions that overload the OS functions you might call that then call the real OS functions with the necessary type casts... then let C++ do the hard work for you. Sorry if someone already said this. -- EMail: dick@csci.csusb.edu=rbotting@wiley.csusb.edu. WWW Disclaimer::=`CSUSB may or may not agree with this message`. Copyright(1994)::=`Copy as long as you include this copyright and signature`.