well I'm not a good English speaker but I will try my best to show you how do that, just follow my images
1) when you open vc++ 6, it look like pic 1
2) click on new option from menu, it look like my pic 2
3) under project name type >>myFirstApp and click ok, after click ok, it look like pic 3
4) check the option Dialog based and click next, after click next, it look like pic 4
5) just click next, it look like pic5
6) just click next again, it look like pic6 and click on finish button
7) after click on finish button, it look like pic 7, just click on ok
9) drag a textbox and a button into the form, it look like pic9
our goal is when we click on button1 we get value of textbox and display it in a messagebox like vb6. to do that, follow step 10
10) double click on button1, it look like pic10 and just click ok, after click ok, it look like pic11
we need to declare a variable type string that can hold a textbox value, to do that follow step 11
11) click on FileView, it look like pic12
hmmm where can I declare my variable in global like in vb6, follow step 12 baby
12) in the file explorer, just in left, double click on myFirstAppDlg.h, it look like pic13
scroll down, after the DECLARE_MESSAGE_MAP(), enter the follow lines of code
public:
CString strTextBoxValue;
it look like pic14 if you do right
well now I have declared my variable name strTextBoxValue type CString and I want go to the event button click to write the code to put textbox value to this variable, where can I go?, follow step 13
13) in the file explorer, just in left, double click on myFirstAppDlg.ccp, it look like pic15
enter these lines of code in void CMyFirstAppDlg::OnButton1()
CWnd* TextBox1=GetDlgItem(IDC_EDIT1);
TextBox1->GetWindowText(strTextBoxValue);
::AfxMessageBox(strTextBoxValue);
if you're in the right way, it look like pic16. all the job is done now, we can test it now to see if it work. How Do I run myFirstApp, just look at pic17(Ctrl +F5 to run it), easy no? enter testing string in textbox and click on button1, the result is at pic18
if you look at this line >> CWnd* TextBox1=GetDlgItem(IDC_EDIT1);
where I found the IDC_EDIT1, it's the id associate with the textbox you added to the form(vb6), in MFC all the controls have a id to identify them like the name you name your control in vb6, MFC identify his controls with id only. well to see what is the id of your textbox or your button1, just double click on file resources.h, it look like pic19
and what is CWnd, if you want to know it, you have to read msdn from microsoft website



