For Programmers: Free Programming Magazines  


Home > Archive > Smartphone Developer Forum > January 2006 > Help: cannot launch .exe on SP 2002 emulator









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Help: cannot launch .exe on SP 2002 emulator
Polo

2006-01-20, 7:11 pm

Hi folks,

I got stuck here: I made my app using VS2003 and eMbedded Visual C++ 3.0.
When I tried to run it on the SP 2002 emulator, build is fine, connection to
emulator is fine, and download finished and emulator comes up. When I click
the Lauch button, an error window pops up saying "Cannot execute program". I
don't know what is wrong here. Can anyone help me out?

Thanks a lot,

Polo
Polo

2006-01-20, 9:57 pm

Yes, I used Win32 x86 debug mode, and chose 2002 smartphone emulation.

Thanks for your inputs.

Polo


"Polo" wrote:

> Hi folks,
>
> I got stuck here: I made my app using VS2003 and eMbedded Visual C++ 3.0.
> When I tried to run it on the SP 2002 emulator, build is fine, connection to
> emulator is fine, and download finished and emulator comes up. When I click
> the Lauch button, an error window pops up saying "Cannot execute program". I
> don't know what is wrong here. Can anyone help me out?
>
> Thanks a lot,
>
> Polo

Ilya Tumanov [MS]

2006-01-20, 9:57 pm

Not sure what's up with that. I would suggest upgrading to eVC 4 SP4. You
could hardly find any SP 2002 anyway.


--
Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group...framework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).

"Polo" <Polo@discussions.microsoft.com> wrote in message
news:7BEC1969-70AE-4CCE-8F06-7F874821FA92@microsoft.com...[color=darkred]
> Yes, I used Win32 x86 debug mode, and chose 2002 smartphone emulation.
>
> Thanks for your inputs.
>
> Polo
>
>
> "Polo" wrote:
>


riki

2006-01-20, 9:57 pm

Polo wrote:
> Hi folks,
>
> I got stuck here: I made my app using VS2003 and eMbedded Visual C++ 3.0.
> When I tried to run it on the SP 2002 emulator, build is fine, connection to
> emulator is fine, and download finished and emulator comes up. When I click
> the Lauch button, an error window pops up saying "Cannot execute program". I
> don't know what is wrong here. Can anyone help me out?


have you run
C:\Program Files\Windows CE Tools\wce300\Smartphone 2002\tools\sp2002dps
/device /create
?

riki

Know thyself. If you need help, call the C.I.A.
ThemeChanger for Smartphone : http://homepages.inspire.net.nz/~gambit/
AbstractStart for Smartphone :
http://homepages.inspire.net.nz/~gambit/AbstractStart/
Latest Betas have WM5 layout and speed dial support
Polo

2006-01-20, 9:57 pm

Hi riki,

After I saw your message, I tried your command, and then did a build. I
still got the same error: cannot execute program. But one thing is a bit
different from yours:
C:\Windows CE Tools\wce300\Smartphone 2002\tools\sp2002dps /device /create

Interesting thing is that Sp2002 and Sp2003 are in different "Windows CE
Tools".
C:\Program Files\Windows CE Tools\wce420\SMARTPHONE 2003\

I don't know if this path difference might be the cause.

Any other things I can try?

Thanks a lot,

Polo



"riki" wrote:

> Polo wrote:
>
> have you run
> C:\Program Files\Windows CE Tools\wce300\Smartphone 2002\tools\sp2002dps
> /device /create
> ?
>
> riki
>
> Know thyself. If you need help, call the C.I.A.
> ThemeChanger for Smartphone : http://homepages.inspire.net.nz/~gambit/
> AbstractStart for Smartphone :
> http://homepages.inspire.net.nz/~gambit/AbstractStart/
> Latest Betas have WM5 layout and speed dial support
>

riki

2006-01-20, 9:57 pm

Polo wrote:
> Hi riki,
>
> After I saw your message, I tried your command, and then did a build. I
> still got the same error: cannot execute program. But one thing is a bit
> different from yours:
> C:\Windows CE Tools\wce300\Smartphone 2002\tools\sp2002dps /device /create
>
> Interesting thing is that Sp2002 and Sp2003 are in different "Windows CE
> Tools".
> C:\Program Files\Windows CE Tools\wce420\SMARTPHONE 2003\
>
> I don't know if this path difference might be the cause.
>
> Any other things I can try?


ok, can you give some more details as to what your trying to do?
you said 'I made my app using VS2003 and eMbedded Visual C++ 3.0'
how did you do that? are you using c# or c++? what did you compile the
App in? (evc3, evc4 or vs2003)
how are you getting the app into the emulator? you say it's a 2002
emulator, but you said you found only the 2003 SDK installed?

riki



"What's you name?" "Kate." "Kate, thats an unusual name for a boy."
"It's short for ... Bob"
ThemeChanger for Smartphone : http://homepages.inspire.net.nz/~gambit/
AbstractStart for Smartphone :
http://homepages.inspire.net.nz/~gambit/AbstractStart/
Latest Betas have WM5 layout and speed dial support
Polo

2006-01-23, 7:06 pm

> > Hi riki,
>
> ok, can you give some more details as to what your trying to do?
> you said 'I made my app using VS2003 and eMbedded Visual C++ 3.0'
> how did you do that? are you using c# or c++? what did you compile the
> App in? (evc3, evc4 or vs2003)
> how are you getting the app into the emulator? you say it's a 2002
> emulator, but you said you found only the 2003 SDK installed?
>
> riki



Hi riki,

I installed both VC 2003 and eVC 3.0 on my machine, but I used only eVC 3.0
to edit, build and run my app. My app is in C++. After I finished the app, go
to eVC 3.0
Build --> Build MyApp.exe. All source files in the project will compile, and
generate exe file, and then the eVC will connect to SP 2002 emulator (I also
installed SP 2003 emulator, but I chose SP2002 emulator only because I have
SP 2002 device.), and download files till finished downloading. Then go to
Build --> ! Execute MyApp.exe. MyApp should run in the emulator, but I got
"cannot execute program".

Thanks a lot for your help.

Polo
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com