G
Guest
I want to Use MessageBox in a C++ .Net Windows Forms project.
I have a form with a button - clicking the button brings up some text in a MessageBox.
If I call MessageBox from the Click event handler in the .h header file - it works fine.
If I move the event handler to the .cpp file it fails with:
"MessageBoxA is not a class or namespace name"
Any suggestions gratefully received
I have a form with a button - clicking the button brings up some text in a MessageBox.
If I call MessageBox from the Click event handler in the .h header file - it works fine.
If I move the event handler to the .cpp file it fails with:
"MessageBoxA is not a class or namespace name"
Any suggestions gratefully received