Early binding and Late binding in VB. 
Author Message
 Early binding and Late binding in VB.

Hi,

    Do anybody have an ideal on "Early bind and Late bind" in VB ?
Or can introduce me to any article on internet ?

Thanks in advance.

--
XINXIN



Tue, 13 Apr 2004 20:29:25 GMT  
 Early binding and Late binding in VB.
hi
basically when u use the new keyword in vb to create an instance of a class
that you ahve made a reference to in your project it is early binding
when you use the Createobject method and even the Getobject method objects
are created or retrieved at runtime
with variables if you dim them with a data type in your code then they are
early bound
if you dont dim them or dim them as vairant then they are late bound
i am assuming you have a good idea about early and late binding so this will
hopefully help

take it easy

Saurabh


Quote:
> Hi,

>     Do anybody have an ideal on "Early bind and Late bind" in VB ?
> Or can introduce me to any article on internet ?

> Thanks in advance.

> --
> XINXIN




Tue, 13 Apr 2004 22:09:14 GMT  
 Early binding and Late binding in VB.
Late binding = method lookup via IDispatch at run-time:

Dim x As Object
' code to create an object
x.CallSomeMethod

Early binding = vtable binding to interface methods at compile time:

Dim x As ClassName ' can be either the default interface of a class or some
interface in a typelib
' code to create an object
x.CallSomeMethod

Contrary to popular opinion, early/late binding has nothing to do with New
vs. CreateObject.
New = binding to a class's clsid at compile time
CreateObject = locating class's clsid from ProgId at run-time

-------------------------------------------------
Automate your software builds with Visual Build
http://www.kinook.com


Quote:
> Hi,

>     Do anybody have an ideal on "Early bind and Late bind" in VB ?
> Or can introduce me to any article on internet ?

> Thanks in advance.

> --
> XINXIN




Wed, 14 Apr 2004 03:41:33 GMT  
 Early binding and Late binding in VB.
there are really many articles you'll easily find with www.google.com for
instance.
I'd say go for late binding if you want to do RAD and have the least
possible change of version problems (what often happens if the class design
is quick and dirty).
for the WEB, components speed does not count too much.
For a good CLASS design where parameters and interfaces are not likely to
change quickly (as in ADO for instance) use early binding.

If you are writing client code only, and you know that your or server
writers are reliable and professional on the subject, use early binding.
Glad that .NET solves this problem.
--
Egbert Nierop

Session management for webfarms:
http://www.nieropwebconsult.nl/asp_session_manager.htm


Quote:
> Hi,

>     Do anybody have an ideal on "Early bind and Late bind" in VB ?
> Or can introduce me to any article on internet ?

> Thanks in advance.

> --
> XINXIN




Fri, 16 Apr 2004 05:28:16 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Early bind and Late bind in VB.

2. Early binding and Late binding in VB.

3. early binding vs late binding

4. Activex Server - Early Binding vs. Late Binding

5. Late Binding vs Early Binding in out-of-process servers

6. * Early binding or late binding

7. Early binding and Late binding

8. early binding / late binding

9. Early Binding and Late Binding

10. early binding vs late binding

11. Early Binding - Late Binding

12. Powerpoint with early or late binding but INVISIBLE

 

 
Powered by phpBB® Forum Software