Sign in to follow this  
bilsa

[.net] Calling functions in a Static DLL?

Recommended Posts

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!

Share this post


Link to post
Share on other sites
Thx :), but my dynamic plugin architecture works great for now.

This is just more of a curiosity, and could be useful in the case
of when I actually use a Statically linked Dll.

In MY case, I wanted to use a static member function from the DLL :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this