Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

A Complete ActiveX Web Control Tutorial

, 21 Jun 2006
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.
myactivex.zip
MyActiveX
MyActiveX
MyActiveX.def
MyActiveXCtrl.bmp
ProcessingProgressBar.gif
Release
mt.dep
MyActiveX.ocx.intermediate.manifest
MyActiveX.tlb
myactivex.inf
release
MyActiveX.exp
MyActiveX.lib
MyActiveX.ocx
========================================================================
    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.

MyActiveX.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.

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

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

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

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

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

/////////////////////////////////////////////////////////////////////////////
CMyActiveXCtrl control:

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

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

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

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

CMyActiveXCtrl.bmp
    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.

resource.h
    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.

License

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

Share

About the Author

David Marcionek
Web Developer
United States United States
No Biography provided

| Advertise | Privacy | Mobile
Web01 | 2.8.140926.1 | Last Updated 21 Jun 2006
Article Copyright 2006 by David Marcionek
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid