FBA The Creator

The True Multiplatform PC / PocketPC Opensource Development Tool - Read Only Mode - Kept only for historical purposes - Thank you all ;)
It is currently Thu Jun 04, 2026 2:40 am

All times are UTC




Post new topic  Reply to topic  [ 29 posts ]  Go to page 1 2 3 Next
Author Message
PostPosted: Sat Jul 05, 2008 1:12 pm 
Offline

Joined: Fri Jun 27, 2008 4:32 pm
Posts: 29
Hello.

It seems to be a problem when storing informations in a file by using openfile, readfile, writefile... functions with Windows Mobile 2003 (version 4.21.1088). Indeed, when I run my application (using files), she runs perfectly on my phone, with WM5. But with my pocket PC (WM2003) the strictly same application isn't be able to read or write the files.

If somebody knows a solution, I should be very glad to know it.

Best regards.


Top
   
PostPosted: Sat Jul 05, 2008 1:30 pm 
Offline
FBA Startup-Logo Creator
FBA Startup-Logo Creator
User avatar

Joined: Wed Jun 18, 2008 11:40 am
Posts: 100
Location: Brighton, UK
Please post a code example here.

_________________
http://www.boiledsweets.com


Top
   
PostPosted: Sat Jul 05, 2008 2:34 pm 
Offline

Joined: Fri Jun 27, 2008 4:32 pm
Posts: 29
Here you are an example:

function onmainloop()

if fileexists("filetest.dta") then
myfile = openfile("filetest.dta","read",false)
print(20,15,readfile(myfile,4),0,0,0)
closefile(myfile)

end


function onquit()

myfile = openfile("filetest.dta","write",false)
writefile(myfile,"test")
closefile(myfile)

end


On the first attempt, nothing appears on the screen, what is normal: The file doesn't exists.
When opening the application for the second time I want the application show us the word "test".
That works when using my phone with Windows Mobile 5, but nothing appears when using my pocket pc with Windows Mobile 2003.

Thanks


Top
   
PostPosted: Sat Jul 05, 2008 4:23 pm 
Offline

Joined: Fri Jun 27, 2008 4:32 pm
Posts: 29
I've encounter the same problem when using the number 11 tutorial witch name is "handling.config.files".

This soft is unable to store the values when used with Window Mobile 2003 meanwhile it is able to do it with WM5.


Top
   
PostPosted: Sat Jul 05, 2008 6:37 pm 
Offline
FBA Administrator
FBA Administrator
User avatar

Joined: Fri Mar 21, 2008 11:19 pm
Posts: 238
Location: Rome - Italy
While i'm pretty sure it should work, I haven't a windows mobile 2003 device to test that, sorry;
I'll try to check this on ARM emulators in my spare time.

can you give us more info? for example:

- full path of fba.exe when you launch it on your ppc
- is the file created the first time and then it isn't read or you can't even find it?

Just a note, opening|closing|reading a file continuously in a main loop, is BAD,
also for tests :)


Top
   
PostPosted: Sat Jul 05, 2008 7:05 pm 
Offline

Joined: Fri Jun 27, 2008 4:32 pm
Posts: 29
Sorry, but it didn't work. I'm sure you will find a solution. So, I have found a solution for those who want to store information and who want to be sure that WM2003 will accept the storage: Use the openconfigext function. I tested it and it works meanwhile Openconfig and openfile don't work.

I hope this post will help somebody...

As far as I am concerned, my problem is solved by using openconfigext. Thank you evilmaio for your future check. Be advised that all your other sample applications work properly on WM2003.
If I can help you...I'll do it with pleasure.

Best regards


Top
   
PostPosted: Sat Jul 05, 2008 7:09 pm 
Offline
FBA Administrator
FBA Administrator
User avatar

Joined: Fri Mar 21, 2008 11:19 pm
Posts: 238
Location: Rome - Italy
Can you post full (bugged) code? I`ll check with that on emulators.

thanks


Top
   
PostPosted: Sat Jul 05, 2008 7:26 pm 
Offline

Joined: Fri Jun 27, 2008 4:32 pm
Posts: 29
In order to answer your questions:

-full path of fba.exe when you launch it on your ppc?
I have launch it in "My Pocket PC/program files/test/"

- is the file created the first time and then it isn't read or you can't even find it?
I can't even find it.

Remarks: Don't worry, reading or writing the file occur just once in the loop. I have cleared the code before to send you, because it was very long.
Bye.


Top
   
PostPosted: Sat Jul 05, 2008 7:29 pm 
Offline

Joined: Fri Jun 27, 2008 4:32 pm
Posts: 29
I don't know how to send you the code: it's long. But, you know, your number 11 sample encounter the same problem. You can make the test with it if you want.


Top
   
PostPosted: Sun Jul 06, 2008 12:13 am 
Offline
FBA Administrator
FBA Administrator
User avatar

Joined: Fri Mar 21, 2008 11:19 pm
Posts: 238
Location: Rome - Italy
Files written by openconfig (tutorial 11), are created within a directory 'userdata' that is automatically created by FBA...can you find this directory on your device?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 29 posts ]  Go to page 1 2 3 Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited