Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: 280Z28 on April 04, 2006, 06:42:04 am

Title: Events / Actions recommended string class
Post by: 280Z28 on April 04, 2006, 06:42:04 am
I've written a modular events system which has proven rock solid in another application. For that program, I use CString for my string class. Should I use std::wstring or wxString to make it cross-platform compatible?
Title: Re: Events / Actions recommended string class
Post by: Michael on April 04, 2006, 11:36:33 am
Hello,

ISO C++ string class?

Best wishes,
Michael
Title: Re: Events / Actions recommended string class
Post by: Michael on April 04, 2006, 12:00:55 pm
Or may be CStdString (http://home.earthlink.net/~jmoleary/stdstring.htm)?

Best wishes,
Michael
Title: Re: Events / Actions recommended string class
Post by: mmkider on April 04, 2006, 12:10:56 pm
#ifndef UNICODE
#define Ustring string
#else
#define Ustring wstring
#endif

I like std::string more  than wxString.
You can defile flag to differentiate between Unicode and non-Unicode.i
Title: Re: Events / Actions recommended string class
Post by: 280Z28 on April 04, 2006, 04:16:51 pm
Or may be CStdString (http://home.earthlink.net/~jmoleary/stdstring.htm)?

Best wishes,
Michael


Thanks I'll go with this one :)