Early vs. Late Binding

  • Thread starter Thread starter SamSpade
  • Start date Start date
S

SamSpade

In another post I asked if anyone would tell me how to define ITextDocument
for the directcast below.

Library.WinApi.SendMessage(RichTextBox1.Handle,
Library.Rtf.EM_GETOLEINTERFACE, IntPtr.Zero, mIRichEditOleI)

Dim td As ITextDocument = DirectCast(mIRichEditOleI, ITextDocument)


While waiting for a reply (which I didn't get and would appreciate getting)
I tried:
mIRichEditOleI.Selection.ChangeCase(3)

And it worked. So now I know how I can proceed. But I wonder what is going
on.

If I can figure out how to do the cast will I then be using early binding
and am I now using late binding?



Thanks in advance for any words of enlightenment.
 
SamSpade said:
In another post I asked if anyone would tell me how to define ITextDocument
for the directcast below.

Library.WinApi.SendMessage(RichTextBox1.Handle,
Library.Rtf.EM_GETOLEINTERFACE, IntPtr.Zero, mIRichEditOleI)

Dim td As ITextDocument = DirectCast(mIRichEditOleI, ITextDocument)


While waiting for a reply (which I didn't get and would appreciate getting)
I tried:
mIRichEditOleI.Selection.ChangeCase(3)

And it worked. So now I know how I can proceed. But I wonder what is going
on.

If I can figure out how to do the cast will I then be using early binding
and am I now using late binding?

Correct, see my other reply.

David
 
Back
Top