Okay i am trying at my first window app and I need some help...
All I have is a text box and a command button.
After the user enters in a name like c:\mytext.txt
and then hits the okay button I would like it to pull up the console and display the text there.
I know how to call up the system and how to display the file once opened, but I do not know how to tell the okay button to do that.
Replace IDC_BTN_GO with the ID of your button. You can then use GetDlgItem to get the window handle of the text box, and retrieve its text using GetDlgItemText
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You". -- Linus Torvalds
Because you have to understand how the Windows API works to create windows / dialogue boxes.
If you read through the introductory parts of the Platform SDK it helps to clear things up a lot. In the meantime I have a couple of example projects that might help for reference value:
I doubt it, because those books usually talk about MFC
Vlatko's big long list of sites is probably all the reference you'll need. Plus, if you DL the Platform SDK you'll make your life a lot easier -- it's really helped me
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You". -- Linus Torvalds
MFC is not MSVC++. MFC is the Microsoft Foundation Classes, used for simplifying creation of Windows programs. However, it's no help for learning how to make them.
MSVC++ is the IDE and compiler.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You". -- Linus Torvalds