Tutorial Downloads .com

Home

What are binary and project compatibility | VB Question

What are binary and project compatibility

Visual Basic’s Version Compatibility feature is a way of enhancing your components while maintaining backward compatibility with programs that were compiled using earlier versions. The Version Compatibility box, located on the Component tab of the Project Properties dialog box, contains three options:
No Compatibility:
Each time you compile the component, new type library information is generated, including new class IDs and new interface IDs. There is no relation between versions of a component, and programs compiled to use one version cannot use subsequent versions.

Project Compatibility:
Each time you compile the component the type library identifier is kept, so that your test projects can maintain their references to the component project. All class IDs from the previous version are maintained; interface IDs are changed only for classes that are no longer binary-compatible with their earlier counterparts. Note This is a change in Project Compatibility from Visual Basic 5.0, where all class IDs and interface IDs in the project changed if any one class was no longer binary-compatible.

Important For the purpose of releasing compatible versions of a component, Project Compatibility is the same as No Compatibility.

Binary Compatibility:
When you compile the project, if any binary-incompatible changes are detected you will be presented with a warning dialog. If you choose to accept the warning, the component will retain the type library identifier and the class IDs. Interface IDs are changed only for classes that are no longer binary-compatible. This is the same behavior as Project Compatibility.
If, however, you choose to ignore the warning, the component will also maintain the interface IDs. This option is only available when the compiler determines that the change was in the procedure ID or signature of a method.

Note:: When people talk about Version Compatibility, they’re usually referring to Binary Compatibility.
How to set a shortcut key for label?

object.KeyLabel(keycode) [= string]
You would probably create the menu item as follows:
.Add "keyFile", , , "E&xit", , vbAltMask + vbCtrlMask, vbKeyEnd
The default key label for vbKeyEnd is "End". Thus, the shortcut string will be created by default as "Ctrl+Alt+End".


Resource:
Posted By : Naina
On date : 07.25.08

Most used Visual Basic ( VB ) Tutorials

Visual Basic Tutorial ( Ebooks , PDF's )
Visual Basic 6 Tutorial Download Visual Basic.Net Practical Standards For Microsoft Visual Basic Microsoft Visual Basic Design Patterns
VB Interview Questions & Answers
differences between flexgrid control and dbgrid, at is difference between inprocess and out of process, What is a Component?How to register a component?What are the Control Categories Difference between Dynaset and Snapshot? Difference Declaration and Instantiation an object? What is a Type Library and what is it's purpose ? What is DBFailError?What is DBSqlPassThrough? .... etc... etc....
What is the max size allowed for Msgbox Prompt and Input Box | Visual basic Question
What is the max size allowed for Msgbox Prompt and Input Box in VB
Microsoft Visual Basic 2008 Step by Step tutorial
This is a VB tutorial book which describes Microsoft Visual Basic 2008 Step by Step
Difference between a function and a subroutine | VB Interview question
Difference between a function and a subroutine
Difference between listbox and combo box | VB Interview question
Difference between listbox and combo box
Diff types of Lock Types in Vb
Diff types of Lock Types
What are the three main differences between flexgrid control and dbgrid(Data bound Grid) control
What are the three main differences between flexgrid control and dbgrid(Data bound Grid) control
Advantage of ActiveX Dll over Active Exe
Advantage of ActiveX Dll over Active Exe
DIFF between Image and Picture box controls | VB Question
DIFF between Image and Picture box controls?
ActiveX and Types of ActiveX Components in VB
ActiveX and Types of ActiveX Components in VB
Difference between Dynaset and Snapshot | VB Interview question
Difference between Dynaset and Snapshot
What are the RDO Methods and Events in VB
What are the RDO Methods and Events
Difference Query unload and unload in form | VB Interview question
Difference Query unload and unload in form
What is meant by "Early Binding" and "Late Binding" Which is better | Visual basic
What is meant by "Early Binding" and "Late Binding"? Which is better?

Latest added Visual Basic ( VB ) Tutorials

Microsoft Visual Basic 2008 Step by Step tutorial
This is a VB tutorial book which describes Microsoft Visual Basic 2008 Step by Step
What are the RDO Methods and Events in VB
What are the RDO Methods and Events
Diff types of Lock Types in Vb
Diff types of Lock Types
What is the max size allowed for Msgbox Prompt and Input Box | Visual basic Question
What is the max size allowed for Msgbox Prompt and Input Box in VB
What is the purpose of the ClipControls property on a form or container | VB Question
What is the purpose of the ClipControls property on a form or container
What is the difference in passing values ByRef or ByVal to a procedure | VB Question
What is the difference in passing values ByRef or ByVal to a procedure
Describe and In Process vs. Out of Process component. Which is faster | VB Question
Describe and In Process vs. Out of Process component. Which is faster
different compatibility types when creating a COM component | VB Interview Question
different compatibility types when creating a COM component
Name the four different cursor and locking types in ADO and describe them briefly
Name the four different cursor and locking types in ADO and describe them briefly
What are binary and project compatibility | VB Question
What are binary and project compatibility