Hi
I am new to VisualC programming and I have a lot of questions
I already tried my luck with the evc supplied "Hello World" which worked just fine. Probably since I didnt have to code a single line.
Now I wanted to program a more generic version where I can supply my name in a textfield and by pressing a button it spits out something like "Hello Valentin".
I added this:
and this
My first error I´d love to solve is where I can find GetDlgItemText
The evc help tells me I have to include winuser.h which doesnt work for me.
Any good tutorials on that?
Greetings,
Valentin
I am new to VisualC programming and I have a lot of questions
I already tried my luck with the evc supplied "Hello World" which worked just fine. Probably since I didnt have to code a single line.
Now I wanted to program a more generic version where I can supply my name in a textfield and by pressing a button it spits out something like "Hello Valentin".
I added this:
- Code:
BEGIN_MESSAGE_MAP(CKeygenTemplateApp, CWinApp)
// {{AFX_MSG_MAP(CKeygenTemplateApp)
ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
// }}AFX_MSG_MAP
END_MESSAGE_MAP()
and this
- Code:
void CKeygenTemplateApp::OnButton1()
{
char strName[128];
char* pName = strName;
GetDlgItemText(dlg, IDC_NAME, pName, 128);
}
My first error I´d love to solve is where I can find GetDlgItemText
The evc help tells me I have to include winuser.h which doesnt work for me.
Any good tutorials on that?
Greetings,
Valentin