Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.ececs.uc.edu!newsfeeds.sol.net!feed1.news.erols.com!howland.erols.net!panix!news.panix.com!not-for-mail From: comeau@panix.com (Greg Comeau) Newsgroups: comp.unix.solaris,comp.unix.aix,comp.unix.bsd,comp.unix.sco.programmer,comp.unix.programmer,comp.unix.programmer,comp.unix.ultrix,comp.unix.questions,comp.lang.c++ Subject: Re: CString on UNIX Date: 27 Mar 1997 10:53:52 -0500 Organization: Comeau Computing Lines: 42 Distribution: inet Message-ID: <5he56g$5e6@panix.com> References: <859262963.14357@dejanews.com> <5hch2a$7m8@tor-nn1-hb0.netcom.ca> Reply-To: comeau@comeaucomputing.com NNTP-Posting-Host: panix.com X-Newsposter: trn 4.0-test55 (26 Feb 97) Xref: euryale.cc.adfa.oz.au comp.unix.solaris:101547 comp.unix.aix:96787 comp.unix.bsd:16880 comp.unix.sco.programmer:5924 comp.unix.programmer:51973 comp.unix.ultrix:28664 comp.unix.questions:97489 comp.lang.c++:228161 In article <5hch2a$7m8@tor-nn1-hb0.netcom.ca> variable@netcom.ca (Chris McKillop) writes: >In message <859262963.14357@dejanews.com> - raufa@nsd.com writes: >:> >:>Hi Everybody out there, >:> >:>I am looking for a CString class that is compatible with Microsoft's VC++ >:>4.2 and MFC 4.0(or later) that works on UNIX (HP-UX, Solaris etc.). >:> >:>I considered taking MFC Source code and making necessary changes to make >:>it run on UNIX. But that is a project by itself and I do not have all the >:>time do it. >:> >:>Has anyone come across shareware/freeware or do you have code of your own >:>that you are willing to share? Or can atleast someone give me the right >:>pointers for getting my work done? >:> >:>I would appreciate any and all help. >:> > > Well, there is a simple and VERY cross platform >solution. First step, stop using CString. Instead, >use the STL template class string. The STL is now part >of the C++ standard library, and is very crossplatform. You >might want to check out http://www.ipmce.su/people/fbp/stl/stlport.html >though, as the version of the STL that comes with VC++ v4.2 >isn't very good. (No fault for Mr. Plaugher, more the fault of >the compilier). Just a minor nitpick -- I agree with everything you've said otherwise, just that I've seen a number of people confused/disappointed on this in the past -- but string is not part of STL. It is part of the draft C++ Library, which STL is a part of too. But since string is such a fundamental, and will often be used with STL, it is good to know about it. Furthermore, it has been made _compatible_ with STL by allowing iterators to be defined for it. - Greg -- Comeau Computing, 91-34 120th Street, Richmond Hill, NY, 11418-3214 Producers of Comeau C++ 4.0 front-end pre-release ****WEB: http://www.comeaucomputing.com / Voice:718-945-0009 / Fax:718-441-2310 Here:comeau@comeaucomputing.com / BIX:comeau or comeau@bix.com / CIS:72331,3421