Visual Studio 2008 Creating command line program for Win CE 5.0 on Colibri ARM

Hi all!
I’m encountering problems creating a terminal application on visualstudio 2008

Here the selection for smart device in my Visual studio 2008

How can enable compiling for Win ce 5.0 a terminal application?

I’ve installed the Toradex package: toradex_ce5_sdk_5.0.zip

Thanks in advice

Have you installed Toradex SDKs? How to setup development environment for WinCE and VS2008 | Toradex Developer Center

Hi Alex!
Thanks for the fast response.

here my project setup:

i’ve installed these files:
toradex_ce5_sdk_5.0.zip
toradex_ce5_sdk_6.0.zip

from toradex official site

but after building, connecting via telnet to the device:
Welcome to the Windows CE Telnet Service on Colibri

Pocket CMD v 8.00
> cd temp
\temp> nanotail5
Cannot execute \temp\nanotail5.EXE.

To start a compiled application on Colibri you need to copy it to Colibri module. You can either do it using USB drive/ SD card or by deploying it directly from Visual Studio over Ethernet or USB Active Sync.
Please check this article - Application Debugging Over Ethernet Using Visual Studio | Toradex Developer Center

i’ve transferred the application via FTP using binary put command.

But I’ve discovered in the Header of the file these statement:
LÍ!This program cannot be run in DOS mode.

Why? I’ve maked a command line executable ( i supposed )

Hi Alex, I think that i’m in trouble because the Visualstudio project creator can’t enable me to produce a command line software that is not win32 but only DOS mode ( i suppose )

Do you know if exists a template made by toradex to solve these problem?

Because WinCE has no DOS mode. Your header looks OK.
Check this article -Create a new VC++ project

Hi Alex!
I’ve followed the link you suggested
then i transferred the file compiled to a remote computer ( from the customer ) and uploaded via ftp in that way:
Here is the ssh log:

pi@raspberrypi:~ $ ftp xx.xx.xx.xx
Connected to  xx.xx.xx.xx.
220 Service ready for new user.
Name ( xx.xx.xx.xx:pi): anonymous
331 Anonymous access allowed, send identity (e-mail name) as password.
Password:
230 User logged in, proceed.
Remote system type is Windows_CE.
ftp> cd temp
250 Requested file action okay, completed.
ftp> bin
200 Command okay.
ftp> put provaprovina.exe
local: provaprovina.exe remote: provaprovina.exe
200 Command okay.
150 File status okay; about to open data connection.
226 Closing data connection.
5120 bytes sent in 0.00 secs (15.6500 MB/s)
ftp> 221 Service closing control connection.
pi@raspberrypi:~ $ telnet  xx.xx.xx.xx
Trying  xx.xx.xx.xx...
Connected to  xx.xx.xx.xx .
Escape character is '^]'.








Welcome to the Windows CE Telnet Service on Colibri

Pocket CMD v 8.00
\> cd temp
\temp> provaprovina.exe
Cannot execute \temp\provaprovina.exe.
\temp>


Why?? Where i have going wrong???

the only difference from the howto is that in my installation:
windows XP sp3
.NET ver 4.5
VStudio 2008
Extra dev packages:
Colibri_SDK_1_0.msi
Toradex_CE5_SDK.msi

in the window:
https://ibb.co/3d53NRW

i Can't add the same libraries:
https://docs.toradex.com/101835-vcpp-smartdeviceproject.png

Thanks in advice!

Marco

Looks like your customer compiled it wrongly.

I did follow article I’ve mentioned before and everything works as expected. I’ve run console app using VS debugger. Then I copied it into USB drive and run it directly on Colibri using command line. You can download my screenshots and compiled app here.

Can i send the compiled file by me?

nanotail8.exe (5.5 KB)

Hi Alex, here it is my compiled nanotail.

I’ll test your asap!

Thanks

Marco

Hi Alex, please here the log:

pi@raspberrypi:~ $ telnet 192.168.1.100
Trying 192.168.1.100…
Connected to 192.168.1.100.
Escape character is ‘^]’.

Welcome to the Windows CE Telnet Service on Colibri

Pocket CMD v 8.00
> cd temp
\temp> testapp.exe
Cannot execute \temp\testapp.exe.
\temp>

Could you please specify WinCE version and its BSP release version?
Could you also specify your Colibri module ty[e and a HW revision?