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
foxhoundAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.