Oracle® Objects for OLE Developer's Guide 10g Release 1 (10.1) Part Number B10118-01 |
|
The early binding technique tightly typecasts OO4O objects to their native object types rather than the generic object type provided by Visual Basic. These objects are declared directly as OO4O objects, rather than as generic objects which are later reclassified as OO4O objects. The early binding technique improves performance by reducing frequent access to the OO4O type library. For example:
'Early binding of OO4O objects
Dim OraSession as OraSession
Dim OraDatabase as OraDatabase
Dim OraDynaset as OraDynaset
'Generic binding of OO4O objects
Dim OraSession as object
Dim OraDatabase as object
Dim OraDynaset as object
In order to use early binding of OO4O objects, the Oracle InProcess Server type library must be referenced in the Visual Basic projects.