[Mono-list] Generic class and mono_class_from_name

Robert Jordan robertj at gmx.net
Wed Mar 11 09:36:40 UTC 2015


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




More information about the Mono-list mailing list