Simple DCOM example?

dsavitsk dsavitsk at e-coli.net
Wed May 15 00:05:46 EDT 2002


by under, i mean physically under ...

class foo:
    _reg_clsid_  = '{ -- SOME GUID -- }'
    _reg_clsctx_ = pythoncom.CLSCTX_LOCAL_SERVER
    ...
    def bar(self):
        #etc ...

in case that wasn't clear.
-d

"dsavitsk" <dsavitsk at e-coli.net> wrote in message
news:aYkE8.14830$d7.4682110 at newssrv26.news.prodigy.com...
> if the COM server is a Python COM server, add the line
>
> _reg_clsctx_ = pythoncom.CLSCTX_LOCAL_SERVER
>
> under your _reg_clsid_ and all should work well.  also, you can skip the
> userName parameter.
>
> -d
>
>
> "Tim Hamza" <tim at frontier.net.nospam> wrote in message
> news:3ce1e2c7$0$26393$724ebb72 at reader2.ash.ops.us.uu.net...
> > Hey all,
> >
> > I have been playing around with the win32com stuff.  I have the same COM
> > object on two Win2k boxes that I can use on each box as in the demo.  Is
> > there an easy way to access COM objects between machines?  I grasped at
> > variations of the win32com.client.DispatchEx straw because it lists
> machine
> > as a parameter.
> >
> > Ex
> > w = win32com.client.DispatchEx("someObject.Application",
> machine="otherPC",
> > userName="goodUserOnBothPCs")
> >
> > This returns the right kind of object, but calling its methods does not
> > affect the app on other PC.
> >
> > Have read win32com docs and googled.  Easy answer or no?
> >
> > Thanks,
> >
> > Tim
> >
> >
>
>





More information about the Python-list mailing list