Any possibility to create WinCE 4.5 apps?

Previous topic - Next topic

Uriziel01PL

Hello everyone.
Im new on the board, and I wonder if it is possible to create some apps for WinCE 4.5 (I know v5 and v6 are possible). it would be nice, because I would like to create something with GUI, and teaching WinCE programming just for that is not the best idea ;) I dont have license but friend of mine has, and he said that it is not possible in GLBasic, is that truth?  :( :( p.s-If it would be possible, that would be enough reason to buy full license, i think.

Kitty Hello

I think it even works on CE 3.0.

Uriziel01PL

Hmmm, in this case it isnt working just for me ? :)
i cant run even simple:
Code (glbasic) Select

WHILE TRUE
PRINT "Hello Mobile",100,100
SHOWSCREEN
WEND

or
Code (glbasic) Select

SETSCREEN 640, 480, 0
LOADBMP "test.bmp"
SHOWSCREEN
MOUSEWAIT

all of them make only a quick (0,5sec) blink of black screen.
But sometimes when i dont use
Code (glbasic) Select

SETSCREEN 640, 480, 0

I get something like rendering half of the background lines (one is black one is with BMP and so on) but they are like in negative and they are on only half of fullscreen (left side) and then my WinCE device is stuck, only power button helps.

Any Ideas? :(

matchy

#3
Although there should be a default font, replace PRINT with a DRAWRECT statement just to be sure. Also don't use SETSCREEN.
Check that you project properties are set to 240x320 first and try that with a bmp of the same size (but test without bmp first of course).

Kitty Hello

And don't do SETSCREEN on WinCE. I think. Not sure. CE, not Windows mobile you say?

Uriziel01PL

#5
I just realised that everything works fine, but ONLY when i set 240x320 in project options O.o Thats ok, but my target devices are at least 480x240 (or even bigger), and I just cant run any script when using any other resolution than 240x320. How I should solve that?
@Kitty Hello-Yes im sure, its a WinCE 4.5 navigation system (in the fact a entire set of them, but all on WinCE 4.5).
@EDIT:
Im not sure that it is the way it should be, but my backbuffer (from SAVEBMP) looks like:

But on my device 480x240 it looks like this (yes it looks EXACLY like this)


MrTAToad

So setting the display to be exactly like your machine doesn't work properly ?

Uriziel01PL

#7
Yes thats right :) Is there a fix for that ?

EDIT:
I cant run on my WinCe device any application that wasnt maded in 240x320 and this is not my screen resolution.

MrTAToad

That is odd - but then I've only tried it in a WinCE 6.5 emulator

Uriziel01PL

And I also tried in WinCE 5.0 emulator, everything worked just fine (except from ShellCMD which also dont work on my real WinCE 4.5, some bug?), I was able to use any resolution. Even SETSCREEN worked, on my device SETSCREEN olny chnges the size of SAVEBMP file, not affect real image.
And this code, resulted in weird graphic behaviour (video below):
Code (glbasic) Select

LOCAL time1#
LOCAL time2#
LOCAL time3#
LOCAL time4#
LOCAL x
LOADFONT "font.png", 1
SETFONT 1
time1#=GETTIMERALL()
WHILE x<222
INC x
PRINT x,10,10
SHOWSCREEN
WEND
time2#=GETTIMERALL()
time3#=GETTIMERALL()
x=0
WHILE x<222
x=x+1
PRINT x,10,10
SHOWSCREEN
WEND
time4#=GETTIMERALL()
time1#=(time2#-time1#)/1000
time2#=(time4#-time3#)/1000
PRINT time1#+" sec.",10,10
PRINT time2#+" sec.",10,50
PRINT "Diffrence="+ABS(time1#-time2#)/1000+" sec.",10,90
SHOWSCREEN
MOUSEWAIT

Meaby this will help?
-Only half screen
-All letters are like not connected dots (You cant read the content)
-Those "images" are rendered 3 times from left side

Im sooooo sorry for the video quality, my camera have been damaged on last mountain trip and now it can only focus on long distances, I hope that you can see anything :/

Kitty Hello

the screen size is wrong.

Try setting platform options to the exact size of your display.
Don't use setscreen.
What does "GETDESKTOPSIZE" yield?

Uriziel01PL

"GETDESKTOPSIZE" returns for me 0x0 (it works fine on Win32, the code is OK then)
But actually i realisesd that the exact screen size is 480x272 (not 480x240), on the device box there is "480x240" but after few tests a  480x272 .bmp file is full screen on my device. Meaby this is a reason? Adding "non-standard" resolutions to IDE could help ?

p.s-Reading the entire thread, I hope that you understand my "English"? Although I know it sux ;)

Kitty Hello

English is fine. Mine's far from being perfect, too.

OK, desktop size is a bug then, and you can "type" manual resolutions in that box. (It won't show when you open the dialog then, but that's just another bug :S )

Uriziel01PL

#13
Hello.
I tried to type it in manually at the first day when I found that problem, but it didnt fixed it (my app still cant be run). Unfortunately :(

MrTAToad

Wonder if Gernot has any 4.5 devices :)