您的位置:首页 > 其它

Windows Mobile (EVC)开发手记2

2005-05-17 17:19 225 查看
3.关于spdps.exe /create /device (only do this once)
一般来讲,一台手机使用上述命令创造一个证书后,这台手机就与注册的这台电机绑定了,我曾经试过先在台式机上使用上述命令,然后又在我的本本上使用了一次,结果二者都不能运行了,害的我只好将手机恢复到出厂状态。主要原因在于Activesync在第一次与手机相连时就会说明:"with this computer"
[随便写的,可能不对,还需要再验证]
一旦创建一个证书之后,还可以使用这个命令查看选择已经注册的证书:spdps.exe / device

4.写好之后的程序的安装,可以参照这篇文章:
Windows Mobile-based Smartphone Applications Deployment Demystified

5.How do i connect smartphone 2003 emulator with PC using active syn

Using ActiveSync Over Virtual Switch

Configure the emulator to use Virtual Switch. For more information, see Changing Ethernet Support in the Emulator .
Start the emulator.
Open the SDK command prompt, found under: Start->All Programs->Microsoft Smartphone SDK->Smartphone SDK.
Run emuascfg specifying the /SP flag for the Smartphone emulator. Press Enter, and wait until emuascfg has completed.
Close the command window when it's finished.
Confirm that ActiveSync has Allow Network (Ethernet) and Remote Access Service (RAS) server connection with this desktop computer enabled. Find this under ActiveSync's Connection Settings dialog.
Switch to the emulator.
Open ActiveSync in the emulator.
Choose "Sync".

The emulator will then connect to the desktop via the ethernet.

Disabling Ethernet Support in the Emulator

When developing an application that will be deployed on Smartphone devices that might not be configured to form a network, turning off Ethernet support will enable application testing in a disconnected state. Applications that are running in the emulator cannot be debugged when Ethernet support is disabled.

To disable Ethernet support in the emulator

Shut down the emulator if it is running.
In eMbedded Visual C++, on the Tools menu, click Configure Platform Manager.
In the device list, click Smartphone Emulator, and then click Properties.
Click the Configure button to the right of the Startup Server drop-down list box.
Select the desired networking option.
Click OK to close the Emulation Configuration Settings dialog box.
Click TEST to restart the emulator.
Wait for the Testing Device Connection dialog to show an OK button.
Click OK to close the Testing Device Connection dialog box.
Click OK to close Device Properties dialog box.
Click OK to close the Windows CE Platform Manager Configuration dialog box.

There are three emulator-networking options available: disabled, network address translation, and virtual switched. These are the capabilities of each of the options:

Disabled

The network card is not available to the emulator.

Network Address Translation

Uses the same IP as the host machine.
Only allows commands when started by the emulator.
The emulator sends out requests for information, and it can receive replies to its own requests. However, it cannot receive unsolicited information.

Virtual Switched

Gives the device an IP.
Uses DHCP to get an IP.
The device shows up on the network at the IP.
Is available for incoming and outgoing messages.

[b]Note[/b] This option is available in the eMBedded Visual C 4.0 emulator only. Visual Studio .NET 2003 does not support virtual switched.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: