Error connecting to COMServer

Mark Hammond MarkH at ActiveState.com
Sat Jun 9 02:21:36 EDT 2001


Mike Müller wrote:

> <VB> 
> Dim Adder As New AddingMachine  
> </VB>


It appears the ProgID of the object is simply "AddingMachine"


>>>>from win32com.client import Dispatch
>>>>a = Dispatch("Adder.AddingMachine")


Try just using "AddingMachine".

> Can I conclude anything if I look into at the file generated by COM
> Makepy?


Why not open it and see :)  You should find some generated comments 
telling you the correct Prog ID to use for all the objects in the library.

Mark.




More information about the Python-list mailing list