#using <System.Windows.Forms.dll>
....
System::Windows::Forms::MessageBox::Show("Some Message");
I get an error
error C2653: 'MessageBoxA' : is not a class or namespace name
so what is wrong here? thanks.
WJ
Try replacing
#using <System.Windows.Forms.dll>
with
using namespace System::Windows::Forms;
-- David
The windows headers #define MessageBox to be MessageBoxA or MessageBoxW.
So you need to add this line:
#undef MessageBox
This works. Thanks.
WJ