Newbie Q: How to call unmodified VB DLL from Python

John Lull lull at acm.org
Tue Jun 22 00:42:31 EDT 1999


In the waning years of the 20th century, radbit at my-deja.com wrote
(with possible deletions):

> since VB has only been able to do in-process OLE (Com) Dlls since VB4.0
> I take it that this DLL exposes its methods via COM. In which case it
> should be a snip to talk to it via Marc Hammond's Pythonwin COM
> support. Find out what it's programmatic id is (progid) from
> Pythonwin's COM browser or MS VC++'s COM Viewer. Once you know what
> progid it has you can do:
> 
> >>> from win32com.client import Dispatch
> >>> vbObj=Dispatch('progid')

This should get me started.

Thanks.

Regards,
John





More information about the Python-list mailing list