Re: VS2005 compatibility



I'm sure I'm not the only developer who uses C++ objects in code that
runs under CE 5. So that is not the problem.

I _think_ the "not a valid ce program" shows up very early, and thus
indicates something wrong in the way you built the executable, rather
than in the code you used.

My hunch is you're doing something "silly", like using the wrong
settings. Is the actual device a Colibri PXA270? Are you sure that kit
works with VS 2005? Are you building for an actual device or an
emulator (I've barely even tried VS 2005, so maybe this is no longer
relevant)? Are you using the right version of VS 2005 (definitely not
the freebie, but I'm not sure beyond that).



On Sat, 2 Sep 2006 15:20:02 -0700, Long
<Long@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

I am using Colibri PXA270 Kit and SDK in CE5. I did not use MFC in the
examples, since MFC projects cannot even run on the target. In the IDE of
VS2005, it shows "Cannot start \Program Files\XXX" in debug mode. If I run
the exe directly in the target, it saids the exe is not a valid ce program.
It seems it is related to using objects in the code. Any operations on
object pointers or calling objects' methods will fail. Any idea?

"r_z_aret@xxxxxxxxxxxx" wrote:

On Fri, 1 Sep 2006 16:22:01 -0700, Long
<Long@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

I?m using Visual Studio 2005 C++ to write CE applications. Most of the

What SDK are you using?


simple programs are running OK. However, I find some my projects are
compiled successfully, but cannot run in the CE devices. For example, one of

What platform is on the devices?


my projects uses classes. I cannot use the new keyword to create an object
pointer, CMyClass* p = new CMyClass. Another one cannot use standard
template map, which is as simply as following,

#include "stdafx.h"
#include <windows.h>
#include <commctrl.h>
#include <map>

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
std::map<int, int> list;
list[0] = 0;
list[1] = 1;

return 0;
}

The compilation is no problem. It just cannot run on the target. Does
anyone have any idea?

A bit more details about the symptoms might help. What sort of error
messages do you see?

Are you using MFC? If so, are you sure the version of MFC you're
targeting matches the version of MFC on the devices?


-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com


-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com
.



Relevant Pages

  • Re: VS2005 compatibility
    ... I am using Colibri PXA270 Kit and SDK in CE5. ... since MFC projects cannot even run on the target. ... the exe directly in the target, it saids the exe is not a valid ce program. ... CMyClass* p = new CMyClass. ...
    (microsoft.public.windowsce.app.development)
  • Re: VS2005 compatibility
    ... It would be something like you're building the application to target the ... wrong processor type or something of that sort, not some sneaky setting ... What sort of error ... Are you using MFC? ...
    (microsoft.public.windowsce.app.development)
  • Re: how to link MFC application to wince 6.0 OS run-time image
    ... The EXE format from a desktop operating system will not run on a Windows CE ... If you are building the application to target Windows CE, ... shell necessary to build for MFC for the device. ...
    (microsoft.public.windowsce.app.development)
  • Re: MFC dialog and XPe
    ... What version of VS and MFC you are using? ... > can run and debug my program just fine on the XPe target. ...
    (microsoft.public.windowsxp.embedded)
  • Re: How do you handle build variants in VHDL?
    ... that means I have changed or eliminated the target of some identifier ... I have a project suite that I've been attempting to perfect for some time. ... I use records as far as possible when defining the ports of entities ... within the framework. ...
    (comp.arch.fpga)