EDB数据库使用问题

u010983542 2013-11-02 12:12:16
1>.\DBStudent.cpp(68) : error C2065: 'CEPROPSPEC' : undeclared identifier
1>.\DBStudent.cpp(68) : error C2146: syntax error : missing ';' before identifier 'dbPropInfo'
1>.\DBStudent.cpp(68) : error C2065: 'dbPropInfo' : undeclared identifier
1>.\DBStudent.cpp(70) : error C2228: left of '.wVersion' must have class/struct/union
1>.\DBStudent.cpp(71) : error C2228: left of '.propid' must have class/struct/union
1>.\DBStudent.cpp(72) : error C2228: left of '.pwszPropName' must have class/struct/union
1>.\DBStudent.cpp(73) : error C2228: left of '.cchPropName' must have class/struct/union
1>.\DBStudent.cpp(73) : error C2228: left of '.pwszPropName' must have class/struct/union
1>.\DBStudent.cpp(74) : error C2228: left of '.dwFlags' must have class/struct/union
1>.\DBStudent.cpp(76) : error C2228: left of '.wVersion' must have class/struct/union
1>.\DBStudent.cpp(77) : error C2228: left of '.propid' must have class/struct/union
1>.\DBStudent.cpp(78) : error C2228: left of '.pwszPropName' must have class/struct/union
1>.\DBStudent.cpp(79) : error C2228: left of '.cchPropName' must have class/struct/union
1>.\DBStudent.cpp(79) : error C2228: left of '.pwszPropName' must have class/struct/union
1>.\DBStudent.cpp(80) : error C2228: left of '.dwFlags' must have class/struct/union
1>.\DBStudent.cpp(82) : error C2228: left of '.wVersion' must have class/struct/union
1>.\DBStudent.cpp(83) : error C2228: left of '.propid' must have class/struct/union
1>.\DBStudent.cpp(84) : error C2228: left of '.pwszPropName' must have class/struct/union
1>.\DBStudent.cpp(85) : error C2228: left of '.cchPropName' must have class/struct/union
1>.\DBStudent.cpp(85) : error C2228: left of '.pwszPropName' must have class/struct/union
1>.\DBStudent.cpp(86) : error C2228: left of '.dwFlags' must have class/struct/union
1>.\DBStudent.cpp(88) : error C2228: left of '.wVersion' must have class/struct/union
1>.\DBStudent.cpp(89) : error C2228: left of '.propid' must have class/struct/union
1>.\DBStudent.cpp(90) : error C2228: left of '.pwszPropName' must have class/struct/union
1>.\DBStudent.cpp(91) : error C2228: left of '.cchPropName' must have class/struct/union
1>.\DBStudent.cpp(91) : error C2228: left of '.pwszPropName' must have class/struct/union
1>.\DBStudent.cpp(92) : error C2228: left of '.dwFlags' must have class/struct/union
1>.\DBStudent.cpp(95) : error C2228: left of '.wVersion' must have class/struct/union
1>.\DBStudent.cpp(96) : error C2228: left of '.propid' must have class/struct/union
1>.\DBStudent.cpp(96) : error C2065: 'CEVT_STREAM' : undeclared identifier
1>.\DBStudent.cpp(97) : error C2228: left of '.pwszPropName' must have class/struct/union
1>.\DBStudent.cpp(98) : error C2228: left of '.cchPropName' must have class/struct/union
1>.\DBStudent.cpp(98) : error C2228: left of '.pwszPropName' must have class/struct/union
1>.\DBStudent.cpp(99) : error C2228: left of '.dwFlags' must have class/struct/union
1>.\DBStudent.cpp(102) : error C3861: 'CeCreateDatabaseWithProps': identifier not found
1>.\DBStudent.cpp(164) : error C3861: 'CeMountDBVolEx': identifier not found
1>.\DBStudent.cpp(171) : error C3861: 'CeCreateSession': identifier not found
1>.\DBStudent.cpp(174) : error C3861: 'CeOpenDatabaseInSession': identifier not found
1>.\DBStudent.cpp(195) : error C3861: 'CeOpenDatabaseInSession': identifier not found
1>.\DBStudent.cpp(362) : error C3861: 'CeOpenStream': identifier not found
1>.\DBStudent.cpp(371) : error C3861: 'CeStreamWrite': identifier not found
1>.\DBStudent.cpp(378) : error C3861: 'CeStreamSaveChanges': identifier not found
1>.\DBStudent.cpp(482) : error C3861: 'CeOpenStream': identifier not found
1>.\DBStudent.cpp(491) : error C3861: 'CeStreamSetSize': identifier not found
1>.\DBStudent.cpp(501) : error C3861: 'CeStreamWrite': identifier not found
1>.\DBStudent.cpp(509) : error C3861: 'CeStreamSaveChanges': identifier not found
...全文
645 15 打赏 收藏 转发到动态 举报
写回复
用AI写文章
15 条回复
切换为时间正序
请发表友善的回复…
发表回复
u010983542 2013-11-06
  • 打赏
  • 举报
