Python in Physics
OSU logo
The content of this page is undergoing revision and will be moved to another site soon.
MS Window Specific Applications

Table of Contents

COM and ActiveX

  • Install Pywin32 and Dependency Walker for Win32.
  • You can explore dlls and ocxs by running the Dependency Walker executable, depends.exe.
  • Run makepy.py and select the library of interest, in this case "DDC4100 ActiveX Control module (1.0)" or DDC4100.ocx. The output:
    Generating to C:\Python25\lib\site-packages\win32com\gen_py\4AB30830-EFC0-496D-8D38-ACFE2518ECEBx0x1x0.py
    Building definitions from type library...
    Generating...
    Importing module
    Press any key to continue . . .
    The file 4AB30830-EFC0-496D-8D38-ACFE2518ECEBx0x1x0.py is a wrapper for the library.