最近开始尝试windows Mobile开发,使用EVC4.0,一开始就遇到了一些问题,一并写下来做个手记.
1.安装开发环境及步骤
操作系统:winxp + sp2
Instructions
The following installation steps requires you to be logged onto to your computer using an account with Local Administrator privileges.
Note: If you have already installed the Pocket PC 2003 SDK successfully and you are not installing a new development environment such as eVC 4.0 or Visual Studio .NET 2003 you may install the Smartphone 2003 SDK without following these steps.
Note: If you install the Smartphone 2003 SDK on a Visual Studio 2003 .NET development platform, and then decide to install Embedded Visual C++ 4.0 — you must uninstall and then reinstall the Smartphone 2003 SDK as well as any localized emulator images.
- Close All Programs, Remote Development Tools, and Emulators Before Proceeding
You should close the following programs before proceeding with the Smartphone 2003 SDK installation:
- eMbedded Visual Tools 3.0
- eMbedded Visual C++ 4.0
- Visual Studio .NET 2003
- The SDK also requires that you close the emulators provided with eMbedded Visual Tools, eMbedded Visual C++, or Visual Studio .NET. Under some circumstances the Windows CE Emulator, or related processes may continue to run even though it seems the applications have exited. It may be advisable to reboot your computer before proceeding with the installation to ensure no conflicts with existing running programs occur.
- Uninstall Previous Versions of the Smartphone 2003 SDK
You do not need to uninstall any version of the Smartphone 2002 SDK to use the Smartphone 2003 SDK, but any previous versions of the Smartphone 2003 SDK do need to be uninstalled. If you are upgrading from a previous version of the Smartphone 2003 SDK, after uninstalling the previous version but before installing the current version, run eMbedded Visual C++ 4.0 and view the Help contents. After this is done, close Help and the eMbedded Visual C++ 4.0 environment and install the new Smartphone 2003 SDK. This ensures that the latest Help documentation gets installed into the eMbedded Visual C++ 4.0 environment.
- Install Microsoft ActiveSync 3.7.1
The Smartphone 2003 SDK requires ActiveSync 3.7.1 for application development and deployment using eMbedded Visual C++ 4.0 or Visual Studio .NET 2003. You must first uninstall previous versions of ActiveSync before installing ActiveSync 3.7.1. If you do not have ActiveSync 3.7.1, you can download ActiveSync 3.7.1.
If you already have Visual Studio .NET 2003 installed, and then uninstall and reinstall ActiveSync 3.7.1, you will have to Repair your installation of Visual Studio .NET 2003 from Add/Remove Programs.
- Install eMbedded Visual C++ 4.0 and Service Pack 3
In order to develop C++ applications using the Smartphone 2003 SDK, you must install Microsoft eMbedded Visual C++ 4.0 and Service Pack 3 before installing the Smartphone 2003 SDK. If you do not already have eMbedded Visual C++ 4.0 or Service Pack 3 you may download them from the eMbedded Visual Tools Downloads and Samples Web page.
Note, installing eMbedded Visual C++ 4.0 Service Pack 3 on Windows Server 2003 causes a pop-dialog box to come up and prompt that one of the emulator drivers isn't signed. You should accept the unsigned driver and continue.
- Install Visual Studio .NET 2003
In order to develop applications in C# or VB.NET for Smartphone 2003, you must install Visual Studio .NET 2003 before installing the SDK.
Smartphone 2003 devices and the Smartphone 2003 Emulation images already contain the .NET Compact Framework.
For more information on Visual Studio .NET 2003 or the .NET Compact Framework, see the Visual Studio Home Page on MSDN.
- Install the Smartphone 2003 SDK
You can now proceed with the installation of the Smartphone 2003 SDK.
For updates, tools, and whitepapers please check the Microsoft Mobile Device Developers Web site.
To download:
- Click the Download link to start the download.
- Do one of the following:
- To start the installation immediately, click Open or Run this program from its current location.
- To copy the download to your computer for installation at a later time, click Save or Save this program to disk.
原文地址:
http://www.microsoft.com/downloads/details.aspx?FamilyId=A6C4F799-EC5C-427C-807C-4C0F96765A81&displaylang=en
2.连接到设备上时需要注意的问题:
The security features of Smartphone devices make it necessary to sign
certain files that are used to support the development and debugging
process. During the installation of the Smartphone SDK, this process is
performed automatically for the files that the device emulator uses.
However, when you want to enable a real Smartphone device for testing and
debugging, you will need to complete this file-signing process manually.
For SmartPhone 2002 the "sp2002dps.exe", found on standard path:
"C:\Windows CE Tools\wce300\Smartphone 2002\tools\sp2002dps.exe" /create
/device
Or for SmartPhone 2003 SDK spdps.exe, maybe under:
"C:\Programme\Windows CE Tools\wce420\SMARTPHONE 2003\Tools\spdps.exe"
/create /device (only do this once)
原文地址:
http://blog.joycode.com/mvm/archive/2004/12/28/41887.aspx