[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 203
  • Last Modified:

dll

of i wrote a dll and there are projects that use this dll, when i change the dll and compile it again, how come the projects don't regonize it anmore even tho it's the same name and in the same folder as before? how do i solve this?thanks
0
foxhound
Asked:
foxhound
  • 2
  • 2
1 Solution
 
caraf_gCommented:
Go into your DLL's Project Properties. Go to the Component Tab.

Check Binary Compatibility, and point it at the latest compiled version of the DLL.

Now, as long as you dont change or remove any of the already existing methods and properties of public classes in your DLL, your DLL will remain compatible to its previous incarnations and you won't lose the references to it in other projects.

If you MUST change the interface, you'll have to switch the option off again, which is called "breaking binary compatibility" and your problem will happen again.

Please make sure you unregister the dll with RegSvr32 -u YourDLL.DLL every time you must break binary compatibility in order to keep your registry clean.

Good luck

Pino
0
 
foxhoundAuthor Commented:
it still doesn't work, when i check binary compatibilty it gives me a error saying "unable to set the version compatitbily of component", why is this? thanks
0
 
foxhoundAuthor Commented:
sorry , got it sorted out. very good answer by the way
0
 
caraf_gCommented:
Thanks!
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now