Hi!
I need urgently a way to print out the variable of a variable into the main window. But how can I do this in MFC?
in Borland C, it was for example like,
int x = 10;
printf("%d",x);
Thanks for your help!
agurcan@hotmail.com
I have tried the following, and even if I use
CString myString = (CString)(x);
it does not work. It just prints out one character and changes the character each time!
I can't understand it.
int x;
for (x=0;x<256;x++)
{
CString myString = x;
dc.TextOut( 600, 40, myString );
}
Thanks a lot for your help.:-Q
agurcan@hotmail.com
Yes, because you have left the coordinates where to print the caracters the same.
It will always print myString(which is one char) to the 400, 60 coordinates(from TextOut) overwritting the old ones.
You have to modify that values in the for loop, too.
Hope this helps, s-)
Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.