RE: Files and full screen graphics
Hi, 1) How can i read/wrtie files? If you need files support in your application you might use file stream functions like FileOpen, FileRead. Have you read PalmOsCompanion.pdf file? There is whole chapter about databases and files. 2) How can i switch into between full screen mode? What do you mean by full screen mode ? Are asking about Hight-Density Display? If so, check WinSetCoordinateSystem() function and other windows function. 3) Where can i find some simple tutorial? Some examples comes with PalmOs SDK. I also advice you to check PalmOsCompanion.pdf, PalmOsCompanion2.pdf and PalmOsReference.pdf . Regards, Greg. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Files and full screen graphics
On 12/16/05, Grzegorz Szewc [EMAIL PROTECTED] wrote: Hi,1) How can i read/wrtie files?If you need files support in your application you might use file streamfunctions like FileOpen, FileRead. Have you read PalmOsCompanion.pdffile? There is whole chapter about databases and files. 2) How can i switch into between full screen mode?What do you mean by full screen mode ? Are asking about Hight-DensityDisplay? If so, check WinSetCoordinateSystem() function and other windows function.3) Where can i find some simple tutorial?Some examples comes with PalmOs SDK. I also advice you to checkPalmOsCompanion.pdf, PalmOsCompanion2.pdf and PalmOsReference.pdf . Regards,Greg.--For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Files and Databases on the Palm.
At 08:03 PM 9/27/2004, you wrote: Hi, Is it possible to open a Palm Database with the FileOpen Palm API call? I understand how Databases work and how files work. Are they cross-compatible? If it is possible is there an example somewhere I can see? A file stream is a specific kind of database. You can open a file stream DB using DmOpenDatabase, but FileOpen can't open a random database. If you need to see a Palm OS database in serialized format, use the ExgDbWrite call to convert it to PDB form. -- Ben Combee, Technical Lead, Developer Services, PalmSource, Inc. Combee on Palm OS weblog: http://palmos.combee.net/ Developer Fourm Archives: http://news.palmos.com/read/all_forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: files
Ok. Many thanks. It works fine except that I lose 300 bytes. Is there more data I need to read and send after or before sending resources? Mihai Bogdan Ciornei www.Transart.ro -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sebastian Cancinos Sent: Friday, July 30, 2004 8:09 PM To: Palm Developer Forum Subject: Re: files Mihai, 'appl' databases are Resource databases, so you can't use DmQueryRecord. you should use DmGetResourceIndex. You can know if it is a ResDB by calling, DmOpenDatabaseInfo . Sebastian. Friday, July 30, 2004, 11:11:05 AM, you wrote: MC Hi. MC I want to transfer files from hhc to pc. I succeeded with 'data' MC database type but not with 'appl' type. Can anyone help me? MC I tried in this way: MC MemHandle hRec_file = NULL; MC hRec_file = DmQueryRecord(m_hDb, nIndex); MC MemHandleLock(hRec_file); MC if (hRec_file != NULL) MC { MC nSize = MemHandleSize(hRec_file); MC MemHandleUnlock(hRec_file); MC } MC But when I call MemHandleLock(hRec_file);crashes. MC Please help. MC Thanks MC Mihai Bogdan Ciornei MC www.Transart.ro MC -- MC For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- Saludos, Sebastianmailto:[EMAIL PROTECTED] -- I pity the poor shades confined to the euclidean prison that is sanity. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: files
Mihai, 'appl' databases are Resource databases, so you can't use DmQueryRecord. you should use DmGetResourceIndex. You can know if it is a ResDB by calling, DmOpenDatabaseInfo . Sebastian. Friday, July 30, 2004, 11:11:05 AM, you wrote: MC Hi. MC I want to transfer files from hhc to pc. I succeeded with 'data' MC database type but not with 'appl' type. Can anyone help me? MC I tried in this way: MC MemHandle hRec_file = NULL; MC hRec_file = DmQueryRecord(m_hDb, nIndex); MC MemHandleLock(hRec_file); MC if (hRec_file != NULL) MC { MC nSize = MemHandleSize(hRec_file); MC MemHandleUnlock(hRec_file); MC } MC But when I call MemHandleLock(hRec_file);crashes. MC Please help. MC Thanks MC Mihai Bogdan Ciornei MC www.Transart.ro MC -- MC For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- Saludos, Sebastianmailto:[EMAIL PROTECTED] -- I pity the poor shades confined to the euclidean prison that is sanity. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Files on Palm
Thanks for replying. I tried finding out DmFindDatabaseByTypeCreator method. What i could get it it is available at Palm OS 6 Cobalt We are working with Palm OS 5.x Please let me know if we can use any function of this. rgds, ritu Ben Combee [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] At 07:05 AM 4/29/2004, you wrote: Can some body help in answering my queries related to file streaming on palm device. 1. Can we keep files on the palm device. Yes. That is one of the purposes of the File Stream APIs. 2. Is it advisable to use files on palm device. Sure. The Palm Photos app uses this technique to store JPEG images captured from the camera. 3. How to get the list of files available on the device. You can use DmFindDatabaseByTypeCreator to locate file stream databases of a certain type and creator. A file stream is just a database with the file stream header bit set and a special format that's compatible with the File Stream APIs. -- Ben Combee, DTS technical lead, PalmSource, Inc. Read Combee on Palm OS at http://palmos.combee.net/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Files on Palm
Subject: Files on Palm From: Ritu Chawla [EMAIL PROTECTED] Date: Thu, 29 Apr 2004 17:35:58 +0530 Can some body help in answering my queries related to file streaming on palm device. 1. Can we keep files on the palm device. 2. Is it advisable to use files on palm device. 3. How to get the list of files available on the device. It is generally best to use the Dm() API set for file storage rather than file streaming, which uses the DM...() APIs under the skin anyway. Read the Palm documentation to figure out how to do this. Roger Stringer Marietta Systems, Inc., P.O. Box 71506, Marietta, GA 30007, USA ( (770) 565-15604 (770) 565-4421 PDE, piDB and RF-TP are trademarks of Marietta Systems, Inc. http://www.mariettasystems.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Files on Palm
1. yes. for store other than secondary storage, palm usually convert them into db. However, you can also use stream but hotsync wont recognize this kind of files. 2. for my self, term file means raw file (as it is) and it fit within secondary storage. 3. basically, palm doesnt provide any file explorer (as windows desktop). However, you can find some good code from palm reference/companion. peter --- Ritu Chawla [EMAIL PROTECTED] wrote: Can some body help in answering my queries related to file streaming on palm device. 1. Can we keep files on the palm device. 2. Is it advisable to use files on palm device. 3. How to get the list of files available on the device. Thanks Rajani -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ __ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: Files on Palm
Yes, u can store files on RAM of Palm device. It all depends on your requirements whether to use files or not! But as far as my knowledge is concerned there is no harm in using and storing files on Palm device as far as they are not too large. I don't know how to get list of files programatically but I use an application called FilePoint which is sort of file explorer for Palm OS. Hope this helps, Keyur Patwa -Original Message- From: Ritu Chawla [mailto:[EMAIL PROTECTED] Sent: Thursday, April 29, 2004 8:06 AM To: Palm Developer Forum Subject: Files on Palm Can some body help in answering my queries related to file streaming on palm device. 1. Can we keep files on the palm device. 2. Is it advisable to use files on palm device. 3. How to get the list of files available on the device. Thanks Rajani -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Files on Palm
At 07:05 AM 4/29/2004, you wrote: Can some body help in answering my queries related to file streaming on palm device. 1. Can we keep files on the palm device. Yes. That is one of the purposes of the File Stream APIs. 2. Is it advisable to use files on palm device. Sure. The Palm Photos app uses this technique to store JPEG images captured from the camera. 3. How to get the list of files available on the device. You can use DmFindDatabaseByTypeCreator to locate file stream databases of a certain type and creator. A file stream is just a database with the file stream header bit set and a special format that's compatible with the File Stream APIs. -- Ben Combee, DTS technical lead, PalmSource, Inc. Read Combee on Palm OS at http://palmos.combee.net/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Files
At 00:10 2002-12-3 +, you wrote: Question is, how do I load this into my program ? resource ? library file ? etc, and then how do I reference it later when I come to write my 'fake' fileopen()/close() routines. I can't believe this is the first time someone wanted to do this - is there a definitive work ? I'm a programmer of sensible talent so complex answers are ok, but please bear in mind that I'm a bit of a newbie when it comes to both PalmOS AND CodeWarrior. Look at the File Stream APIs. They let you deal with specially formatted databases as if they were files. The tool par can be used to make file stream PDB files that can then be sync'd to the handheld. File stream DBs are used in the OS to handle things like serialization for beaming, and normally are just temporary DBs, but they can also be long lived. You won't have a hierarchical file system with these -- the DB name space is flat -- but you can get around this by clever naming conventions. -- Ben Combee [EMAIL PROTECTED] CodeWarrior for Palm OS technical lead Palm OS programming help @ www.palmoswerks.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Files
Thx Ben, I'll look at that - sounds like a possible winner. The only thing I don't like about it is that I then need an installer to keep the loose files together. If I can't get on with your suggestion for whatever reason, is there a way that once I have a humungous chunk of binary (all the data files stuck together) and a header for it, that I can make CW munge it into the exe at a place where I can get a start address back from easily ? Assuming a yes, are their any gotchas in just returning a pointer to where the data is relative to the start, or do I have to allocate some fresh ram and copy it to a more local area ? Thanks again..., and nice response time - much appreciated :) Paul Johnson Applewood House Development www.applewoodhouse.com - Original Message - From: Ben Combee [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Tuesday, December 03, 2002 12:16 AM Subject: Re: Files At 00:10 2002-12-3 +, you wrote: Question is, how do I load this into my program ? resource ? library file ? etc, and then how do I reference it later when I come to write my 'fake' fileopen()/close() routines. I can't believe this is the first time someone wanted to do this - is there a definitive work ? I'm a programmer of sensible talent so complex answers are ok, but please bear in mind that I'm a bit of a newbie when it comes to both PalmOS AND CodeWarrior. Look at the File Stream APIs. They let you deal with specially formatted databases as if they were files. The tool par can be used to make file stream PDB files that can then be sync'd to the handheld. File stream DBs are used in the OS to handle things like serialization for beaming, and normally are just temporary DBs, but they can also be long lived. You won't have a hierarchical file system with these -- the DB name space is flat -- but you can get around this by clever naming conventions. -- Ben Combee [EMAIL PROTECTED] CodeWarrior for Palm OS technical lead Palm OS programming help @ www.palmoswerks.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Files
At 00:30 2002-12-3 +, you wrote: Thx Ben, I'll look at that - sounds like a possible winner. The only thing I don't like about it is that I then need an installer to keep the loose files together. If I can't get on with your suggestion for whatever reason, is there a way that once I have a humungous chunk of binary (all the data files stuck together) and a header for it, that I can make CW munge it into the exe at a place where I can get a start address back from easily ? Assuming a yes, are their any gotchas in just returning a pointer to where the data is relative to the start, or do I have to allocate some fresh ram and copy it to a more local area ? Paul, check my site (www.palmoswerks.com)... in the older articles, I talk about a few different ways to include binary data in your application. The basic problem is that you'll be limited to chunks of at most 64K unless you use a more complicated scheme like the file stream DB. -- Ben Combee [EMAIL PROTECTED] CodeWarrior for Palm OS technical lead Palm OS programming help @ www.palmoswerks.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Files
Cool, thanks Ben - been after a site like that. Can't find much at all out there apart from Palms own stuff, which for once isnt bad. You da man :) Paul Johnson Applewood House Development www.applewoodhouse.com - Original Message - From: Ben Combee [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Tuesday, December 03, 2002 12:35 AM Subject: Re: Files At 00:30 2002-12-3 +, you wrote: Thx Ben, I'll look at that - sounds like a possible winner. The only thing I don't like about it is that I then need an installer to keep the loose files together. If I can't get on with your suggestion for whatever reason, is there a way that once I have a humungous chunk of binary (all the data files stuck together) and a header for it, that I can make CW munge it into the exe at a place where I can get a start address back from easily ? Assuming a yes, are their any gotchas in just returning a pointer to where the data is relative to the start, or do I have to allocate some fresh ram and copy it to a more local area ? Paul, check my site (www.palmoswerks.com)... in the older articles, I talk about a few different ways to include binary data in your application. The basic problem is that you'll be limited to chunks of at most 64K unless you use a more complicated scheme like the file stream DB. -- Ben Combee [EMAIL PROTECTED] CodeWarrior for Palm OS technical lead Palm OS programming help @ www.palmoswerks.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: Files to and from the Palm
The format is tersely documented here: http://www.nicholson.com/rhn/pilot/pdb.txt I know there is a more thorough description on the net - I can't remember the URL, though :( Nag me later tonight and I'll send the link ... (it's on my PC at home :) -Original Message- From: Laursen,Jacob Lykkeberg XJT [mailto:[EMAIL PROTECTED]] Sent: Monday, September 25, 2000 1:33 PM To: Palm Developer Forum Subject: Files to and from the Palm Perhaps this question is a bit premature, but during the analyzis phase of the project I'm working on, I need to know how difficult it will be. Here goes... I have some data on the desktop I need to move to the handheld. So I have to create a .PDB file, right? How do I do this - where is the format described? I guess some information is needed to associate the file with my app on the Palm? Thanks in advance. -- Jacob Laursen -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: Files to and from the Palm
"Laursen,Jacob Lykkeberg XJT" [EMAIL PROTECTED] wrote Perhaps this question is a bit premature, but during the analyzis phase of the project I'm working on, I need to know how difficult it will be. Here goes... I have some data on the desktop I need to move to the handheld. So I have to create a .PDB file, right? How do I do this - where is the format described? I guess some information is needed to associate the file with my app on the Palm? There are several answers to your question. You don't necessarily have to create the PDB yourself, in fact it's often the toughest way to go. There are some excellent tools for moving data from PC apps into PDBs; which is best depends on your requirements. A quick web search should turn up a half dozen or so. Some are stand-alone programs, but there are several OCX's that will allow pdb creation from within your app. Palm generally suggest that you use a conduit. We don't so I can't comment, but in theory it's the superior way for your PC app to exchange data with your Palm app. http://www.palmos.com/dev/tech/docs/ is the Palm developer documentation site. As well as providing specs for the pdb format it also has other documentation that might be useful to you during the design phase. If you do end up writing code to read and write your own pdb's feel free to pass questions in my direction. I've already done some of this. There's also some good information up on the web that a search should find. Sorry for being vague but it's been a long day and I'm too lazy to look up any references. Chris Tutty -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/