Skip to main content
GameDev.net gamedev.net
🔒 Locked

simple CString problem

Started by CProgrammer Jan 25, 2004 at 4:45 AM 1 replies 250+ views
Original Post
CProgrammer
CProgrammer
Hiw do I append a variable of type float,int,double... to a CString object. -CProgrammer
SiCrane
SiCrane
One way is to use operator+=() with a temporary CString variable that has the numeric primitive as it''s contents through the CString::Format() function. e.g.:

CString temp;
temp.Format("%d", 5);
original += temp;

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.