MFC ActiveX Tutorial

The ActiveX Control program is used by programmers to configure how different applications communicate and share information. ActiveX can be used with various programming languages, including Java, C++ and Virtual Basic. While ActiveX Controls can be developed using different tools, the MFC, or Microsoft Foundation Classes, tool is the most common. Developing an ActiveX Control using MFC requires knowledge of C++ programming code.

Things You'll Need

  • Computer programming project
  • ActiveX Client
Show More

Instructions

  1. Creating the Skeleton

    • 1

      Open a programming project and select "Create New."

    • 2

      Under the "Projects" tab, select MFC ActiveX ControlWizard.

    • 3

      Select the number of controls you want to create and adjust the settings as desired. Click "Next" and then "Finish."

    Adding Components

    • 4

      Right click on the interface. Select the component you wish to add: "Method," "Properties," "Events" or "PropertyPages."

    • 5

      Select an external name from the drop-down box to add a stock component.

    • 6

      Click on the "Custom" button and write your own component code to create a custom control.

    Using the ActiveX Control

    • 7

      Go to "Project" and select "Add To Project." Select "Components and Controls" from the menu.

    • 8

      Drag the ActiveX Control you just created into the dialog.

    • 9

      Open the "Class Wizard" and add a member variable that corresponds to your control.

Related Searches:

References

Comments

You May Also Like

  • ActiveX Component Tutorial

    An ActiveX component is an applet that can be downloaded and run independently in Microsoft's Web browser. It can also be "plugged...

  • ActiveX Tutorial for Beginners

    ActiveX is a framework designed to define reusable software components. These components perform various particular functions in Microsoft Windows without the use...

  • Snap-in Tools for Windows MMC

    Snap-in Tools for Windows MMC. Microsoft Management Consoles, or MMCs, first appeared with the introduction of the Windows 2000 operating system, or...

  • Active X Tutorial

    ActiveX is designed to work with Microsoft Windows applications without the need for using the specific programming language or code normally needed...

  • How to Create an ActiveX Control in VB

    ActiveX controls are Microsoft's answer to the limited security model of JavaScript. JavaScript is a powerful language that is limited for security...

  • How to Use a Listbox Control in MFC Visual C++

    A list box is a Windows control that can display text or iconic items as a list of rows. The Microsoft Foundation...

  • How to Build ActiveX Controls

    ActiveX controls are small components that work within other applications, primarily web browsers. They have objects that a user interacts with, such...

  • How to Use Edit Controls in MFC

    In Microsoft Windows based systems the CEdit class provides the functions of the edit controls in MFC. In a dialog based program...

Related Ads

Featured