Types of compatibility in vb6, DOT NET Programming

What are types of compatibility in VB6

There are three possible project compatibility settings:

  • No Compatibility
  • Project Compatibility
  • Binary Compatibility

1) No Compatibility: With this Compatibility setting, new interface ID's, new class ID's,  and a new type library ID will be generated by VB every  time the ActiveX component project is compiled. This will cause any of the compiled client components to fail (with error 429!) and report a missing reference to the 'VB ActiveX Test Component whenever a client project is loaded in the VB IDE.

2) Project Compatibility: With this Compatibility setting, VB will generate a new interface ID's for classes whose interfaces have changed, but will not change the class ID's or the type library ID. This will still cause any of the compiled client components to fail (with error 429!) but will not report a missing reference to the 'VB ActiveX Test Component' whenever  a client project is loaded in the VB IDE. Recompilation of the client components will restore them to the working order again.

3) Binary Compatibility: The VB makes it possible to extend an existing class or interface by adding new methods & properties etc. and yet still remain binary compatibility. It can do this, as it silently creates a new interface ID for the extended interface and adds registration code to register the original interface ID but with a new forward key having the value of this new interface ID. COM will then substitute calls having the old ID with the new ID and so applications built against the old interface will continue to work (assuming the inner workings of the component remain backward compatible!). With that setting, VB will not change any of the existing class, interface or type library ID's, however in order that it can do so, VB requires the project to specify an existing compiled version that it can compare against to assure  that the existing interfaces have not been broken.

Posted Date: 9/21/2012 7:33:53 AM | Location : United States

Related Discussions:- Types of compatibility in vb6, Assignment Help, Ask Question on Types of compatibility in vb6, Get Answer, Expert's Help, Types of compatibility in vb6 Discussions

Write discussion on Types of compatibility in vb6
Your posts are moderated
Related Questions
The Problem with finalize is that the garbage collection has to make 2  rounds in order to remove the  objects which have finalize methods. The figure below will make things cle

Project Description: PURPOSE Xconnect needs a fully automated system for receiving and processing Terminator cost sheets based on set business principle, convert the accepted

Project Description: We want to design and develop a new Sportbook Platform from scratch, subsequent functionality: - Have a full functionality like other similar websites (S

Web application and XML data storage One person should create a library (Java package of classes) for managing the list of bibliography entries, and for saving and loading th

Program for Solution of Linear Equations - C# Program Hello, I've been trying so many codes for this but those codes didn't work well. Please write a Program for solving Linea

Question: (a) Prepare a diagram which explains where the different elements like Form, Window and Document, belong in the Document Object Model hierarchy and how properties are

Project Description: I have a basic C# control interface that I want to be accessed remotely. Possible implementation using wrappers. Skills required are C# Programming, Webs

Web Developer Project Description: We need of an expert web developer for long term association, please apply with models if you have the subsequent skills: ASP.NET MVC 3

Google Calendar Project Description: I require to syn my Microsoft exchange calendar with the Google calendar so i will view the all the changes that happen in Microsoft exch

Project Description: This project uses Microsoft Visual Studio 2010/2012, Internet Information Services (IIS) Manager and Microsoft SQL Server Management Studio. It is a Mobi