Dear all,
please help me to find a right way of writing the resolver.
Thanks so much,
Boni
Assembly *XXX::ResolveMe(Object *sender, ResolveEventArgs *args){
..
}
//In Constructor
AppDomain* _ad= AppDomain::get_CurrentDomain()->AssemblyResolve += new
ResolveEventHandler(ResolveMe); //error C3350
error C3350: 'System::ResolveEventHandler' : a delegate constructor expects
two arguments
Kapil Khosla [MSFT] - 02 May 2005 18:01 GMT
> Dear all,
>
[quoted text clipped - 17 lines]
> error C3350: 'System::ResolveEventHandler' : a delegate constructor expects
> two arguments
Ah, I see. You can either make your ResolveMe event handler static or pass
the *this* pointer as the first argument when you are binding the event
handler.
AppDomain* _ad= AppDomain::get_CurrentDomain()->AssemblyResolve += new
ResolveEventHandler(this,ResolveMe);
Thanks,
Kapil
Boni - 04 May 2005 13:38 GMT
Thank you, it worked :)
>> Dear all,
>>
[quoted text clipped - 28 lines]
> Thanks,
> Kapil