# Parent Module win32com.makegw
# Functions make_framework_support # Generate C++ code for a Python Interface and Gateway
This module will generate a C++/Python binding for a specific COM interface.
At this stage, no command line interface exists. You must start Python, import this module, change to the directory where the generated code should be written, and run the public function.
This module is capable of generating both
Interfaces
(ie, Python
client side support for the interface) and
Gateways
(ie, Python
server side support for the interface). Many COM interfaces are useful
both as Client and Server. Other interfaces, however, really only make
sense to implement one side or the other. For example, it would be pointless
for Python to implement Server side for
IRunningObjectTable
, unless we were
implementing core COM for an operating system in Python (hey - now there's an idea!)
Most COM interface code is totally boiler-plate - it consists of converting arguments, dispatching the call to Python, and processing any result values.
This module automates the generation of such code. It has the ability to parse a .H file generated by the MIDL tool (ie, almost all COM .h files) and build almost totally complete C++ code.
The module understands some of the well known data types, and how to convert them. There are only a couple of places where hand-editing is necessary, as detailed below:
Copyright © Greg Stein, Mark Hammond, Curt Hagenlocher and a few other contributors
All Rights Reserved
Comments to author:
Generated: Sun Apr 20 1997