Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

Rated
Read 21,465 times

Contents

Related Categories

Keeping VB Components Compatible - Introduction

LACanadian

Introduction

If you have been involved in even a moderately sized Visual Basic project, then you undoubtably have run into issues associated with maintaining compatibility between different versions of your ActiveX components. While it seems like this should be a simple concept, the details require an understanding of some of the 'guts' of COM object plumbing. Not for the faint of heart. In this article, we discuss these details and walk you through the process of determining what compatibility setting is best suited for your project.

As a starting point, compatibility is only an issue if you're creating an ActiveX DLL. If all of your classes fit inside one single executable, then compatibility will not come into play. Once you have created your new project, select Project | Project Properties and select the Component tab. At the bottom of the dialog box, you can select from No Compatibility, Project Compatibility and Binary Compatibility. If you specify Binary Compatibility, you must also provide the path to an existing component to act as the base for the interface. But more on that later.

I am the owner of a small application development consulting company that specialized in the design and implementation of Internet-based applications. While there are others who can make a web site look good, our expertise is in making the site function. This includes infrastructure design, database design and administration, software development and deployment. For the most part, we utilize Microsoft-based languages and tools. And we are skilled enough to have generated two patent applications for our clients.

Comments

  • Removing old references

    Posted by LACanadian on 31 Jan 2003

    When I've had the same problem, I would follow these steps:

    1. Manually unregister the component with regsvr32 /u [i]path[/i].

    2. Edit the registry using your favorite tool

    3. Starting in ...

  • How to remove old references?

    Posted by dhnc on 21 Nov 2002

    Very interesting article on component compatibility. It gave me good insight in something I had trouble with during a long time already.
    I have the following question though:
    how can you remove the ...

  • Very Good

    Posted by pleitch on 10 Jul 2002

    Looks like it is straight out of a text book. I checked through it all and it is all correct. I had to by a series of advanced COM/COM++/VB and COM books to decypher - ah I mean learn - the same inf...