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
Windows Phone 8 camera streaming to desktop app Project Description: I require WP8 application (client) that will: 1. Automatically evaluate and connect to Windows desktop

PhotoHandler add-on to display file names Project Description: I want a website with a photo gallery using PhotoHandler. I need the code added/ modified to display the image

Explain the elements of a collaboration diagram. Classifier Role: - It only classifies a role. Association Role: - It shows the relation b/w two classifier roles.

How can we implement singleton pattern in .NET ? The Singleton pattern basically focuses on having one and only one instance of the object running. Lets take an e.g. a windows

What is an Object in Dot Net? This is the basic unit of a system. An object is an entity that has identity, attributes, and behavior. The Objects are members of a class. The cl

ASP Programmer I need a fixing all W3c validation errors and it is a ASP website. Have any queries please send a message and I will provide more information on project. De

You can post back to any of the page and pages in other application, too. But if you are posting pages to other application, the PreviousPage property will return null. This is an

What are basic methods of Data adapter? The three most commonly used methods of Dataadapter are as follows:- 1)Fill :- It Executes the SelectCommand to fill the DataSet ob

What are standard query operators in LINQ? The standard query operators in LINQ are the extension process that forms the LINQ pattern. These operators form an API that enables

Php project for Narivramanarao For email Project Description: This is a project for Narivramanarao for emails and for php.rar please bid on the project and let's get started