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.
I think it even works on CE 3.0.
Hmmm, in this case it isnt working just for me ? :)
i cant run even simple:
WHILE TRUE
PRINT "Hello Mobile",100,100
SHOWSCREEN
WEND
or
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
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? :(
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).
And don't do SETSCREEN on WinCE. I think. Not sure. CE, not Windows mobile you say?
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:
(http://img831.imageshack.us/img831/236/test1pc.th.jpg) (http://img831.imageshack.us/i/test1pc.jpg/)
But on my device 480x240 it looks like this (yes it looks EXACLY like this)
(http://img858.imageshack.us/img858/4007/test3g.th.jpg) (http://img858.imageshack.us/i/test3g.jpg/)
So setting the display to be exactly like your machine doesn't work properly ?
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.
That is odd - but then I've only tried it in a WinCE 6.5 emulator
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):
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 :/
the screen size is wrong.
Try setting platform options to the exact size of your display.
Don't use setscreen.
What does "GETDESKTOPSIZE" yield?
"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 ;)
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 )
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 :(
Wonder if Gernot has any 4.5 devices :)
If there will be any work-in-progress solution/fix or "whatever" to test, I can run it and give the result (I have many of those devices, and also few with WinCE 5.0). Good Luck anyway :)
my CE device died. :( Won't boot anymore. Is there an emulator for CE? I used to have one years ago, but can't find it now.
There is a CE 5.0 emulator, but, as I stated a year or so ago, I couldn't get it working (although someone else did)
Working WinCE 5.0 Emulator.
LINK: http://chomikuj.pl/imar42?b=1
The only problem can be the fact that it is hoted on Polish site, and you need account to download it. I can DL it and rehost it for RS/MU or anything you like? ok?
Is that the one that only works on Windows 2000 or XP Professional ?
Yes, im using it on XP 32bit. But dont really know about vista/7. But i can check it tommorow on my laptop.