*BSD News Article 92010


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!feed1.news.erols.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!ix.netcom.com!tor-nn1.netcom.ca!news
From: variable@netcom.ca (Chris McKillop)
Newsgroups: comp.unix.solaris,comp.unix.aix,comp.unix.bsd,comp.unix.sco,comp.unix.programmer,comp.unix.ultrix,comp.unix.questions
Subject: Re: CString on UNIX
Date: 27 Mar 1997 01:04:10 GMT
Organization: Torus Software
Lines: 39
Distribution: inet
Message-ID: <5hch2a$7m8@tor-nn1-hb0.netcom.ca>
References: <859262963.14357@dejanews.com>
NNTP-Posting-Host: kit-on1-23.netcom.ca
X-NETCOM-Date: Wed Mar 26  8:04:10 PM EST 1997
X-Newsreader: EmTec News for OS/2 [version: 4.6b]
Xref: euryale.cc.adfa.oz.au comp.unix.solaris:101384 comp.unix.aix:96671 comp.unix.bsd:16876 comp.unix.programmer:51901 comp.unix.ultrix:28656 comp.unix.questions:97422

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).

	Chris


____________________________________
Chris McKillop
variable@netcom.ca

	"It's the end of the world as we know it,
		and I feel fine!"
			
			- REM, Document