This site is no longer active and is available for archival purposes only. Registration and login is disabled.

CString : I'm ashamed


CString : I'm ashamed

Postby Alfredo » Mar 16, 2003 @ 3:54pm

Alfredo
 


Postby Alfredo » Mar 16, 2003 @ 3:56pm

Alfredo
 


Postby Dan East » Mar 16, 2003 @ 10:05pm

CString is part of MFC. You have to create an MFC app to use it.

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby pacomac » Mar 16, 2003 @ 11:54pm

pacomac
 


Postby Dan East » Mar 17, 2003 @ 3:06am

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby damian » Mar 17, 2003 @ 3:35am

damian
pm Insider
 
Posts: 3960
Joined: Sep 3, 2002 @ 7:59pm
Location: Acton, MA (home), NYC (school)


Postby superman2 » Mar 17, 2003 @ 7:54pm

superman2
 


Postby Dave H » Mar 18, 2003 @ 1:39pm

Dave H.
Lead Programmer (Repton PPC/7650)
[url=http://www.handango.com/PlatformProductDetail.jsp?productId=43741]
Buy Repton Online here!
[/url]
User avatar
Dave H
pm Member
 
Posts: 164
Joined: Oct 3, 2002 @ 5:01pm


Postby Dan East » Mar 18, 2003 @ 4:33pm

Um, I was showing the ease in which string copies, concatenations and UNICODE conversions can be done with CString. If your purpose is to optimize a contrived example then the correct response is:

AfxMessageBox(_T("This is a test"));

CString::Format performs the same functionality of sprintf, again with automatic UNICODE conversion.

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby Dave H » Mar 18, 2003 @ 4:55pm

Dave H.
Lead Programmer (Repton PPC/7650)
[url=http://www.handango.com/PlatformProductDetail.jsp?productId=43741]
Buy Repton Online here!
[/url]
User avatar
Dave H
pm Member
 
Posts: 164
Joined: Oct 3, 2002 @ 5:01pm


Postby Dan East » Mar 18, 2003 @ 6:11pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby Dave H » Mar 18, 2003 @ 7:02pm

Dave H.
Lead Programmer (Repton PPC/7650)
[url=http://www.handango.com/PlatformProductDetail.jsp?productId=43741]
Buy Repton Online here!
[/url]
User avatar
Dave H
pm Member
 
Posts: 164
Joined: Oct 3, 2002 @ 5:01pm


Postby superman » Mar 20, 2003 @ 2:53am

"Kittens give Morbo gas." - Morbo the News Monster
User avatar
superman
pm Member
 
Posts: 99
Joined: Nov 3, 2001 @ 1:09am


Postby adde » Mar 26, 2003 @ 6:00pm

If you want a string class that is thourougly tested, optimized and works pretty much like Javas String (or CString although I have never used MFC because I think it really sucks), then the STL string container is the answer.

STLport (www.stlport.org) is a free available STL source library that works on practically any platform. Just make shure you disable the iostream support first. Info on how to do this can be found on www.pocketfrog.com and on the PocketFrog forum here on PocketMatrix.
User avatar
adde
pm Member
 
Posts: 152
Joined: Oct 9, 2002 @ 1:42pm
Location: Stockholm / Sweden


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum