Resource compiler error with Pocket PC 2003

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Joe (joseph.b.martin_at_baesystems.com)
Date: 07/01/04


Date: 30 Jun 2004 19:03:11 -0700

Hey all,
   I'm trying to compile an embedded Visual C++ project for the Pocket
PC 2003, which uses Windows CE.

   Whenever I try to compile the resource (.rc) file, I get the
following error:

   "C:\Program Files\Windows CE tools\wce420\POCKET PC
2003\Include\emulator/new (26) RC2188 #error : This header requires
a C++ compiler"

   The file "...Include\emulator/new " has a preprocessor directive
that fires this error under the conditon "#ifndef __cplusplus".

   It makes sense that the resource compiler doesn't have __cplusplus
defined (since it's not a C++ compiler). What I don't understand is
why the compiler is including the "...Include\emulator/new " file. It
has to do with memory allocation, not with compilation of resources.

   I can't compile my project because of this issue.

   Also of note: when I change the configuration to "STANDARD SDK"
instead of "POCKET PC 2003," the problem disappears.

   Can anyone help? There's nothing I've found that helps me out with
this problem.

Thanks so much,
Joe



Relevant Pages

  • Re: using PlaySound within a dll
    ... > I have a dll with a module, class and resource file. ... PlaySound has the capability to play a .wav file directly from the ... Compile your DLL. ...
    (microsoft.public.vb.winapi)
  • Re: Precompiled headers on C
    ... see how using C++ for the part of my program that manages the resource data ... No offence, but I really wish people would ask the question that has been ... header error when I try to compile it now. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Precompiled headers on C
    ... see how using C++ for the part of my program that manages the resource data ... No offence, but I really wish people would ask the question that has been ... header error when I try to compile it now. ...
    (microsoft.public.vc.language)
  • Re: is there a way to set the version information from the program
    ... swezeyt wrote: ... Since I have to set these #defines when I compile the program anyway ... Currently for each version I have to go in and manually change it in the resource Script by hand using the resource editor. ... I usually create a version.h header file in which I tags to represent all version-related information, such as the release version in both a string and any numeric formats required. ...
    (microsoft.public.vc.language)
  • Re: compile hta file
    ... If you google up HTA ... into a "resource" block, and then compiling that into an exe or dll. ... executables which contains stuff like text resources (which can be ... testing this article but can't get it to compile an ".hta" file. ...
    (microsoft.public.scripting.vbscript)