回复
还有一个问题我想问一下,就是自己添加的头文件和库文件(头文件windbase_edb.h和库文件coredll.lib都是自己从网上下载的),是否要加到工程文件夹下呢,如果不加到工程文件夹下,那怎么引用它们呢
u010983542 2013-11-06
  • 打赏
  • 举报
回复
好的,谢谢你啊
91program 2013-11-06
  • 打赏
  • 举报
回复
换个 SDK 试试吧,网上有很多的 SDK 可以下载的。
91program 2013-11-06
  • 打赏
  • 举报
回复
引用 8 楼 u010983542 的回复:
TE64140 Board ARMV4I 那我是用VS2005编译的啊,都没下载到开发板上,跟Wince系统有啥关系列 要有关系的话那也是跟SDK有关的啊
你说的很对,是和 SDK 有关系。SDK 是定制 WinCE 系统成功后,按定制的组件生成的,所以和 WinCE 有很大的关系。
91program 2013-11-06
  • 打赏
  • 举报
回复
引用 12 楼 u010983542 的回复:
应该是SDK的问题,因为之前我用了windows mobile 5.0的SDK编译没有问题. 但是现在我想用TE64140 Board ARMV4I这个SDK(这个SDK编译有链接错误问题,就是我上面说的那个错误).因为 要下载到我的OK6410开发板上的.您说这个问题咋解决啊?
只要是 ARMV4I 的 SDK,就可以的,没有必要一定要 OK6410 板子的 SDK。
u010983542 2013-11-06
  • 打赏
  • 举报
回复
应该是SDK的问题,因为之前我用了windows mobile 5.0的SDK编译没有问题. 但是现在我想用TE64140 Board ARMV4I这个SDK(这个SDK编译有链接错误问题,就是我上面说的那个错误).因为 要下载到我的OK6410开发板上的.您说这个问题咋解决啊?
u010983542 2013-11-05
  • 打赏
  • 举报
回复
楼主,你方便留一下你的及时聊天工具嘛,QQ,或者邮箱都行,我加你
u010983542 2013-11-05
  • 打赏
  • 举报
回复
TE64140 Board ARMV4I 那我是用VS2005编译的啊,都没下载到开发板上,跟Wince系统有啥关系列 要有关系的话那也是跟SDK有关的啊
91program 2013-11-05
  • 打赏
  • 举报
回复
库文件包含了? 或,定制系统的功能,是否选了 EDB 相关的组件?
91program 2013-11-05
  • 打赏
  • 举报
回复
引用 6 楼 u010983542 的回复:
库文件包含了 coredll.lib 什么是定制的系统功能,还有EDB组件?我在其他的论坛上别人也是这么说. 方便的话,加我QQ吧,542021633
WinCE 系统是可定制的,系统中有什么功能是在定制时确认的。 如果定制系统时没有包含 EDB 的组件,在 coredll.lib 中就没有 EDB 相关的接口。 LZ,你使用的是什么 SDK?
u010983542 2013-11-05
  • 打赏
  • 举报
回复
库文件包含了 coredll.lib 什么是定制的系统功能,还有EDB组件?我在其他的论坛上别人也是这么说. 方便的话,加我QQ吧,542021633
u010983542 2013-11-04
  • 打赏
  • 举报
回复
但是现在新问题又来了,就是编译时链接有错误,您能帮我看看是什么原因么 error LNK2019: 无法解析的外部符号 CeCreateDatabaseWithProps,该符号在函数 "private: int __cdecl CUserInfoDB::CreateUserInfoDatabase(struct _CEGUID *,wchar_t const * const)" (?CreateUserInfoDatabase@CUserInfoDB@@AAAHPAU_CEGUID@@QB_W@Z) 中被引用 1>UserInfoDB.obj : error LNK2019: 无法解析的外部符号 CeOpenDatabaseInSession,该符号在函数 "public: int __cdecl CUserInfoDB::OpenUserInfoDatabase(wchar_t const * const,wchar_t const * const)" (?OpenUserInfoDatabase@CUserInfoDB@@QAAHQB_W0@Z) 中被引用 1>UserInfoDB.obj : error LNK2019: 无法解析的外部符号 CeCreateSession,该符号在函数 "public: int __cdecl CUserInfoDB::OpenUserInfoDatabase(wchar_t const * const,wchar_t const * const)" (?OpenUserInfoDatabase@CUserInfoDB@@QAAHQB_W0@Z) 中被引用 1>TE6410 Board (ARMV4I)\Debug\MyGPS.exe : fatal error LNK1120: 3 个无法解析的外部命令
u010983542 2013-11-04
  • 打赏
  • 举报
回复
你好,这个问题已经解决了,是缺少 #include <windbase.h> #pragma comment(lib, "coredll.lib") extern "C" { #include "windbase_edb.h" }; 头文件,和库文件的问题
91program 2013-11-02
  • 打赏
  • 举报
回复
LZ,建议你说说自己的环境,最好是能提供代码分析。 只给错误,简单的判断是头文件和库文件没有包含。

19,500

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 嵌入开发(WinCE)
社区管理员
  • 嵌入开发(WinCE)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