[.net] Calling functions in a Static DLL?
Hi!
My application is statically linked with a managed DLL.
So I wanted to test what would happen when a function goes missing,
for eg. if there would be some update in the DLL:
At application compiletime:
Application calls from MyDLL.dll:
MyClass myclass = new MyClass();
myclass.Function1();
MyDLL.dll contains:
class MyClass {
public void Function1() {};
}
Then by some update I choose to use the new and better MyDLL.dll
So the console outputs the following:
Method Not Found: Void MyClass.Function1()
That is since the new and updated DLL looks like this:
MyDLL.dll contains:
class MyClass {
public void BetterFunction1() {};
}
I'm not sure if the output in the console is some exception or
something else... but it seems I can't catch it with a
try {} catch() {} block
Does anyone know how to somehow catch the "exception" so I
can handle it my way?
Thank you!
Are you trying to create some type of plugin interface? If so, there's a great article about it here.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement