Recent

Author Topic: [SOLVED] Problems with settings for WinCE ( PSION'S Workabout Pro 3 )  (Read 13667 times)

Evolvitus

  • New member
  • *
  • Posts: 7
Hi,
this is my first post here so be gentle ;)

First of all, i'm not pro in programming, well, to be honest i'm just a casual programmer.

I haven't used Lazarus for a long time. Last version was something from 0.9.x. That time i was able to correctly setup all needed options for wince and in result i got simple application for Windows CE 5.0

But now with 1.2.4 (and 1.2.2, haven't tested rest of them) I have a problem with setting up Lazarus for WinCE application. Well at least i think that is the problem.

I did everything from link below:
http://wiki.lazarus.freepascal.org/Windows_CE_Interface#Using_the_stable_add-on_installer_.28Recommended_Method.29

I've downloaded Lazarus, then cross-arm-wce-win32.exe
I've installed Lazarus (clean install, no old configs) then cross arm (just like in link above)
And next i've setup all (i think) options for wince application generation (pictures attached, polish localization of Lazarus).

Next i'm creating very simple app with only one form and a button on it with Close binded to it.
Ctrl+F9 -> ok, no errors (file size 1.98mb, after UPX ~624kb)

But when i'm trying to run this on emulator or on device itself nothing happens. (On PC i got 'Access denied')
Well, on emulator i got "project1' is not a valid Windows CE application." message.
On device i got nothing, no form nor any kind of message.

What did i wrong?
Or maybe there is someghing i'm missing to check in project options?
Or maybe i'm just to old for it ...

Help me out guys, please.
« Last Edit: August 11, 2014, 11:02:02 am by Evolvitus »

vincococka

  • Full Member
  • ***
  • Posts: 101
Re: Problems with settings for WinCE
« Reply #1 on: July 22, 2014, 01:30:33 pm »
Hi,

when I tried to build simple WinCE application (One form, one button), set LCLWidgetType, configured WinCE+arm CPU in compilation part of Options dialog - everything went fine.

Currently I`m developing one project for WinCE and I`m happy user of Lazarus  and Typhon.

Maybe you`ve device locked - check ggl how to unlock device.

Regards,
  V.
---
  Guide me God and I`ll find you

Evolvitus

  • New member
  • *
  • Posts: 7
Re: Problems with settings for WinCE
« Reply #2 on: July 22, 2014, 01:55:24 pm »
Ok, let's assume that device is blocked.
But why i cannot run anything on virtual emulator?! :/

Only those 3 options should be marked for wince/arm?
LCL Widget Type: wince
Target OS: wince
Target CPU Family: arm

Edited ===================== :)
Day after.
I've uninstalled Lazarus and removed all files from its directory. Did totally clean instal (again). Also, i removed all MS emu for WinCE i got on my computer (it was a bit messy with them, too many unsuccessfull attempts).
Did clean download as described in Lazarus help.
Proper emu, proper images (but to run it i had to search ggl some time, Lazarus' help wasn't good with explanation at that point ;) ) anyway, after successful installation i've compiled sample app (one form, one button with Close;)
Works fine on emulator (finally)
but on device still no success.

I'ts 'PSION Workabout Pro3' (Windows CE.net 5.0). I've checked ggl and didn't find any info about locked device, instead I found that any app should work fine.

Well, maybe I wasn't to precise with info that on device it doesn't want to run. When i'm clicking it, outline shows for a (about) half a second from that icon and it's grows to whole screen but screen is empty.
It's just like it wanted to say "I WANT TO RUN THIS APPLICATION" but nothing happens...


PS: sorry for my english if messed up with tenses :)
« Last Edit: July 23, 2014, 02:48:58 pm by Evolvitus »

Evolvitus

  • New member
  • *
  • Posts: 7
Re: Problems with settings for WinCE ( PSION'S Workabout Pro 3 )
« Reply #3 on: July 25, 2014, 07:35:32 am »
Ok, i think I've discovered what is 'wrong' with that device.
This info could be helpfull for some of you in future.

Non of the Lazarus settings made that simple app to run on device (only on emulator).
I did more digging and found that Microsoft has released (some long time ago) Embedded Visual C++ (it's free for use) so I've downloaded it and also I've downloaded SDK for that device (i'ts only for C++/.NET/Java).
Firstly I've created new 'Hello World' application using SDK delivered with Embedded compiler (it's available in the File->New->Project->WCE Application, and then 'Sample Hello World application') and it didn't want to run either. Then after installing SDK for that particular device and a little change in Embedded Visual C++ (from drop down list) to select 'PsionTeklogixCE500' SDK, I've recompiled that source again and voila. Everything is working fine now. Device is able to run this simple app.

So i think that using Lazarus for creating apps for that piece of hardware is (for now) impossible because we must use devices SDK (and they aren't pascal sources).

But I can always be mistaken...


bambamns

  • Full Member
  • ***
  • Posts: 223
Re: Problems with settings for WinCE ( PSION'S Workabout Pro 3 )
« Reply #5 on: August 09, 2014, 04:42:19 am »
Can You precise WinCE version on Workabout ?
Lazarus 1.8.4 + FPC 2.6.4 x86 (rebuild) and Lazarus 2.0, Windows 7 x64, unless otherwise specified

Evolvitus

  • New member
  • *
  • Posts: 7
Re: Problems with settings for WinCE ( PSION'S Workabout Pro 3 )
« Reply #6 on: August 11, 2014, 10:33:28 am »
It's
Microsoft Windows CE.net
Version 5.00 (Build 1400)

---
Strange things. Few minutes ago I tried to use Lazarus again (but first I found that device had turned off setting for showing app on  taskbar, I switched that to ON (always show application on taskbar). And then tried to run this sample application on it and it turns out that it IS on (i can see it on task bar/ task list) but I cannot see any form.
I tried to play with form settings (Visibility, WindowState, Enabled, FormStyle, BorderStyle...) but nothing seems to be working.
Any clues ?

My time with this dev is melting, I can only test it for a few days from today (till the end of the week).

===========================
EDIT
=====

I found solution for my 'invisible form' problem.

In application source I had to add

Code: [Select]
...
Application.ApplicationType := atPDA;
...

before Application.Initialize;

I can see form now so i can say that setting Lazarus for that device is completed and solution for my problem (at this stage) has been found.

Thanks for suggestions.
« Last Edit: August 11, 2014, 11:07:42 am by Evolvitus »

 

TinyPortal © 2005-2018