Click here to Skip to main content
12,632,072 members (25,189 online)
Click here to Skip to main content

Stats

39.4K views
419 downloads
25 bookmarked
Posted

Using COM Objects in Scripting Languages -- Part 2 (Python)

, 20 Apr 2010 CPOL
This article shows how to instantiate a COM object in Python and use its methods and properties.
========================================================================
    ACTIVE TEMPLATE LIBRARY : SimpleCOM Project Overview
========================================================================

AppWizard has created this SimpleCOM project for you to use as the starting point for
writing your Dynamic Link Library (DLL).

This file contains a summary of what you will find in each of the files that
make up your project.

SimpleCOM.vcproj
    This is the main project file for VC++ projects generated using an Application Wizard.
    It contains information about the version of Visual C++ that generated the file, and
    information about the platforms, configurations, and project features selected with the
    Application Wizard.

SimpleCOM.idl
    This file contains the IDL definitions of the type library, the interfaces
    and co-classes defined in your project.
    This file will be processed by the MIDL compiler to generate:
        C++ interface definitions and GUID declarations (SimpleCOM.h)
        GUID definitions                                (SimpleCOM_i.c)
        A type library                                  (SimpleCOM.tlb)
        Marshaling code                                 (SimpleCOM_p.c and dlldata.c)

SimpleCOM.h
    This file contains the C++ interface definitions and GUID declarations of the
    items defined in SimpleCOM.idl. It will be regenerated by MIDL during compilation.

SimpleCOM.cpp
    This file contains the object map and the implementation of your DLL's exports.

SimpleCOM.rc
    This is a listing of all of the Microsoft Windows resources that the
    program uses.

SimpleCOM.def
    This module-definition file provides the linker with information about the exports
    required by your DLL. It contains exports for:
        DllGetClassObject
        DllCanUnloadNow
        DllRegisterServer
        DllUnregisterServer

/////////////////////////////////////////////////////////////////////////////
Other standard files:

StdAfx.h, StdAfx.cpp
    These files are used to build a precompiled header (PCH) file
    named SimpleCOM.pch and a precompiled types file named StdAfx.obj.

Resource.h
    This is the standard header file that defines resource IDs.


/////////////////////////////////////////////////////////////////////////////
Other notes:


	The MFC Support option builds the Microsoft Foundation Class libraries into your skeleton application,
	making MFC classes, objects and functions available to you.
/////////////////////////////////////////////////////////////////////////////

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Sharjith
Engineer Tata Technologies Ltd
India India
Sharjith is a Mechanical Engineer with strong passion for Automobiles, Aircrafts and Software development.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161208.2 | Last Updated 20 Apr 2010
Article Copyright 2010 by Sharjith
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid