Re: Using early-bound interface on a late-bound object



"Bob Butler" <tiredofit@xxxxxxxxxx> wrote in message
news:ug$f6RtuFHA.728@xxxxxxxxxxxxxxxxxxxxxxx
> I'm not totally sure either; from the description I'm picturing creating a
> class that accepts an object reference and provides all the same
> properties
> and methods so you;d be early-bound to your own class with would re-direct
> everything to the late-bound interface that it holds. I've done that
> general sort of thing to provide generic access to ADO or DAO by
> substituting classes with a common interface but even then the class had
> early bound references to either ADO or DAO so it's not quite what I think
> Ralph was thinking.

That makes sense, although where intellisense is working you still get early
binding and where intellisense was not working you would get late binding.

Michael


.



Relevant Pages

  • Re: "Object reference not set to an instance of an object." error at postback
    ... My guess would be that your problem is located with your binding ... container that you mentioned towards the end of your post. ... Object reference not set to an instance of an object. ... The error message appears immediately ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Confessions of an "OO Foreigner"
    ... > Not true - inline method invocation works with late binding provided ... > the object reference is a universal object reference (which requires ... What do you mean by a "universal object reference"? ... I tried using inline method invocation in late bound programs and it didn't ...
    (comp.lang.cobol)
  • Re: Confessions of an "OO Foreigner"
    ... reference is a data item of class object and category object-reference. ... universal object reference. ... (allowing early binding) ... >> the object reference is a universal object reference (which requires ...
    (comp.lang.cobol)
  • Re: how to add new table programatically
    ... I was trying as well to use the DAO and ADOX approaches from VB .NET, ... I could not figure out how to obtain an object reference to ... Dim AccessApp As New Microsoft.Office.Interop.Access.Application ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Confessions of an "OO Foreigner"
    ... Not true - inline method invocation works with late binding provided ... the object reference is a universal object reference (which requires ... will fulfill its promise. ...
    (comp.lang.cobol)