On 10.03.2015 20:24, mimi wrote:

c++
             MonoClass* classDictionary = NULL;
             classDictionary = mono_class_from_name(image, "TestDictionary",
"Class1");

I compiled TestDictionary.dll and Playstkop.Toolbox.exe. classDictionary
returns NULL. I digged into mono_class_from_name and found that the value of
'name' is 0x0 instead of "Class1".


You're passing the wrong `image' to mono_class_from_name.
If you want TestDictionary.Class1 from TestDictionary.dll,
then you must use the image of "TestDictionary.dll".

Robert


_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to