G
Guest
Please advise, why does
MessageBox(NULL, textBox1.Text, "Error", MB_OK)
work fine in VB
but
MessageBox(NULL, textBox1->Text, "Error", MB_OK)
will not compile in VC++.NET?
Have tried the obvious casts to (LPCSTR) but this tricky System::String__gc*
type is getting away from me.
MessageBox(NULL, textBox1.Text, "Error", MB_OK)
work fine in VB
but
MessageBox(NULL, textBox1->Text, "Error", MB_OK)
will not compile in VC++.NET?
Have tried the obvious casts to (LPCSTR) but this tricky System::String__gc*
type is getting away from me.