Handling Updates

During the course of your development, you will need to perform many updates to your component. In Day 9, "Building COM Components in VB," you looked at how project and binary compatibility helps you when you recompile your DLL. Now after it is recompiled, you will need to replace the old DLL with the new one.

There are actually some tricks to this. It is not as easy as just copying over a file. You often times must shut down a service or process so that the file is no longer in use before you can delete or copy over it. This occurs with MTS—which might have the object in an activity—or with Internet Information Server, if you are working with a Web application.

Removing and Updating

You can use a couple different methods to ...

Get Sams Teach Yourself Microsoft® Windows® DNA Programming in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.