SYMPTOMS
You can use Microsoft Windows CE Platform Builder version 2.12 (PB 2.12) to export a custom software development kit (SDK) for the Windows CE Toolkit for Visual Basic version 6.0 (VBCE 6.0) and successfully install it on the VBCE 6.0 development computer. However, when you start a VBCE 6.0 application for the custom platform by using the
Start menu, and clicking on
Run, the F5 key, the
Debug/Step Into menu, the F8 key, or the
Start toolbar button, the following error messages are displayed:
The platform manager could not connect to the device. This happens if the project type does not match the connected device, or if a required file in Windows CE Services, or the Platform SDK is missing or corrupt. [ErrorCode=0x80004018].
The device you are connected to is not compatible with the project type. Please check your device connection again, or choose the correct project type.
Clicking
OK may result in a second error message being displayed:
There is no support on this development computer for a project of this type. You may need to install an appropriate Platform SDK or reinstall Windows CE Toolkit for Visual Basic 5.0.
NOTE: This is
not a Platform Manager connection problem. The Windows CE remote tools, such as the Windows CE Remote Heap Walker, Windows CE Remote Process Viewer, Windows CE Remote Registry Editor, Windows CE Remote Spy, and Windows CE Remote Zoomin all work as expected.
NOTE: If running a VBCE application generates the preceding errors and the remote tools work without any problem, the incorrect project type is being used for a particular device. For example, these errors are generated if you attempt to run an HPC Pro project on a Palm-size PC. In VBCE, the project type
must match the device type.
CAUSE
PB 2.12 is generating an incorrect key for the custom VBCE SDK. A unique key (GUID) is created for every type of Windows CE platform. This key can be found in the CEPC's or custom device's registry under:
HKEY_LOCAL_computer\Windows CE Services\Platform
If this key does not match the key for the custom SDK, which is found under the "Platforms" key under the following key in the desktop development computer's registry:
HKEY_LOCAL_computer\SOFTWARE\Microsoft\Windows CE Tools\PlatformManager
then the preceding error messages are displayed.