Sorry,在msdn中我找不error code LNK2019
解决方案 »
- 求<<Visual C++开发基于SNMP网络管理软件>>的源代码
- MFC单选框关联变量的值无法递增
- 求助:关于push Button的问题
- 播放器的快进怎么实现的
- 请问MFC怎么访问URL
- 在哪能下到msdn2004?
- 创建服务时CreateService只有服务的名称,显示名称,那服务的描述用程序怎么设置?
- 高分求pop3收邮件的程序源代码,要求能收附件
- 请问,自定义的BUTTON怎么实现CLICK后的响应??
- 各位大虾救命!!!!!!!!!!!!!!!!!!!!!!!!!1
- 用ATL开发组件,还是用C#,VB开发?两种那一个好?
- 向各位老师请教:如何用CSocketFile、CArchive进行文件传输?
==============================================
RESOLUTION
Use one of the following workarounds:
Add the /Gz compiler switch to the configuration's project settings when building for Pocket PC emulation.
-or-
If the first workaround prevents other functions/libraries from linking in your project, then modify the Windows CE database function declarations in the Windbase.h file. For example, for the error in the "Symptoms" section, change the following declaration
BOOL CeDeleteDatabase (CEOID oid);
to read:
BOOL WINAPI CeDeleteDatabase (CEOID oid);
你的msdn要更新了,这有个在线版本:
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q260567TrampTramp(流浪汉):
既然ms承认只是一个bug而且还告诉了两种办法去workaround, 怎么上面提供的workaround不行吗???
--------------------------------------------------------------------------------
The information in this article applies to:Microsoft Windows CE eMbedded Visual C++, version 3.0--------------------------------------------------------------------------------
SYMPTOMS
When building an application for Pocket PC emulation that uses the Windows CE database functions, errors similar to the following may be encountered: <filename>.obj : error LNK2019: unresolved external symbol _CeDeleteDatabase referenced in function <function> CAUSE
These operating system functions use the _stdcall calling convention, but the compiler is declaring them as _cdecl. This problem occurs with the Windows CE Platform SDK for Pocket PC because the functions are incorrectly declared in the Windbase.h file without a linkage type. RESOLUTION
Use one of the following workarounds: Add the /Gz compiler switch to the configuration's project settings when building for Pocket PC emulation.-or-
If the first workaround prevents other functions/libraries from linking in your project, then modify the Windows CE database function declarations in the Windbase.h file. For example, for the error in the "Symptoms" section, change the following declaration BOOL CeDeleteDatabase (CEOID oid);
to read:BOOL WINAPI CeDeleteDatabase (CEOID oid); STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.MORE INFORMATION
This bug affects the following functions: CeFindFirstDatabase
CeFindNextDatabase
CeCreateDatabase
CeSetDatabaseInfo
CeOpenDatabase
CeDeleteDatabase
CeReadRecordProps
CeFindFirstDatabaseEx
CeFindNextDatabaseEx
CeCreateDatabaseEx
CeSetDatabaseInfoEx
CeOpenDatabaseEx
CeDeleteDatabaseEx
CeSeekDatabase
CeDeleteRecord
CeReadRecordPropsEx
CeWriteRecordProps
CeMountDBVol
CeUnmountDBVol
CeFlushDBVol
CeEnumDBVolumes
CeFreeNotification
CeOidGetInfoEx
CeOidGetInfo Additional query words: Keywords : kbDSupport kbGrpETK
Issue type : kbbug
Technology : kbvcSearch
Last Reviewed: July 12, 2000
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.
--------------------------------------------------------------------------------
Send feedback to MSDN.Look here for MSDN Online resources.