
Early Binding and Late Binding
Quote:
> Hello
> Pls. somebody clarify my doubt. What I understand from the documentation
is
> that when u give reference to the TypeLib it becomes early binding. That
> means it could be Vtable or DispID binding as they are two types of early
> binding. Documentation says VB does vtable binding whenever possible. That
> means in VB DispID binding doesn't takes place at all. Pls. let me know
how
> to do DispID binding?
I think that DISPID binding will occur if the object is declared using a
dispinterface.
Quote:
> Early Binding (Vtable???)
> a. Give TypeLib reference.
> b. Declare the object of specific type.
> c. Use New method to create an object.
Or use CreateObject. Doesn't matter what you use to create the object (you
can use CoCreateInstance if you want), what makes an object early/late bound
is how the variable is declared.
Quote:
> Late Binding
> a. Declare a generic object
> b. Use CreateObject method.
Or use New if the typelib is referenced.
--
Eduardo A. Morcillo
http://www.domaindlx.com/e_morcillo