Using Internet Explorer Mobile In Your Application

Send Feedback

This code sample is named MiniPIE. It demonstrates how to reuse the Internet Explorer Mobile web browser in a mobile application.

Feature Area

Relevant APIs

Usage

To run the code sample

  1. Navigate to the solution file (*.sln), and double-click it. By default, the solution files are copied to the following folders:

    C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\Samples\CPP\ATL\Minipie\MiniPIE.sln

    C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Smartphone SDK\Samples\CPP\ATL\Minipie\MiniPIE.sln

    Microsoft Visual Studio 2005 launches and loads the solution.

  2. Build the solution (Ctrl+Shift+B).
  3. Deploy the solution (F5).

To use the application

  1. Navigate using the Open URL... menu item, or by using the Address Bar, if deploying to Pocket PC.
  2. Use the Exit softkey to quit.
  3. Use the Back, Forward, Refresh, Home, and Stop menu items as you would in Internet Explorer Mobile.

Source File Listing

MainWindow.h, MainWindow.cpp
Defines the main application window.
GetURLDialog.h, GetURLDialog.cpp
Defines a dialog box that allows the User to enter an URL. This is not really needed to host the web browser control; however, it is implemented here to allow the User to navigate on Smartphone, where the IWebBrowser2::get_AddressBar property is not implemented.
MiniPIE.cpp
Implementation of WinMain.
MiniPIE.rc
Resources used by this application.
resource.h
Header file that defines resource IDs. Used by MiniPIE.rc.
Macros.h
Utility macros used for error-checking, etc.
StdAfx.h, StdAfx.cpp
These files are used to build a Precompiled Header (PCH) file named MiniPIE.pch, and a precompiled type file named StdAfx.obj.
MiniPIE.vcproj
Main project file for VC++ projects generated using Application Wizards.

Requirements

Pocket PC SDK: Windows Mobile 5.0 Pocket PC SDK.
Smartphone SDK: Windows Mobile 5.0 Smartphone SDK.
Development Environment: Visual Studio 2005.
ActiveSync: Version 4.0.

See Also

Code Samples | Internet Explorer Mobile


Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.


Show: