GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 01-Apr-2008, 13:19
Radio Radio is offline
New Member
 
Join Date: Apr 2008
Posts: 7
Radio is on a distinguished road

Simple and flexible way for output in a MFC-application?


Hi,

I have a very simple dialog-based MFC application (just started to learn programing).

Is there some standard way (like cout<< ... for a console application) to do an output on the screen. I have found the command AfxMessageBox, but it only accepts CStrings. Thats fine for my text messages, but how about integers?

I assume that there is certainly a way to convert an integer into a CString, but isn't there some flexible simple function, which does the same as AfxMessageBox? (cout was sooo easy to use :-).

Thank you for every hint!
Sam
  #2  
Old 01-Apr-2008, 13:34
TurboPT's Avatar
TurboPT TurboPT is offline
Regular Member
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 959
TurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the rough

Re: Simple and flexible way for output in a MFC-application?


Use CString's Format() function to create the string to display.
__________________
Use the force...read the source!!
WYCIWYG -- what you code is what you get!
  #3  
Old 01-Apr-2008, 13:42
Radio Radio is offline
New Member
 
Join Date: Apr 2008
Posts: 7
Radio is on a distinguished road

Re: Simple and flexible way for output in a MFC-application?


Thank you very much. Works just perfect!
 
 

Recent GIDBlogToyota - 2008 September Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 03:33.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.