Thursday 10 May 2012

How to solve DLL Hell


Welcome to dll hell.

Suggestion:
1) open the exe in VB, and remove the reference to the dll, close VB
2) open the dll in VB, set the project to no compatibility
3) build the dll
4) change the project to binary compatibility, and point to the newly built dll
5) open the exe, ans restore the reference.

Caveat: there is a bug in VB that prevent to release the dll once the application is run, so sometimes when you try to rebuild the dll you get permission denied. In that case, just reopen the project, that will release the dll

Tip: you can load both dll and exe projects in a group, to easily debug them together.

No comments:

Post a Comment