用VS2005在WinCE6.0创建一个应用程序(转摘)

 

用VS2005在WinCE6.0创建一个应用程序Create and configure an application subproject
2008-09-30 22:11

Create the subproject

1. Click on the Solution Explorer tab to display the Solution Explorer.

2. Locate the Subprojects node just below the TrainingOSDesign project in the Solution Explorer window.

3. Right click on the Subprojects node and select Add New Subproject. The Windows Embedded CE Subproject Wizard will appear.

4. Select the WCE Application template.

5. Type MyHelloWorldApp in the Subproject name text box.

6. Click Next.

7. Select A typical “Hello World” application and click Finish. The wizard will create the files necessary for the typical Hello World application subproject.

8. Right click on the TrainingOSDesign project in the Solution Explorer and select Properties.

9. Expand the Configuration Properties node and select Subproject Image Settings.

10. Double click the MyHelloWorldApp entry in the Project settings in run-time image box. The Edit Run-Time Image Settings dialog box will appear.

11. Select the Exclude from image and Always build and link as debug check boxes, and click OK.

12. Click OK on the TrainingOSDesign Property Pages dialog.

13. Select Build | Targeted Build Settings from the Visual Studio menu.

14. Ensure that Make Run-Time Image After Building does NOT have a check mark beside it. If it does, de-selected it clicking on the menu item.

15. Locate the MyHelloWorldApp subproject in the Subprojects node of the Solution Explorer.

16. Expand the Source files node of the MyHelloWorldApp subproject.

17. Double click the MyHelloWorldApp.cpp file. The file will load in the Visual Studio editor.

18. Locate the WndProc() function near the bottom of the file.

19. Click on the DrawText() function call and press F9 to set a breakpoint there.

20. Right click the MyHelloWorldApp subproject in the Solution Explorer and select Build. The application will build and should complete with 0 errors and 0 warnings in the build output window.

21. Select Target | Run Programs… from the Visual Studio menu.

22. Select MyHelloWorldApp.exe from the Available Programs box, and click on Run.

23. The kernel debugger will halt execution at the breakpoint we just set.

24. Press F10 or select Debug | Step Over from the Visual Studio menu.
Look at the Device Emulator output again. Notice that the Hello World! string has
now been printed on the display.

25. Press F5 or select Debug | Start to allow Device Emulator to continue running.

26. Select Debug | Windows | Processes to bring up the Process window. This window shows all processes running on the Device Emulator.

27. Right click on the myhelloworldapp.exe process and select Terminate to kill the process.

28. Select Yes to verify you really meant what you said. The Process window will refresh after a short delay and the application will be gone.

29. Close the Process window by clicking on the X in the upper right hand corner.

Congratulations! You have successfully created, built and tested a simple Windows Embedded CE 6.0 application on your OS design. We will follow a similar methodology in future labs.

【6层】一字型框架办公楼(含建筑结构图、计算书) 1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。 1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。 1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值