Click here to Skip to main content
15,892,927 members
Home / Discussions / Mobile
   

Mobile

 
GeneralRe: WTL and WinCE Pin
TigerNinja_16-Feb-03 11:39
TigerNinja_16-Feb-03 11:39 
GeneralRe: WTL and WinCE Pin
João Paulo Figueira17-Feb-03 1:37
professionalJoão Paulo Figueira17-Feb-03 1:37 
GeneralPocketPc 2002 - Emulator Release ActiveX Control Pin
Raphael Amorim13-Feb-03 7:35
professionalRaphael Amorim13-Feb-03 7:35 
GeneralRe: PocketPc 2002 - Emulator Release ActiveX Control Pin
Ian Darling13-Feb-03 23:04
Ian Darling13-Feb-03 23:04 
GeneralProblems with OCXs and dlls Pin
llaceria11-Feb-03 22:02
llaceria11-Feb-03 22:02 
GeneralProtecting COM Component against copying Pin
Raphael Amorim11-Feb-03 9:39
professionalRaphael Amorim11-Feb-03 9:39 
Generalerror LNK2019 in eVC++ Pin
Raihan10-Feb-03 22:24
Raihan10-Feb-03 22:24 
GeneralRe: error LNK2019 in eVC++ Pin
Raphael Amorim11-Feb-03 10:23
professionalRaphael Amorim11-Feb-03 10:23 


BUG: LNK2019 When Building For Pocket PC Emulation






SYMPTOMS


When building an application for Pocket PC emulation that uses the Windows CE operating system 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.





Raphael Amorim Dantas Leite
VC++, VB, Java, .NET and eMbedded Programmer
GeneralWINPCAP problem! Pin
williamking10-Feb-03 7:11
williamking10-Feb-03 7:11 
GeneralRefreshing Pin
suresh_sathya4-Feb-03 21:28
suresh_sathya4-Feb-03 21:28 
GeneralRe: Refreshing Pin
João Paulo Figueira16-Feb-03 7:24
professionalJoão Paulo Figueira16-Feb-03 7:24 
QuestionHow to change menu caption Pin
Ortie2-Feb-03 2:03
Ortie2-Feb-03 2:03 
Question"The Intel 80486 CPU does not support?? Pin
Raihan1-Feb-03 23:39
Raihan1-Feb-03 23:39 
AnswerRe: "The Intel 80486 CPU does not support?? Pin
Ian Darling4-Feb-03 4:53
Ian Darling4-Feb-03 4:53 
GeneralNewcomer Pin
dlhson21-Feb-03 6:03
dlhson21-Feb-03 6:03 
GeneralRe: Newcomer Pin
Ian Darling4-Feb-03 4:51
Ian Darling4-Feb-03 4:51 
GeneralReading INI File? In eVC++ Pin
anju30-Jan-03 21:26
anju30-Jan-03 21:26 
GeneralRe: Reading INI File? In eVC++ Pin
Daniel Strigl30-Jan-03 23:34
Daniel Strigl30-Jan-03 23:34 
GeneralRe: Reading INI File? In eVC++ Pin
anju2-Feb-03 21:29
anju2-Feb-03 21:29 
GeneralRe: Reading INI File? In eVC++ Pin
Daniel Strigl2-Feb-03 21:39
Daniel Strigl2-Feb-03 21:39 
GeneralRe: Reading INI File? In eVC++ Pin
Anonymous3-Feb-03 21:26
Anonymous3-Feb-03 21:26 
GeneralRe: Reading INI File? In eVC++ Pin
Daniel Strigl4-Feb-03 4:00
Daniel Strigl4-Feb-03 4:00 
GeneralRe: Reading INI File? In eVC++ Pin
anju4-Feb-03 21:41
anju4-Feb-03 21:41 
GeneralRe: Reading INI File? In eVC++ Pin
Daniel Strigl4-Feb-03 22:59
Daniel Strigl4-Feb-03 22:59 
GeneralRe: Reading INI File? In eVC++ Pin
Raphael Amorim11-Feb-03 10:31
professionalRaphael Amorim11-Feb-03 10:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.