Click here to Skip to main content
11,647,748 members (64,826 online)
Click here to Skip to main content
Add your own
alternative version

A Complete ActiveX Web Control Tutorial

, 21 Jun 2006 838.5K 17K 413
This article is intended to help you get up to speed quickly with developing an ActiveX control. It will show you the basic concepts you need to know about ActiveX, such as methods, properties, and events, and how to communicate between an ActiveX control and a web page.
    ACTIVEX CONTROL DLL : MyActiveX Project Overview

ControlWizard has created this project for your MyActiveX ActiveX Control
DLL, which contains 1 control.

This skeleton project not only demonstrates the basics of writing an
ActiveX Control, but is also a starting point for writing the specific
features of your control.

This file contains a summary of what you will find in each of the files
that make up your MyActiveX ActiveX Control DLL.

    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.

    This is the main include file for the ActiveX Control DLL.  It
    includes other project-specific includes such as resource.h.

    This is the main source file that contains code for DLL initialization,
    termination and other bookkeeping.

    This is a listing of the Microsoft Windows resources that the project
    uses.  This file can be directly edited with the Visual C++ resource

    This file contains information about the ActiveX Control DLL that
    must be provided to run with Microsoft Windows.

    This file contains the Object Description Language source code for the
    type library of your control.

CMyActiveXCtrl control:

    This file contains the declaration of the CMyActiveXCtrl C++ class.

    This file contains the implementation of the CMyActiveXCtrl C++ class.

    This file contains the declaration of the CMyActiveXPropPage C++ class.

    This file contains the implementation of the CMyActiveXPropPage C++ class.

    This file contains a bitmap that a container will use to represent the
    CMyActiveXCtrl control when it appears on a tool palette.  This bitmap
    is included by the main resource file MyActiveX.rc.

Other standard files:

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

    This is the standard header file, which defines new resource IDs.
    The Visual C++ resource editor reads and updates this file.

Other notes:

ControlWizard uses "TODO:" to indicate parts of the source code you
should add to or customize.


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.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

David Marcionek
Web Developer
United States United States
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150804.3 | Last Updated 21 Jun 2006
Article Copyright 2006 by David Marcionek
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid