Activex Server - Early Binding vs. Late Binding 
Author Message
 Activex Server - Early Binding vs. Late Binding

I have a simple activex server that I wrote that works fine from the client
when using:

dim remote as object
set remote = CreateObject("MyRemoteProject.MyRemoteObject", "ServerName")

But when I try to use early binding like this:

Dim remote As New MyRemoteObject

and then make a call to it I get:

Run-time error '-2147221163 (80040155)':

Automation error
Interface not registered

Any thoughts?

Thanks,
RWK



Sat, 24 Apr 2004 23:14:38 GMT  
 Activex Server - Early Binding vs. Late Binding
RWK,

One of the Remote Server Files created when you build your Server
is a TypeLib.  You *might* be able to use Early binding if you
register the Typelib on your local machine (RegTLib.Exe).

Never tried it, though.

HTH,
    Phill  W.


. . .

Quote:
> But when I try to use early binding like this:

> Run-time error '-2147221163 (80040155)':
> Automation error
> Interface not registered

. . .


Sun, 25 Apr 2004 00:37:20 GMT  
 Activex Server - Early Binding vs. Late Binding
Phil,

I copied the .tlb and the .vbr files and manually registered them using
clireg32.exe to get it to work in the first place and when I try using early
binding in the IDE it seems as though it will work since I can browse it
with the VB object browser and autocompletion works. It just doesn't work
when I go to run the app. The main reason I want to be able to do early
binding is the convenience of using the object browser/autocompletion.

Thanks,
RWK


Quote:
> RWK,

> One of the Remote Server Files created when you build your Server
> is a TypeLib.  You *might* be able to use Early binding if you
> register the Typelib on your local machine (RegTLib.Exe).

> Never tried it, though.

> HTH,
>     Phill  W.



> . . .
> > But when I try to use early binding like this:

> > Run-time error '-2147221163 (80040155)':
> > Automation error
> > Interface not registered
> . . .



Sun, 25 Apr 2004 11:31:49 GMT  
 Activex Server - Early Binding vs. Late Binding
I unregistered and then reregistered the component using dcom instead of
remote automation and the early binding works fine.

Thanks for your response Phil.
RWK


Quote:
> Phil,

> I copied the .tlb and the .vbr files and manually registered them using
> clireg32.exe to get it to work in the first place and when I try using
early
> binding in the IDE it seems as though it will work since I can browse it
> with the VB object browser and autocompletion works. It just doesn't work
> when I go to run the app. The main reason I want to be able to do early
> binding is the convenience of using the object browser/autocompletion.

> Thanks,
> RWK



> > RWK,

> > One of the Remote Server Files created when you build your Server
> > is a TypeLib.  You *might* be able to use Early binding if you
> > register the Typelib on your local machine (RegTLib.Exe).

> > Never tried it, though.

> > HTH,
> >     Phill  W.



> > . . .
> > > But when I try to use early binding like this:

> > > Run-time error '-2147221163 (80040155)':
> > > Automation error
> > > Interface not registered
> > . . .



Mon, 26 Apr 2004 00:08:41 GMT  
 
 [ 4 post ] 

 Relevant Pages 

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

2. early binding vs late binding

3. early binding vs late binding

4. * Early binding or late binding

5. Early binding and Late binding

6. early binding / late binding

7. Early binding and Late binding in VB.

8. Early Binding and Late Binding

9. Early bind and Late bind in VB.

10. Early binding and Late binding in VB.

11. Early Binding - Late Binding

12. Early vs. Late binding

 

 
Powered by phpBB® Forum Software