在VS2005下生成创建运行一个WinCE6.0平台(二)(转摘)

本文指导如何使用VS2005创建并配置一个WinCE6.0平台的OS设计项目,包括选择合适的模板、定制组件、设置构建选项等步骤。
在VS2005下生成创建运行一个WinCE6.0平台(二)Create an OS design
2008-09-30 19:17

Create an OS design

1. Select File | New | Project… from the Visual Studio menu.

2. Select the Platform Builder for CE 6.0 project type in the New Project dialog.

3. Select OS Design under Visual Studio installed templates.

4. Type TrainingOSDesign in the Name field. The solution name will default to TrainingOSDesign as well.

5. Click OK. Visual Studio will launch the Windows Embedded CE 6.0 OS Design Wizard.

6. Click Next.

7. In the list of available BSPs, select TrainingBSP: ARMV4I and click Next.

8. From the list of available design templates, select PDA Device and click Next.

9. From the list of available design variants, select Mobile Handheld and click Next. The Applications & Media configuration window will appear.

10. Deselect .NET Compact Framework 2.0 and ActiveSync and click Next. The Networking & Communications configuration window will appear.

11. Deselect TCP/IPv6 Support.

12. Expand the Personal Area Network (PAN) node, and deselect Bluetooth.

13. Click Next, and then Finish to complete the Windows Embedded CE 6.0 Design Wizard.

14. Click Acknowledge on the Catalog Item Notification dialog.

15. Click on the Catalog Items View tab to display the Catalog.(视图==》其它窗口)

16. Click on the Filter drop down box in the upper left hand corner. Observe the different filtering options. The filter controls the items that are displayed in the catalog. Ensure that All Catalog Items in Catalog is selected.

17. Observe the selection boxes and icons in the catalog. Selection boxes with a green check mark indicate an item that was specifically selected as a part of the OS design. Selection boxes with a green square indicate an item that was brought in to the OS design as a dependency. Selection boxes that are not marked indicate items that are not included in the OS design but are available to be added.

18. Locate a catalog item with a green square in its checkbox.

19. Right click on the catalog item and choose Reasons for Inclusion of Item. The Remove Dependent Catalog Item dialog box displays the catalog items you

20. Close the Remove Dependent Catalog Item dialog box.

21. Expand the Core OS | CEBASE | Applications – End User | Active Sync node in the catalog.

22. Right click on Active Sync system cpl(此项有两处,path1:$(_WINCEROOT)/public/DataSync/oak/ctlpanel/system;path2:$(_WINCEROOT)/public/DataSync/oak/ctlpanel) and select Display In Solution View. The view will change to the Solution Explorer tab(解决方案资源浏览器). The subproject containing the Active Sync component is displayed. This is a great way to navigate the source code that is available as part of Windows Embedded CE 6.0.

23. Select the Catalog Items View tab to display the OS design catalog.

24. Enter the text Internet Explorer 6.0 Sample into the search text box to the right of the filter button. Press Enter or click the green arrow. The path Core OS | CEBASE | Internet Client Services | Browser Application | Internet Explorer 6.0 for Windows Embedded CE – Standard Components should be expanded.

25. Select the Internet Explorer 6.0 Sample Browser catalog item.

26. Enter the text ipconfig into the Search box and press Enter. The Network Utilities (IpConfig, Ping, Route) will be highlighted.(此时提示一对话框,无碍)



27. Add the networking utilities to your design by selecting the component.

28. Enter the text wceload into the Search box and press Enter. The Cab File Installer /Uninstaller component will be highlighted.


29. Add the Cab File Installer /Uninstaller utility to your OS design.

30. Enter the text sysgen_dotnetv2_support into the Search box and press Enter. The OS Dependencies for .NET Compact Framework 2.0 component will be highlighted.

31. Add the OS Dependencies for .NET Compact Framework 2.0 to your OS design.

32. Select Build | Configuration Manager… from the Visual Studio menu to bring up the Configuration Manager dialog box.

33. Select TrainingBSP ARMV4I Release from the Active solution configuration drop down box. Close the dialog box.

34. Select the Solution Explorer view by selecting the Solution Explorer tab.

35. In the Solution Explorer window, right click on the TrainingOSDesign project and choose Properties. This will launch the Property Pages dialog for your OS design.

36. Expand the Configuration Properties tree and click on the Build Options node.

37. Ensure the following build options are set:
· Enable eboot space in memory
· Enable kernel debugger
· Enable KITL
· Enable profiling

38. Select OK

39. Select Build | Build TrainingOSDesign from the Visual Studio menu.

40. Select Target | Connectivity Options… from the Visual Studio menu. The Target Device Connectivity Options dialog will appear showing the Kernel Service Map configuration for the CE Device named connection.

41. Select Device Emulator (DMA) from the Download drop down box.

42. Select Device Emulator (DMA) from the Transport drop down box.

43. Select KdStub from the Debugger drop down box.

44. Next to the Download drop down menu click Settings.

45. Select the Display tab in the Emulator Properties dialog box.

46. Change the Screen width to 640 pixels and the Screen height to 480 pixels.

47. Select the Network tab in the Emulator Properties dialog box.

48. Check the box beside Enable NE2000…

49. Click on OK

50. Select Apply to save the new device configuration.

51. Select Close to close the dialog box.

52. Select Target | Attach Device from the Visual Studio menu.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值