Recent

Author Topic: Help on starting with WinCE 5.0  (Read 9716 times)

dario

  • New member
  • *
  • Posts: 9
Help on starting with WinCE 5.0
« on: October 25, 2011, 09:45:10 am »
Hello,
i am on the first steps to use Lazarus for wince.
I have a windows CE Emulator, version 5.3.0.26 donwloaded from Microsoft.
I have installed the two lazarus kit:
- lazarus-0.9.30-fpc-2.4.2-win32
- Lazarus-0.9.30-fpc-2.4.2-cross-arm-wince-win32(2)
I have configured lazarus as indicated in wiki document "Windows CE Interface",
and i have compiled a little Tform with a Tbutton,
but i have the error >>"test1" (name of my program) is not a valid Window CE Application<<
when trying to run it on the emualtor. I copied all the folder of my lazarus project "test1" into stoarga card emulated in the emulator, and run from it folder. I have that error!
The executable is 1.888 KByte.

Looiking for this error in Internet i dont' solve the situation. Lazarus seems to be configured well, but it don't run on Win CE.

What can i try? my goal is to make a litte application to works with barcode terminal with wince, and i can't run in the emulator, so i'm again at the first step ...

Many thanks to help me!
Dario

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Help on starting with WinCE 5.0
« Reply #1 on: October 25, 2011, 10:10:23 am »
Which emulator are you using exactly? The one recommended by the wiki? Is it for arm?

In any case, this is a FAQ: http://wiki.lazarus.freepascal.org/WinCE_Programming_Tips#The_error_message:_SomeProject_is_not_a_valid_Windows_CE_application

You probably forgot to set the operating system or architecture.

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: Help on starting with WinCE 5.0
« Reply #2 on: October 25, 2011, 11:01:41 am »
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

dario

  • New member
  • *
  • Posts: 9
Re: Help on starting with WinCE 5.0
« Reply #3 on: October 25, 2011, 11:34:12 am »
Which emulator are you using exactly? The one recommended by the wiki? Is it for arm?

I take it from Microsoft page.
http://www.microsoft.com/download/en/details.aspx?id=18481

Thanks to help me,
Dario

dario

  • New member
  • *
  • Posts: 9
Re: Help on starting with WinCE 5.0
« Reply #4 on: October 25, 2011, 11:46:37 am »
Have you searched the forum?
http://www.lazarus.freepascal.org/index.php/topic,14353.msg76031.html#msg76031

I'm trying installing CodeTyphon, this will be more simple than autoconfiguring Lazarus?
May thanks,
Dario

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Help on starting with WinCE 5.0
« Reply #5 on: October 25, 2011, 01:11:09 pm »
I take it from Microsoft page.
http://www.microsoft.com/download/en/details.aspx?id=18481

That does not explain anything about which image you are using and if it is for arm.

I recommend using the emulators recommended by the Wiki: http://wiki.lazarus.freepascal.org/Windows_CE_Interface#Installing_and_Using_the_Pocket_PC_Emulator

dario

  • New member
  • *
  • Posts: 9
Re: Help on starting with WinCE 5.0 + WinCE or WinMobile 5?
« Reply #6 on: October 26, 2011, 10:46:42 am »
Many thanks!!
It works fine now,  form the links of wiki! :D
The WinCE emulator i used did not have arm processor emulated i think ...

A question. If i made an application for Windows Mobile 5.0,  very simple, reading and writing a file and some buttons to press, on other words without any special integration with the operative system, it works on WinCE if the processor is arm?

Many Thanks for the reply!
Dario

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Help on starting with WinCE 5.0 + WinCE or WinMobile 5?
« Reply #7 on: October 26, 2011, 11:52:43 am »
A question. If i made an application for Windows Mobile 5.0,  very simple, reading and writing a file and some buttons to press, on other words without any special integration with the operative system, it works on WinCE if the processor is arm?

You dont need to be so restrictive. You can even use lNet to send e-mails or http requests, access sqlite databases, write files, etc.

You can also call operating system APIs: http://wiki.lazarus.freepascal.org/WinCE_Programming_Tips
« Last Edit: October 26, 2011, 12:44:37 pm by felipemdc »

 

TinyPortal © 2005-2018