needAdviceAboutWin32AppsAndText

I've read through my first C++ book and have a good grasp on the language for a beginner, however everything it went through pertained to console applications. I now want to learn about Window applications. I know how to set a window up and everything, but I have a few questions.

With text, I know cout and cin don't work. (at least I can't see text on the screen if I cout something) I do know that it is possible to display text by sourcing in an image file that has pictures of letters and display the letters however I want them to be displayed. However, this seems impractical. Is there some easy way to print text to the screen?

What about text boxes? Like in HTML, you can have a text field where the user can input data. I would perhaps want to be able to read this data from the text field and use it for something.

I'm not looking for a full explaination or anything, just a litlte push in the right direction really. Thanks.
[983 byte] By [infernosnow] at [2007-11-19 18:30:31]
# 1 Re: needAdviceAboutWin32AppsAndText
I'm not looking for a full explaination or anything, just a litlte push in the right direction really. Thanks.
A good start is to pick up a book on Visual C++ programming and read it. The questions you have are all basic Windows questions and by reading a good book you'll learn how it all works in Windows.

To answer your questions, but again I recommend a good book, you can use several functions to draw text, for example TextOut (http://msdn.microsoft.com/library/en-us/gdi/fontext_5yd0.asp) and DrawText (http://msdn.microsoft.com/library/en-us/gdi/fontext_0odw.asp). To use those text-boxes, see "Edit control" (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/editcontrols/editcontrols.asp).
Marc G at 2007-11-10 23:46:41 >