Connection Manager Helper
This code sample is named CmHelper. It demonstrates how to write a simplified Connection Manager client by deriving functionality from a helper class. This results in a client that focuses on only three things:
- where the data is
- whether a proxy is used
- what information to show the user while connecting
Feature Area
Relevant APIs
- ConnMgrEstablishConnection function
- ConnMgrConnectionStatus function
- ConnMgrReleaseConnection function
- ConnMgrMapURL function
- ConnMgrProviderMessage function
Usage
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 CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\Samples\CPP\Mfc\CMHELPER\cmhelper.sln
Microsoft Visual Studio 2005 launches and loads the solution.
Build the solution (Ctrl+Shift+B).
Deploy the solution (F5).
To launch the application
- On the mobile device, navigate to the Program Files folder, and then to the cmhelper folder.
- Launch the executable file, cmhelper.exe.
Using the application
- Type a URL into Network Path.
- If you will be using a proxy server, then check Use proxy if available.
- Click either Check, Connect, or Disconnect. Status details appear in the scrollable text field.
Button Commands
Button | Action |
---|---|
Check | See if you can connect within 4 seconds. |
Connect | Establish a connection. |
Disconnect | Break the connection. |
Requirements
Pocket PC SDK: Windows Mobile 5.0 Pocket PC SDK.
Development Environment: Visual Studio 2005.
ActiveSync: Version 4.0.
See Also
Code Samples | Time Server Synchronization
Send Feedback on this topic to the authors