Views Foundation > Creating an ActiveX Control from Existing Rogue Wave Views Code
 
Creating an ActiveX Control from Existing Rogue Wave Views Code
You can create an ActiveX control using Rogue Wave® Views either with the Microsoft Foundation Classes (MFC) library or with the Active Template Library (ATL).
The following two tutorials demonstrate how to create an ActiveX control from an existing Rogue Wave Views program.
*Creating an ActiveX Control with the ATL Library
*Creating an ActiveX Control with the MFC Library
You will build the ActiveX control from the sample Rogue Wave Views program provided in the following file using the ATL COM AppWizard or the MFC ActiveX ControlWizard, depending on the library you choose: manager.cpp
This program displays a map in a manager and allows you to zoom in or out and scroll the map.
You can also create an ActiveX from scratch. The procedure is the same as the one presented in this tutorial.
A knowledge of Rogue Wave Views, C++, Visual C++, COM, and the ATL or the MFC library is a prerequisite to work through these tutorials.
Note: The registration of ActiveX controls must be performed with administrative rights. If you are building the control in Visual Studio, you must make sure it was run as Administrator.
Alternatively, you can manually register the control by creating an Administrator command prompt and using the command line regsvr32 /s /c "<PATH_TO>\<CONTROL>.dll".

Version 6.2.1
Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.