C Board  

Go Back   C Board > Platform Specific Boards > Windows Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 09-26-2005, 06:43 AM   #1
Reverse Engineer
 
maxorator's Avatar
 
Join Date: Aug 2005
Location: Estonia
Posts: 2,236
Strings in Win32 GUI

If I include strings.h in GUI and try to use strings: string example; , then I get an error: string does not name a type, but if I use it with console, it works. How can I use strings in GUI?
maxorator is offline   Reply With Quote
Old 09-26-2005, 06:49 AM   #2
&TH of undefined behavior
 
Fordy's Avatar
 
Join Date: Aug 2001
Posts: 5,183
#include <string>

....

std::string MyString = "Hello, World!";
__________________
"If A is success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut."
Albert Einstein (1879 - 1955)


Board Rules
Fordy is offline   Reply With Quote
Old 09-26-2005, 06:55 AM   #3
Reverse Engineer
 
maxorator's Avatar
 
Join Date: Aug 2005
Location: Estonia
Posts: 2,236
Thanks!
maxorator is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
win32 GUI components abraham2119 Windows Programming 5 06-18-2009 10:18 AM
Win32 API GUI problems Cha0sBG Windows Programming 7 06-05-2009 04:35 PM
Strings Program limergal C++ Programming 4 12-02-2006 03:24 PM
GUI Programming :: C++ Exclusive kuphryn C++ Programming 5 01-25-2002 03:22 PM
GUI (Graphical User Interface) Help Needed Unregistered C++ Programming 1 10-11-2001 10:35 AM


All times are GMT -6. The time now is 02:04 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22