I have an application which calls a class MyClass in a second application as
follows:
loAssembly =
System.Reflection.Assembly.LoadFrom("c:\MyProjects\MyProject1\Application1.exe")
loType = loAssembly.GetType("Applicationi1.MyClass", True, True)
If Not loType Is Nothing Then
loCC = Activator.CreateInstance(loType)
Else
MsgBox("Error")
Exit Sub
End If
Application1.exe uses the same references as the calling application but
with different versions. When I call the class with the code above MyClass
doesn't load forms which use one of those different version references. When
I use the same version in both applications it works. How do I tell MyClass
to load its own projects references?
Andiego
|