惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Secure Thoughts
Security Latest
Security Latest
Simon Willison's Weblog
Simon Willison's Weblog
O
OpenAI News
GbyAI
GbyAI
L
LINUX DO - 最新话题
A
Arctic Wolf
T
Tor Project blog
G
GRAHAM CLULEY
I
InfoQ
博客园_首页
IT之家
IT之家
The Register - Security
The Register - Security
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Proofpoint News Feed
The GitHub Blog
The GitHub Blog
Blog — PlanetScale
Blog — PlanetScale
N
Netflix TechBlog - Medium
K
Kaspersky official blog
博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
U
Unit 42
PCI Perspectives
PCI Perspectives
量子位
P
Palo Alto Networks Blog
S
Securelist
T
Troy Hunt's Blog
博客园 - 【当耐特】
Recorded Future
Recorded Future
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
S
Security Affairs
Engineering at Meta
Engineering at Meta
T
The Blog of Author Tim Ferriss
博客园 - 聂微东
罗磊的独立博客
N
News and Events Feed by Topic
人人都是产品经理
人人都是产品经理
B
Blog RSS Feed
NISL@THU
NISL@THU
C
Cisco Blogs
T
Threatpost
有赞技术团队
有赞技术团队
Forbes - Security
Forbes - Security
Hugging Face - Blog
Hugging Face - Blog
Last Week in AI
Last Week in AI
T
The Exploit Database - CXSecurity.com
Cloudbric
Cloudbric
Cyberwarzone
Cyberwarzone
Google DeepMind News
Google DeepMind News
C
Cyber Attacks, Cyber Crime and Cyber Security

博客园 - 憋大招的cat

Java实现基于SOAP的XML文档网络传输及远程过程调用(RPC)-----(转) AJAX初探-XMLHTTP与服务端交互的小示例修正 SQL Server维护中Insert语句的生成工具 整理C# 二进制,十进制,十六进制 互转附加(BCC异或校验法) 转一个数据导入导出功能的帖子(转链) 通过控制按键来控制编辑框控件的小BUG - 憋大招的cat - 博客园 近期项目知识点总结之AJAX实用联动实例-(文1) AutoCompleteExtender控件使用示例以及BUG vs2005中利用自动生成数据集、ObjectDataSource、Gridview进行组合查询 SQL Server 2005 中附加只有mdf文件的数据库(修复置疑的数据库) 防止利用Xp_cmdshell进行漏洞攻击 SQL复制数据的强大命令集-BCP知识点之二 SQL复制数据的强大命令集-BCP知识点之一 Windows XP Home Edition安裝 IIS 的方法 收缩数据库出现的问题与解决方案 理解杀毒软件技术的意义 脱壳、虚拟、启发式介绍 WebForm中弹出页面关闭的同时返回值 c#.NET和VB.NET语法的比较 本地计算机上的MSSQLSERVER服务启动后又停止了。一些服务自动停止,如果它们没有什么可做的
Windows mobile应用程序开发环境搭建(C++)
憋大招的cat · 2010-10-13 · via 博客园 - 憋大招的cat

  最近在做个调用摄像头数据进行扫描识别的程序,本人愚钝,环境搭建都要半天时间,之前在windows桌面环境下就弄了半天,现在要将程序移植到wm下,移入之后根本不是想象的那么轻松,由于wmwin桌面操作系统的DirectShow SDK有很多差别,只能是重新搞了。

  几番周折后又下载了个操作camera的示例源码,是基于windows标准库来建立的,为了想尽快看到是否能成功调用摄像头,赶紧动手进行项目创建,我的wm SDK只有基于MFC的智能应用程序,只能先创建个空的C++项目了,这样的话项目比较“纯净”。

  项目创建完成,进行编译,本来就不寄予多大的希望一次性成功,出现以下错误:

错误 1       error C2146: syntax error : missing ';' before identifier 'ContextRecord'       F:\Program Files\Windows Mobile 6 SDK\PocketPC\include\ARMV4I\winnt.h          2978

错误 2       error C4430: missing type specifier - int assumed. Note: C++ does not support default-int     F:\Program Files\Windows Mobile 6 SDK\PocketPC\include\ARMV4I\winnt.h          2978

错误 3       error C4430: missing type specifier - int assumed. Note: C++ does not support default-int     F:\Program Files\Windows Mobile 6 SDK\PocketPC\include\ARMV4I\winnt.h          2978

错误 4       error C2146: syntax error : missing ';' before identifier 'LPCONTEXT' F:\Program Files\Windows Mobile 6 SDK\PocketPC\include\ARMV4I\winbase.h     1416

错误 5       error C4430: missing type specifier - int assumed. Note: C++ does not support default-int     F:\Program Files\Windows Mobile 6 SDK\PocketPC\include\ARMV4I\winbase.h     1416

错误 6       error C4430: missing type specifier - int assumed. Note: C++ does not support default-int     F:\Program Files\Windows Mobile 6 SDK\PocketPC\include\ARMV4I\winbase.h     1416

错误 7       error C2061: syntax error : identifier 'LPCONTEXT'    F:\Program Files\Windows Mobile 6 SDK\PocketPC\include\ARMV4I\winbase.h 2119

错误 8       error C4430: missing type specifier - int assumed. Note: C++ does not support default-int     F:\Program Files\Windows Mobile 6 SDK\PocketPC\include\ARMV4I\winbase.h     2127

错误 9       error C2143: syntax error : missing ',' before '*'       F:\Program Files\Windows Mobile 6 SDK\PocketPC\include\ARMV4I\winbase.h 2127

错误 10     error C2040: 'PCONTEXT' : '_CONTEXT *' differs in levels of indirection from 'int'         F:\Program Files\Windows Mobile 6 SDK\PocketPC\include\ARMV4I\excpt.h 65    

错误 11     error C2378: 'LPCONTEXT' : redefinition; symbol cannot be overloaded with a typedef F:\Program Files\Windows Mobile 6 SDK\PocketPC\include\ARMV4I\excpt.h 68

  从上面错误中大略可以看出,都是系统文件的问题,应该是环境的问题,所以在经过一些资料查找后,将解决方法罗列如下(首先wm SDK肯定是要提前安装好的):

    

  1. 当前项目右键-属性-平台修改为windows mobile x SDK

  2. 配置属性-C/C++-预处理器-预处理器定义栏里面:    NDEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;$(PLATFORMDEFINES);WINCE;_WINDOWS;_USRDLL;TEST_DLL_EXPORTS;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE

  3. 链接器-输入-附加依赖项:strmbase.lib strmiids.lib

  4. 链接器-系统-子系统栏-windows CE

  然后编译喽,如果还有错误应该跟环境问题没大的关系了,希望跟我有同样“遭遇”的新手们能尽快解决问题,由于此问题属于mobile的开发环境搭建中的基点,所以我故意将标题命名成如上。