Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is meant by "Early Binding" and "Late Binding"? Which
is better?

Answer Posted / guest

Early binding and late binding refer to the method used to
bind an interface's properties and methods to an object
reference (variable). Early binding uses type library
information at design time to reference procedures, while
late binding handles this at run time. Late binding
handles this by interrogating the reference before each
call to insure that it supports a particular method. Since
every call to a late bound object actually requires two
calls ("Do you do this?" followed by "Okay, do it then"),
late binding is much less efficient than early binding.
Except where early binding is not supported (ASP,
scripting, etc.), late binding should only be used in very
special cases.

It is a common misconception that any code using the
CreateObject function instead of Set = New is using late
binding. This is not the case. The type declaration of
the object variable determines whether it is late or early
bound, as in the following:

Dim A As Foo
Dim B As Foo
Dim C As Object
Dim D As Object

Set A = New Foo 'Early Bound
Set B = CreateObject("FooLib.Foo") 'Early Bound
Set C = CreateObject("FooLib.Foo") 'Late Bound
Set D = New Foo 'Late Bound

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I mimic a toggle button?

1520


It possible to call OLEDB?s Features directly in VB without using any control?

2156


How to use hyperlink?

1060


What's the difference between MODAL and MODELESS forms?

1576


__ no of controls in form.

1563


What about DLL calls that require callbacks?

1489


Scope of API?s can be of different types, what are they Why API functions are Required?

1981


How do I make the mouse cursor invisible/visible?

1407


What is ODBC Direct and Microsoft Jet Database Engine ?

2299


Why does everybody say I should save in TEXT not BINARY?

1677


What is the use of Hyperlink control for DHTML applications?

2234


What is DAO?

2075


How do I get a bitmap picture in a field in an Access database?

1398


What is the-use of property page Wizard in ActiveX Control?

2065


How would you run your ActiveX Document Dll?

2106