B
Boni
Dear All, Dear Tomas (My feeling is that you could like this for me very
complicated question).
I want at the run time resolve one of the added reference assemblies, but
the approach fails. fuslogvw shows, that
TypeAddedToReferencesButNotInTheRightPath couldn't be found, even before
the message box pops up.
Did I missed somethig? I found
(http://www.codeproject.com/dotnet/loadpoly.asp), which seems to do quite
the same. Why CLR tries to load this type before it is used?
Please help me,
With best regards,
Boni
__gc public class test:
{
private:
Assembly * ResolveMe(Object *sender, System::ResolveEventArgs* args);
System::ResolveEventHandler* m_ResolveEventHandler;
Object __gc * pDynamic;
void test()
}
test::test()
{
MessageBox::Show("I am in costructor")
AppDomain::CurrentDomain->AssemblyResolve += new ResolveEventHandler(this,
ResolveMe);
pDynamic= new TypeAddedToReferencesButNotInTheRightPath
dynamic_cast<TypeAddedToReferencesButNotInTheRightPath*>(pDynamic)->Helloo();
}
complicated question).
I want at the run time resolve one of the added reference assemblies, but
the approach fails. fuslogvw shows, that
TypeAddedToReferencesButNotInTheRightPath couldn't be found, even before
the message box pops up.
Did I missed somethig? I found
(http://www.codeproject.com/dotnet/loadpoly.asp), which seems to do quite
the same. Why CLR tries to load this type before it is used?
Please help me,
With best regards,
Boni
__gc public class test:
{
private:
Assembly * ResolveMe(Object *sender, System::ResolveEventArgs* args);
System::ResolveEventHandler* m_ResolveEventHandler;
Object __gc * pDynamic;
void test()
}
test::test()
{
MessageBox::Show("I am in costructor")
AppDomain::CurrentDomain->AssemblyResolve += new ResolveEventHandler(this,
ResolveMe);
pDynamic= new TypeAddedToReferencesButNotInTheRightPath
dynamic_cast<TypeAddedToReferencesButNotInTheRightPath*>(pDynamic)->Helloo();
}