how to compile project for CE 5.0

O

Okette

Hi,

i use vs2005. i have created a project for CD 5.0
When i generate an .exe that i can find it in Debug Directory, the windows
CE says 'it is not a window CE program'

How can i generate a .exe for CE 5.0 ?

Thanks
 
E

Erwin Zwart

What do you mean with "created a project for CD 5.0"?

Did you install the correct SDK for your device? or against which SDK are
you building your project?
Did you create a "smart device" project?
What is the target device (Pocket PC, Smartphone, Windows CE device)?

Erwin Zwart
 
O

Okette

My target Device is Windows CE 5.0

Do i need to deploy to get an executable ?
Is there a way to generate an exe in local hard disk, and deploy my self by
copuing the resilting file to the device ?

I Don't like this Deploy mode to get the resulted executable.

Thanks a lot
 
P

Paul G. Tobey [eMVP]

No compiler for Windows CE generates the EXE on the target device. It's
always built locally and deployed (which includes copying it to the device).
If you'd just try it, you'd already know that...

Paul T.
 
O

Okette

I have generated the file locally.
bin/debug/program.exe

i put This file on the device. th e device telle ms it's not an executable
for the CE.
But when i execute the file on my PC, it works.

How can i generate the file to be compatible windows ce 5.0 ?
My project is a Windows CE 5.0 project.

Thanks for the help

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> a écrit dans le message de (e-mail address removed)...
 
P

Paul G. Tobey [eMVP]

Then I'd guess that you *didn't* build it for CE. If you didn't create it
based on a Smart Device project template, that's quite easy to do. You
cannot just take a desktop-targeted EXE and run it on Windows CE. It's also
possible that you generated an EXE that's native code for the wrong
processor or that you generated a CE5 application, but your target device is
running an older version of Windows CE. If what you've actually told us is
*really* true, it would work, so something that you are assuming you've done
right isn't true.

Paul T.

Okette said:
I have generated the file locally.
bin/debug/program.exe

i put This file on the device. th e device telle ms it's not an executable
for the CE.
But when i execute the file on my PC, it works.

How can i generate the file to be compatible windows ce 5.0 ?
My project is a Windows CE 5.0 project.

Thanks for the help

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> a écrit dans le message de (e-mail address removed)...
No compiler for Windows CE generates the EXE on the target device. It's
always built locally and deployed (which includes copying it to the
device). If you'd just try it, you'd already know that...

Paul T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top