Click here to Skip to main content
16,005,437 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: using reference as member variable is dangerous? Pin
George_George27-Aug-08 1:48
George_George27-Aug-08 1:48 
GeneralRe: using reference as member variable is dangerous? Pin
SandipG 27-Aug-08 2:02
SandipG 27-Aug-08 2:02 
GeneralRe: using reference as member variable is dangerous? Pin
George_George27-Aug-08 2:17
George_George27-Aug-08 2:17 
Questiondisplaying output to edit boxes like printf Pin
l_d26-Aug-08 23:23
l_d26-Aug-08 23:23 
AnswerRe: displaying output to edit boxes like printf Pin
toxcct26-Aug-08 23:27
toxcct26-Aug-08 23:27 
AnswerRe: displaying output to edit boxes like printf Pin
_AnsHUMAN_ 26-Aug-08 23:28
_AnsHUMAN_ 26-Aug-08 23:28 
AnswerRe: displaying output to edit boxes like printf Pin
Perspx26-Aug-08 23:31
Perspx26-Aug-08 23:31 
AnswerRe: displaying output to edit boxes like printf Pin
CPallini26-Aug-08 23:33
mveCPallini26-Aug-08 23:33 
And what is your problem about?
You may (Win32):
(1) format a string using sprintf
(2) send the string to the edit box using SetWindowText.

On the other hand, using MFC you may:
(1) map a CString variable to the CEdit control.
(2) use the CString::Format method to properly format such variable.
(3) call CDialog::UpdateData(FALSE) of your dialog.
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: displaying output to edit boxes like printf Pin
l_d27-Aug-08 0:07
l_d27-Aug-08 0:07 
GeneralRe: displaying output to edit boxes like printf Pin
_AnsHUMAN_ 27-Aug-08 0:26
_AnsHUMAN_ 27-Aug-08 0:26 
GeneralRe: displaying output to edit boxes like printf Pin
l_d27-Aug-08 5:51
l_d27-Aug-08 5:51 
QuestionNeed some samples to remove the items from context menu Pin
Bernaad26-Aug-08 23:12
Bernaad26-Aug-08 23:12 
QuestionC Library Pin
j_j_j26-Aug-08 22:58
j_j_j26-Aug-08 22:58 
AnswerRe: C Library Pin
Nibu babu thomas26-Aug-08 23:03
Nibu babu thomas26-Aug-08 23:03 
AnswerRe: C Library Pin
Hamid_RT27-Aug-08 4:29
Hamid_RT27-Aug-08 4:29 
QuestionCode Send in DLL Pin
nedracix26-Aug-08 22:57
nedracix26-Aug-08 22:57 
QuestionRe: Code Send in DLL Pin
CPallini26-Aug-08 23:04
mveCPallini26-Aug-08 23:04 
QuestionRe: Code Send in DLL Pin
David Crow27-Aug-08 3:16
David Crow27-Aug-08 3:16 
AnswerRe: Code Send in DLL Pin
Hamid_RT27-Aug-08 4:28
Hamid_RT27-Aug-08 4:28 
QuestionHow to append current Date and time to the name of a text file programmatically? Pin
kapardhi26-Aug-08 22:47
kapardhi26-Aug-08 22:47 
AnswerRe: How to append current Date and time to the name of a text file programmatically? Pin
_AnsHUMAN_ 26-Aug-08 22:57
_AnsHUMAN_ 26-Aug-08 22:57 
AnswerRe: How to append current Date and time to the name of a text file programmatically? Pin
Nibu babu thomas26-Aug-08 23:00
Nibu babu thomas26-Aug-08 23:00 
AnswerRe: How to append current Date and time to the name of a text file programmatically? Pin
Jijo.Raj26-Aug-08 23:10
Jijo.Raj26-Aug-08 23:10 
QuestionMem leak Pin
tom groezer26-Aug-08 22:43
tom groezer26-Aug-08 22:43 
AnswerRe: Mem leak Pin
Nibu babu thomas26-Aug-08 22:49
Nibu babu thomas26-Aug-08 22:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.