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
Explain memory-mapped files. Memory-mapped files (MMFs) permit you map the content of a file to the logical address of an application. These files enable the multiple processes

What is a delegate? The Delegate is the class that can hold a reference to a method or a function. The Delegate class has a signature and it can only reference to those methods

I need help to develop website using html5, responsive design and jquery.I need e commerce website flike alma meter and spreadshirtHours Skills required: .NET, HTML, Graphic

Develop a windows desktop application Project Description: I am looking to get a desktop application developed. The desktop application will have the subsequent few features:

.NET aplication with vBulletin paid subscribtion Project Description: I have an application in .net it's a simple client i have sheltered with net seal license system for aut

Project Description: customise samba pos. Just remove samba pos logo and rebrand it. The title in the frame needs to be changed as well as the splash screen at the beginning.

I am seeking asp.net developers, and will raise depends on skills and work, we are a web development firm in mexico and i want full time developers that can focus 100 percent my pr

Encripter-Decripter application Project Description: I want an application which can encrypt - decrypt text, images, and music files as well as videos. Skills required are

Perform Arithmetic operations on Floating Values - C# Program Hello, I've been trying so many codes for this but those codes didn't work well. Please write the code for Perfor

What are the different Visual Basic features that support LINQ? Visual Basic includes the following features that support LINQ: Anonymous types - Enables you to make a ne