[python-win32] How to figure out the COM object name?
Tim Roberts
timr at probo.com
Wed Apr 4 00:16:07 CEST 2007
Michael March wrote:
> I am trying to connect to a COM object.. and I can't figure how to code it..
>
> In Makepy the name of the COM object is:
> OTA COM 9.0 Type LIbrary (1.0)
>
> The DDL is:
> OTAClient.dll
>
> The VB samples have stuff like this..
> Dim td as New TDConnection
> td.InitConnectionEx "http://<servername>:port/qcbin"
> etc...
>
> What should my.....
> obj=win32com.client.Dispatch("...........
> ...look like?
>
It should be as simple as
td = win32com.client.Dispatch( "TDConnection" )
td.InitConnectionEx( "http://server:port/qcbin" )
That is, assuming they support late binding.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the Python-win32
mailing list