This code sample is named AXSample. It demonstrates how to use the Active Template Library (ATL) to create an ActiveX control, and how to access that control in a web page.
To run the code sample
Navigate to the solution file (*.sln), and double-click it. By default, the solution file is copied to the following folder:
C:\Program Files\Windows Mobile 6 SDK\Samples\Common\CPP\ATL\AXSample
Microsoft Visual Studio 2005 launches and loads the solution.
Build the solution (Ctrl+Shift+B).
Open to the AxSample project properties.
Navigate to Configuration Options > Debugging.
Set the Debugger to Launch to Smart Device Native Debugger.
Set the Remote Executable to
Set the Command Arguments to
Deploy the solution (F5).
The sample is copied to the device, and is registered. Internet Explorer Mobile then automatically launches and navigates to axsample.htm.
To debug the code sample
Load the AxSample.HTML file with Internet Explorer Mobile.
Try clicking the buttons and circles that are displayed.
To install the certificate from the windows desktop
Click Start > Run.
Type the path-name to SamplePrivDeveloper.pfx certificate, and click OK. By default, this is located in the following folder:
C:\Program Files\Windows Mobile 6 SDK\Tools\Security\SDK Development Certificates
Double-click the SamplePrivDeveloper.pfx certificate icon. The Certificate Import Wizard appears.
Click Next. The certificate path-name is filled-in.
Click Next (you do not need a password).
Click Next. Accept the default options; automatically select the certificate store based on certificate type.
9. Click Finish.
SDK: Windows Mobile 6 Professional SDK and Windows Mobile 6 Standard SDK
Development Environment: Visual Studio 2005.
ActiveSync: Version 4.5.
See Windows Mobile Powered Device Security Model for further details on how to install the SDK certificates onto the mobile device, and how to use the privileged SDK certificate to sign this application.
Source File Listing
Implements functions exported by the .DEF file.
The DLL export definitions.
The MIDL script file.
The resource script.
Implements the ActiveX entry points, including OnDraw.
Defines the precompiled type information.
Defines the COM interfaces to the ActiveX control.
The resource script header file.
The precompiled header file.