Re: Using CString on a platform without MFC or OLE - Howto?
- From: Tom <tomm@xxxxxxxxxx>
- Date: Fri, 17 Jun 2005 15:37:58 -0400
Yes, that is a possibility.
I take it that Dinkumware wrote the MS STL, so perhaps it could drop into CE fairly easily (and enhance my STL as needed to support the CStdString class).
My main concern is that I'm using VC8 (ie. VS.NET 2005 B2) and I doubt they've updated there library for this yet.
Tom.
Paul G. Tobey [eMVP] wrote:
There's no off-the-shelf-from-Microsoft solution to your problem that I've heard of, no. If there are other things that you're doing that might need the STL, you can get the Dinkumware version, which I've used because I use iostreams and which works very nicely on CE.
Paul T.
"Qwavel" <Qwavel@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:5B87D09D-13EA-4814-9669-3DC7900A2F6C@xxxxxxxxxxxxxxxx
I'm converting a bunch of Win32 code.
The existing code uses the STL and CString, but not MFC or ATL.
It would be easier to write my own CString class than to rewrite the
existing code, and I might have to do that but I'd rather check here first.
Tom.
"Paul G. Tobey [eMVP]" wrote:
"Don't use CString" is my first suggestion. What's wrong with just using an
array of TCHARs? If you feel that you must use the full power of C++, write
your own String class. It's not super difficult.
Paul T.
"Qwavel" <Qwavel@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:FE40285C-4C0C-4907-8596-1F9BD1AD0228@xxxxxxxxxxxxxxxx
I need some sort of CString, but my WinCE platform doesn't support MFC and
doesn't support OLE so I can't use the ATL version of CString.
If I try to include "cstringt.h" or "atlstr.h" then I get an error that explains that I can't because "This Windows CE SDK does not support mini-COM with OLE...".
Why does CString depend on OLE?
Normally I would use CStdString.h which is a great CString replacement
that
works (almost) everywhere. But this class depends on the standard library
and the WinCE library is non-conformant (it is missing locale) so that
class
doesn't work.
Any suggestions?
Thanks.
.
- Follow-Ups:
- Re: Using CString on a platform without MFC or OLE - Howto?
- From: Paul G. Tobey [eMVP]
- Re: Using CString on a platform without MFC or OLE - Howto?
- References:
- Using CString on a platform without MFC or OLE - Howto?
- From: Qwavel
- Re: Using CString on a platform without MFC or OLE - Howto?
- From: Paul G. Tobey [eMVP]
- Re: Using CString on a platform without MFC or OLE - Howto?
- From: Qwavel
- Re: Using CString on a platform without MFC or OLE - Howto?
- From: Paul G. Tobey [eMVP]
- Using CString on a platform without MFC or OLE - Howto?
- Prev by Date: Re: DLL loading addres on WM2003 SE
- Next by Date: Re: Using CString on a platform without MFC or OLE - Howto?
- Previous by thread: Re: Using CString on a platform without MFC or OLE - Howto?
- Next by thread: Re: Using CString on a platform without MFC or OLE - Howto?
- Index(es):
Relevant Pages
|