Re: VS2005 compatibility
- From: "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT com>
- Date: Tue, 5 Sep 2006 08:22:15 -0700
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
buried five layers deep in the project properties. You *did* build it as a
Smart Device project, not a desktop project, right? If it's a desktop EXE,
it's *not* a valid Windows CE executable.
Paul T.
"Long" <Long@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:E3D1B65E-2C86-4755-AFFE-7921F1908B36@xxxxxxxxxxxxxxxx
Thanks Robert. That is what I am thinking the settings of VS2005 C++ may
be
the cause of my problem. There is no problem for the identity of my
device,
Colibri PXA270, since the image I built with their BSP works perfectly.
The
only strange thing is there is no problem to call the APIs in C style,
i.e.
Registry APIs. But when I wrap around those APIs in a class like the
class
CReg dose in the PB's source, it wouldn't work.
"r_z_aret@xxxxxxxxxxxx" wrote:
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
.
- Follow-Ups:
- Re: VS2005 compatibility
- From: Long
- Re: VS2005 compatibility
- References:
- Re: VS2005 compatibility
- From: r_z_aret
- Re: VS2005 compatibility
- From: Long
- Re: VS2005 compatibility
- From: r_z_aret
- Re: VS2005 compatibility
- From: Long
- Re: VS2005 compatibility
- Prev by Date: Re: What is the structure of a WinCE dll?
- Next by Date: Re: Analyse audio peaks on a PocketPC
- Previous by thread: Re: VS2005 compatibility
- Next by thread: Re: VS2005 compatibility
- Index(es):
Relevant Pages
|
Loading