Jump to content
  • Advertisement
Sign in to follow this  
bilsa

[.net] Calling functions in a Static DLL?

This topic is 4630 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!