I have a form defined that when compiling has started giving me an error
message I can't make any sense of...
FormFind.h(24): error C3830: 'System::IntPtr': value types can only inherit
from a __gc interface
The error occurs on the line following the definition of the Form class...
public __gc class FormFind : public System::Windows::Forms::Form
{ // <-- error is marked as here
public: // <-- line 24 is here!
FormFind(SqlConnection* conn) : Conn(conn)
{
InitializeComponent();
}
I haven't modified this code, in fact it's code that is generated by the
editor. I have commented out all the code that wasn't generated by the
editor but still get the error!
Any help much appreciated.
--
Best regards
Mark