Hi,
What do you think of the following compiler error :
code :
-------------------------------------
StringBuilder* oBuilder = new StringBuilder() ;
oBuilder->Append("Append ed text");
Object* object = new Object();
String* header = oBuilder->ToString();
OtherObject* object2 = new OtherObject(obj ect, header);
-------------------------------------
compiles perfect, but substition of the oBuilder->ToString() call in
OtherObject :
OtherObject* object2 = new OtherObject(obj ect, oBuilder->ToString();
gives the following compiler error :
error C3364: 'System::EventH andler' : invalid second argument for delegate
constructor; needs to be a pointer to a member function
Easy to solve, but has anyone an idea what is causes this error ?
cu,
Bart
What do you think of the following compiler error :
code :
-------------------------------------
StringBuilder* oBuilder = new StringBuilder() ;
oBuilder->Append("Append ed text");
Object* object = new Object();
String* header = oBuilder->ToString();
OtherObject* object2 = new OtherObject(obj ect, header);
-------------------------------------
compiles perfect, but substition of the oBuilder->ToString() call in
OtherObject :
OtherObject* object2 = new OtherObject(obj ect, oBuilder->ToString();
gives the following compiler error :
error C3364: 'System::EventH andler' : invalid second argument for delegate
constructor; needs to be a pointer to a member function
Easy to solve, but has anyone an idea what is causes this error ?
cu,
Bart