Sorry,在msdn中我找不error code LNK2019

解决方案 »

  1.   

    you are right,but if you search it in http://www.microsoft.com you will find it! could you help me?
    ==============================================
    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);
      

  2.   

    to prometheusphinx(白日梦):
    你的msdn要更新了,这有个在线版本:
    http://support.microsoft.com/default.aspx?scid=kb;en-us;Q260567TrampTramp(流浪汉):
    既然ms承认只是一个bug而且还告诉了两种办法去workaround, 怎么上面提供的workaround不行吗???
      

  3.   

    网上那个kb不完整,我有一个全一点的:BUG: LNK2019 with Database Functions for Pocket PC Emulation Q260567
    --------------------------------------------------------------------------------
    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
    &copy; 2001 Microsoft Corporation. All rights reserved. Terms of Use.
     --------------------------------------------------------------------------------
    Send feedback to MSDN.Look here for MSDN Online resources.