What are types of compatibility in VB6?
.NET INTERVIEW QUESTIONS - What are types of compatibility in VB6?
There are three possible project compatibility settings:
* No Compatibility
* Project Compatibility
* Binary Compatibility
With this setting, new class IDís, new interface IDís and a new type library ID will be generated by VB each time the ActiveX component project is compiled. This will cause any compiled client components to fail (with error 429!) and report a missing reference to the 'VB ActiveX Test Component' when a client project is loaded in the VB IDE.
With this setting, VB will generate 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 compiled client components to fail (with error 429!) but will not report a missing reference to the 'VB ActiveX Test Component' when a client project is loaded in the VB IDE. Recompilation of client components will restore them to working order again.
VB makes it possible to extend an existing class or interface by adding new methods and properties etc. and yet still retain binary compatibility. It can do this, because 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 containing the value of this new interface ID. COM will then substitute calls having the old ID with the new ID and hence applications built against the old interface will continue to work (assuming the inner workings of the component remain backward compatible!). With this 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 ensure that existing interfaces have not been broken.
2010-01-26, 6209👍, 0💬
What Does a HTML Document Look Like? A HTML document is a normal text file with predefined tags mixe...
How To Select All Columns of All Rows from a Table? - Oracle DBA FAQ - Understanding SQL SELECT Quer...
Where are cookies actually stored on the hard disk? This depends on the user's browser and OS. In th...
Whatís difference between HashTable and ArrayList ? You can access array using INDEX value of array,...
Can you explain project life cycle ? Figure :- 12.2 Life cycle of a project There are five stages of...