作者:ARM-WinCE
在Platform Builder创建一个WinCE的工程,然后在”Solution Explorer”窗口中可以看到”Subprojects”项,主要用于在以有的WinCE工程中创建一些简单的应用程序工程。在这里创建的工程最后会被编译并打包到NK.bin当中。在WinCE启动以后,可以在Windows目录下面找到相应的执行文件。
创建或者添加subproejct,可以右击Subprojects,弹出如下窗口:
选择”Add New Subproject…”以后,就跟着向导一步步走下去,目前Subprojects支持如下工程:
WCE Application
WCE Console Application
WCE Dynamic-Link Library
WCE Static Library
WCE TUX Dynamic-Link Library
这里不介绍每一种工程的意思了,相信开发应用程序的人都明白。工程创建完成后,就可以编程了,常遇到的一个问题就是要链接所需的库文件,可以右击工程名称,然后选择”Properties”,在弹出的对话框中选择”Link”,然后在”Additional Libraries”中添加要链接的库,如图:
为了方便,我喜欢直接将所需库文件拷贝到该工程的目录下面,然后在这里直接添加一个库文件名就可以了,不需要输入很长的路径。在”Additional Libraries”中,可以添加多个库,每个库之间通过空格链接,例如:
$(_PROJECTROOT)\cesysgen\sdk\lib\$(_CPUINDPATH)\coredll.lib Ws2.lib Mgprint.lib
这里除了链接默认的coredll.lib库以外,还添加了Ws2.lib和Mgprint.lib两个库。接下来在工程中包含相应的头文件,就可以调用函数了。
在Subprojects中,我们可以创建多个工程,并且设置工程的编译顺序,右击”Subprojects”,在弹出的对话框中选择”Set Subproject Build Order…”,如图:
我最近写过一个简单的subprojects,主要是为了调试用,由于是纯应用程序,所以在Emulator环境下就可以运行了,结果还遇到了个小问题,就是想在PC和Emulator之间传文件,或者说共享文件,当然已经解决了,这里也顺便提一下,以后忘了,还有资料可查。
要在PC和Emulator之间共享文件,需要在Platform Builder中对Emulator进行设置,在Platform Builder工程菜单中选择Target->Connectivity Options…以后会看到弹出对话框,在”Downloads”的下拉菜单中选择Device Emulator(DMA),然后点击”Settings”按钮,就会弹出Emulator的设置对话框了。在”General”页的最下面可以看到”Shared Folder”,在这里输入要共享的文件夹路径就可以了,别忘了确认该文件夹在PC上是可读写的,否则会有问题。
当WinCE在Emulator中运行以后,就可以看到一个叫”Storage Card”的文件夹,可以通过读写这个文件夹来与PC之间共享文件,如图:
分享到:
相关推荐
teamcity-subproject-test
This file (the project file) contains information at the project level and is used to build a single project or subproject.
This file (the project file) contains information at the project level and used to build a single project or subproject.
This file (the project file) contains information at the project level and is used to build a single project or subproject.
This file (the project file) contains information at the project level and is used to build a single project or subproject.
子项目-maven-插件
meson-subproject-catch2:单元测试框架catch2的介子子项目
04★Git入门★第一次提交_git_commit
is used to build a single project or subproject. Other users can share the project (.vcp) file, but they should export the makefiles locally. Other standard files: StdAfx.h, StdAfx.cpp These...
Gradle子项目中的注释处理器 Gradle子项目中的注释处理器示例 参见 。
Firebase-位置-仿真-MandT子项目
最近开始学习TS,想要将每天学习时使用的小demo统一保存起来,但是每次都创建一模一样的目录结构感觉太麻烦了,刚好朋友跟我说了一下他最近做了一个简单的脚手架,于是我也就想着查查资料自己捣鼓一个出来。...
Java 10模块化Springboot 2 Gradle... 以下内容应添加到subproject部分的根gradle文件中。 // required for modules afterEvaluate { compileJava { inputs . property( " moduleName " , moduleName) doFirst {
This is also the subproject of react-native-navigation-hybrid. Download demo apk 特性 一行代码实现 Fragment 嵌套,一次性构建好嵌套层级 一行代码实现 Fragment 跳转,不再需要写一大堆操作 fragment 的代码...
Keras development and related subproject, very powerful framework.
SDL-cmake-子项目测试 简单的测试项目,以验证对SDL的CMake配置所做的建议更改是否有效
PlayFramework 2.3 (Scala):使用子项目(包括另一个 Play 应用程序作为子项目) 如何在 PlayFramework 2.3 (Scala) 中创建子项目(模块)以及它们之间的依赖关系的示例。 需要注意的事项: 在 Root 项目中build.sbt...
JMeter is a Java-based tool for load testing client-server applications. Stefano Mazzocchi originally wrote it to test the performance of Apache JServ (the... It has since become a subproject of Jakarta.