Printing output to edit control in MFC
Posted on 2007-03-23
I want to be able to print out certain integer and float values to a textbox with some text before the values so that the user knows whats being printed. I need to print the values in a loop. However I have some problems. This is the background information:
I dont know if i should be adding a CEdit control variable or a Cstring value variable! So I added both and i tried stuff out with both. The Cedit Control variable is called tEdit_output and the CString value variable is called tEdit_Result. Please provide me an example with whichever variable you think Ineed to use!
I need the values of some integers (say the value of j here for simplicity ) to be printed out in the format "
"And the value is ", j
in the following loop:
...print here to window
Its a multiline edit control.
THanks in advance,