still reflecting / major problem
Managed C++/CLI
1
Posts
1
Posters
0
Views
1
Watching
-
can a reflected methode not return gcnew System::Windows::Forms::TextBox() but just base types like INT ??? if not mean it can return TextBox where do i go wrong ? myType = SampleAssembly->GetType("Memory.What"); myObj = System::Activator::CreateInstance( myType ); myMethod = myType->GetMethod("Name"); myMethod->Invoke( myObj , nullptr ); <<<--- here is the error i have a MessageBox::Show in Memory.What.Name wich is fiered and also shows TextBox->ToString() corect which shoud by returned (ToString is for testing in the messagebox dont get confused) An unhandled exception of type 'System.NullReferenceException' occurred in WhatsUp.exe Additional information: Object reference not set to an instance of an object.