PPCdev
02-15-2003, 09:16 AM
Im starting slow, trying to learn.
I have a form with two Edit Boxes on it, and a button. I have in the button click event some code which I am trying to assign the value of to a string variable, but I dont even understand the error message.
char va = IDC_EDIT1;
MessageBox(va), _T("You entered"), MB_ICONERROR | MB_OK);
Where as, 'char va', I am trying to assign the variable va as a string, using char, as assign it the contents of IDC_EDIT1.
That seams to be working, but I cant get the message box to dispaly. I can REM out the message box and it compiles and executes. Im not entirly sure I have either line correct.
Sorry to be a pain, Ive read and read post and pages until I no longer understand what Im trying to do. :-(
Thanks for any help..
Andrew
I have a form with two Edit Boxes on it, and a button. I have in the button click event some code which I am trying to assign the value of to a string variable, but I dont even understand the error message.
char va = IDC_EDIT1;
MessageBox(va), _T("You entered"), MB_ICONERROR | MB_OK);
Where as, 'char va', I am trying to assign the variable va as a string, using char, as assign it the contents of IDC_EDIT1.
That seams to be working, but I cant get the message box to dispaly. I can REM out the message box and it compiles and executes. Im not entirly sure I have either line correct.
Sorry to be a pain, Ive read and read post and pages until I no longer understand what Im trying to do. :-(
Thanks for any help..
Andrew