[python-win32] COM (ActiveX) problem

Mark Hammond mhammond@skippinet.com.au
Wed, 8 Jan 2003 11:00:39 +1100


You will probably find that your OCX truly requires an OXC control host.
Both wxPython and Pythonwin are capable of doing this, but (w)python.exe is
not.  I suggest you look in the pywin\demos\ocx directory, and see if you
can make Pythonwin host your OCX.  If you can, next try wxPython - find
their OCX samples too.

Mark.

> -----Original Message-----
> From: python-win32-admin@python.org
> [mailto:python-win32-admin@python.org]On Behalf Of WZhang
> Sent: Wednesday, 8 January 2003 2:24 AM
> To: python-win32@python.org
> Subject: [python-win32] COM (ActiveX) problem
>
>
> I am trying to work with a frame Grabber card (coreco tci serie) in my
> computer. It come with activeX control tcictrl.ocx, tcictrl.tbl. The
> activeX control works fine when called by labview. I am
> trying to write
> progrem in python to talk with the card. I find a nice utility call
> "oleview" from Microsoft to browser the COMs(you can see the
> ProgID, and
> detail of each typelib, I did not see anyone mention it in
> the list and a
> lot of people have trouble finding the COMs in their
> computer, hope this
> helps).
>
> I can Dispatch the activeX control with no problem.
>
> tci=win32com.client.Dispatch("TCICtrl.TCICtrlCtrl.1")
>
> But after that every function I try to call generate error:
>
> for example
>
> tci.AboutBox()
>
> will generate "Unexpected error", why is that.
>
>
> Another question is, I am doing the GUI using wxpython, I am
> not sure how
> to make the video (if I could make the activex works) show in my gui.
>
> Thanks
>
>
> Wenhua
>
> _______________________________________________
> Python-win32 mailing list
> Python-win32@python.org
> http://mail.python.org/mailman/listinfo/python-win32