Re: C APIs to read/write PDB records?
Check this out... http://www.palmgear.com/index.cfm?fu seaction=software.showsoftwarePartnerREF=siteid=1prodID=7371 The PalmOS Database Automation Server (PalmDB) is a COM component that allows full management of PalmOS Data databases when stored on a desktop. George Henne NS BASIC Corporation http://www.nsbasic.com I would like to replace my HotSync conduit by a batch PDB-PC file converter that I could recompile on various OSes. Are there documented open-source C APIs to read/write PDB records? That would save me writing code for handling headers, offsets, etc. Luc Le Blanc -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Making 1.5 fonts
What tools are people using to produce Palm OS 1.5 fonts? George Henne NS BASIC Corporation http://www.nsbasic.com -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Making 1.5 fonts
What tools are people using to produce new Palm OS 1.5 fonts? George Henne NS BASIC Corporation http://www.nsbasic.com -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re(2): Making 1.5 fonts
I missed that - the manual says only 72 and 144 are supported. However, the history indicates that 108 is also supported. pilrc.sf.net On Mon, Sep 29, 2008 at 8:44 AM, George Henne [EMAIL PROTECTED] wrote: What tools are people using to produce new Palm OS 1.5 fonts? George Henne NS BASIC Corporation http://www.nsbasic.com -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/ -- Thanks and best regards, Ryan Rix TamsPalm - The PalmOS Blog Jasmine Bowden - Class of 2009, Marc Rasmussen - Class of 2008, Erica Sheffey - Class of 2009, Rest in peace. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
How can I call shared libraries at runtime?
I'm an experienced programmer, but quite new to the Palm environment and CodeWarrior. My goal is to be able to open and use Shared Library routines. I have almost achieved my goal. I can Find a Shared Library. I can Open a Shared Library. I know which custom function number I want to call. I know how many arguments the function takes from .inf files. I have a fairly decent idea as to what types of arguments I have. I have a fairly decent idea as to what return type I will see. This is what I need to know. Without using header files that compile in function prototypes for every library, how can I call these functions? Will I have to manually push my args on to the stack, and somehow call the relevant trap? Does anyone have any other related suggestions? Thanks, Marcus [EMAIL PROTECTED] George Henne NS BASIC Corporation http://www.nsbasic.com Orders: 416 264-5999Fax: 416 264-5888 -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Shared Libraries at Runtime
I'm an experienced programmer, but quite new to the Palm environment. The project I'm working on is NSBasic/Palm. My goal is to be able to open and use Shared Library routines. I have almost achieved my goal. I can Find a Shared Library. I can Open a Shared Library. I know which custom function number I want to call. I know how many arguments the function takes from .inf files. I have a fairly decent idea as to what types of arguments I have. I have a fairly decent idea as to what return type I will see. This is what I need to know. Without header files that compile in function prototypes for every library, how can I call these functions? Will I have to manually push my args on to the stack, and somehow call the relevant trap? Does anyone have any other related suggestions? Thanks, Marcus [EMAIL PROTECTED] -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Beginner programming questions
NS Basic/Palm should probably also be mentioned in this thread. It's not free ($99), but is a real programming environment, not a forms package. For people with Visual Basic experience, it's the easiest way to get going. George Henne NS BASIC Corporation http://www.nsbasic.com Orders: 416 264-5999Fax: 416 264-5888 -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Visual Basic on Palm?
Does anyone know anything about the VB development environment for the Palm? Don't forget to have a look at NS Basic/Palm as well! http://www.nsbasic.com/palm George Henne NS BASIC Corporation http://www.nsbasic.com Orders: 416 264-5999Fax: 416 264-5888 -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
odd parity (or is parity odd?)
I'm used to a world with choices like even, odd and none for parity. I've even worked with mark and space. The Palm OS choices seem to be none, on and even. Just what is 'on'? George Henne NS BASIC Corporation http://www.nsbasic.com Orders: 416 264-5999Fax: 416 264-5888 -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: VB liked Palm development - part II
*SF - Pro Filters on DB HS conduit to move tables (VB and access support) Keybord on fields - Cons Runtime costs *SB - Pro Menu Function Data type Run time free Preformance - Cons Table low level functions No HS conduits (it requires Scout Sync that it is not free) *VB -Pro Uses MS VB for development -Cons NS Basic/Palm -Pro Menu Function Data type Run time free full database access low cost support small or no runtime -Cons no tables no HS conduits George Henne NS BASIC Corporation http://www.nsbasic.com Orders: 416 264-5999Fax: 416 264-5888 -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: VB liked Palm development
I've remained quiet in this discussion for obvious reasons, but if you're looking for VB-like programming environment, NS Basic/Palm is a good candidate. It's got a good price ($99.95), small runtime (90k) and we're fanatical about supporting it. It's been out long enough so that it's relatively stable. Bar code and IR support should be ready soon: we're adding new stuff to the product regularly. Feel free to email me with questions. http://www.nsbasic.com George Henne NS BASIC Corporation http://www.nsbasic.com Orders: 416 264-5999Fax: 416 264-5888 -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: GPS units
I use the garmin 12 and really like it. I have been looking at the Rand McNalley gps that clips onto the palm. that seems to be a nice compact unit, but don't know much about it. It, like the earthmate from delorme are only useful when connected to a palm or pc, where something like the garmin can be used with or without a palm or pc. Skip Williams Charles Rezsonya [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] what is the best gps unit for a palm IIIc. i'm looking for a variety of them so a link list to some would be helpful, or just whatever people have experiance with -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Recommended IDE
Have a look at NS Basic/Palm as well. It's very widely used. George Henne NS BASIC Corporation http://www.nsbasic.com I'm getting ready to start a new project for the Palm PDAs. What IDE/Compiler would you all recommend? I have looked at Handheld- Basic and Garnet OS Dev Suite a little bit. I have seen a few people mention CodeWarrior but I haven't been able to find it - it looks like it was bought out. /** Heath Schaefer Product Engineer Sporlan Division, Parker Hannifin Corporation 636.239.7711 x243 **/ PLEASE NOTE: The preceding information may be confidential or privileged. It only should be used or disseminated for the purpose of conducting business with Parker. If you are not an intended recipient, please notify the sender by replying to this message and then delete the information from your system. Thank you for your cooperation. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: multi segmentation application
Thanks Ganesh, Multi-segment applications require that runtime libraries and other startup code be in the first group of the Segment view of the Project window first group of the Segment means the top most segment in Segment view? Or we need some settings in order to make it first? regards, George - Original Message From: Ganesh Pisal [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, August 28, 2007 4:04:37 PM Subject: re: multi segmentation application George wrote: Hello everyone, I am using Code Warrior 9 and developing an application for Palm platform. The size of application exceeds 64k and I want to make the application multi-segment. In more details, I want to create multiple prc files. Do you think this solution is workable? I have also searched Code Warrior 9 related documents, especially targetting Palm document. But I can not find any detailed tutorials or samples of how to devide the application into multiple segments. Are there any detailed reference materials? thanks in advance, George * To convert a single-segment application project into a multi-segment application project: 1) Create a new build target for the multi-segment application. In your Palm OS application project, create a new build target for the multi-segment application, copied from the single-segment application target. Creating the multi-segment application target this way ensures that you use the same files and settings used by the single-segment application. 2) Change the multi-segment application build target settings. Uncheck the Link Single Segment checkbox in the 68K Linker settings panel. 3) Replace the runtime libraries. 4) Multi-segment applications use different runtime libraries and files than single-segment applications. 5) Rearrange the link order in the Segments view of the Project window. Multi-segment applications require that runtime libraries and other startup code be in the first group of the Segment view of the Project window Regards, Ganesh Pisal www.skyscape.com email : [EMAIL PROTECTED] -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/ Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when. http://tv.yahoo.com/collections/222 -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
multi segmentation application
Hello everyone, I am using Code Warrior 9 and developing an application for Palm platform. The size of application exceeds 64k and I want to make the application multi-segment. In more details, I want to create multiple prc files. Do you think this solution is workable? I have also searched Code Warrior 9 related documents, especially targetting Palm document. But I can not find any detailed tutorials or samples of how to devide the application into multiple segments. Are there any detailed reference materials? thanks in advance, George Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=listsid=396545433 -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: multi segmentation application
Thanks Borszczuk, Could you provide some key words for me to search this forum? Or provide some links which you think is useful in this forum? Multi-segment application in a single prc is something new to me. :-) regards, George - Original Message From: Borszczuk [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Monday, August 27, 2007 3:09:00 AM Subject: Re: multi segmentation application Lin George wrote: Hello everyone, I am using Code Warrior 9 and developing an application for Palm platform. The size of application exceeds 64k and I want to make the application multi-segment. In more details, I want to create multiple prc files. Do you think this solution is workable? No. What you need is to span your code across mutiple segments in single prc. Search the archive of this group for how to do this in CW as it was discussed before -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/ Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. http://tv.yahoo.com/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: multi segmentation application
Great thanks, Borszczuk! regards, George - Original Message From: Borszczuk [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Monday, August 27, 2007 1:07:58 PM Subject: Re: multi segmentation application Lin George wrote: Could you provide some key words for me to search this forum? Or provide some links which you think is useful in this forum? Multi-segment application in a single prc is something new to me. :-) feed segment application palm code warrior to google -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/ Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: multi segmentation application
Great thanks Marcin! regards, George - Original Message From: Marcin Orlowski [EMAIL PROTECTED] To: Lin George [EMAIL PROTECTED] Sent: Monday, August 27, 2007 1:04:46 PM Subject: Re: multi segmentation application Lin George wrote: Thanks Borszczuk, Could you provide some key words for me to search this forum? Or provide some links which you think is useful in this forum? Multi-segment application in a single prc is something new to me. :-) feed segment application palm code warrior to google Regards, -- Daddy, what Formatting drive C: means?... Marcinhttp://wfmh.org.pl/carlos/ Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center. http://autos.yahoo.com/green_center/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re(2): What's up with AppForge the company?
AppForge is definitely gone. All of the www.appforge.com pages are going to Oracle for me. Some of the subdomains (support., forum.) are still going to the AppForge servers. http://www.channelregister.co.uk/2007/03/28/appforge_mystery/ says they're gone, versus http://www.pr-inside.com/access-global-partner-program-continues-to- r77294.htm which says they're an Access partner. There was a domain registry change on April 2. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Difference between Cobalt and Garnet
No devices running Cobalt ever shipped. The project was abandoned two years ago. Is that enough detailed stuff? :-) Hi All For my knowledge only , I just want to know the difference between Palm OS Cobalt and Garnet. Why one is highly used and other not ? Example of the Cobalt and Garnet Devices etc etc etc I would be highly thankful if someone can provide some detailed stuff to read on it. Shruti TV dinner still cooling? Check out Tonight's Picks on Yahoo! TV. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http:// www.access-company.com/developers/forums/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Recording incoming calls
Legally, i believe you have to warn the other party that the phone call is being recorded. Otherwise, be careful with that data. -George On 3/23/07, Smitha V. Babu [EMAIL PROTECTED] wrote: Hi... Is there any way to record incoming calls in PalmOS. I want to save the recorded files in wave format Regds smitha -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michal Seliga Sent: Thursday, March 22, 2007 7:32 PM To: Palm Developer Forum Subject: Re: SMS receiving notification or event no, you were mislead for this what you need check phone library and sms library (sdk from pluggedin.palmone.com), especially search for phone events. i think there is some code how tou use it in its samples Syed Mahmood Husain wrote: Hello all, I am developing an application for Palm OS Garnet (Treo 650) using Palm OS Developer Suite. In this application I want to perform some action when a SMS is received on my device. I have made some research and find out that we can get notification when a SMS is recived on the device using Exchange manager (Exchange libraries). And in the docs with Palm OS Developer Suite found following information: You use the Exchange Manager to send and receive typed data objects. The Exchange Manager interface is independent of the transport mechanism. You can use IR, SMS, or any other protocol that has an Exchange Manager plug-in called an exchange library. This is the para of chapter Object Exchange of Palm OS Programmer's Companion. I have read the chapter I think I can perform this task using Exchange Manager. Am I on right track? If so any code sample (regarding SMS notification) using Exchange Manager will be very helpfull. If I am not on right track please guide me on this. Regards, Syed Mahmood Husain -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
How to download 1.2 developer suite?
Palm, I've logged into the Palm developer pavilion, but I cannot download the 1.2developer suite. Any one have any pointers, or can point me to a mirror site? George -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Automating screen calibration.
I'm trying to write a program (for Treos) that will cause a hard reset and then step through the setup without user actions. I found a way to do the hard reset in code but can't find a way to simulate/bypass the screen calibration screen taps. Is there any way to do it? Also is there a way to send a code that will unlock the Keyguard? I know how to wake the screen up in code but unable to get past the Keyguard to allow other actions to be performed. Thanks, George -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re(2): Palm File's structure
Does this help you? http://www.nsbasic.com/palm/info/technotes/TN34.htm George Henne NS BASIC Corporation http://www.nsbasic.com Excuse me, As said by Aarn Aadiri I forgot t specify that I'm asking abou desktop side. And where can I find the documetation of the on-divice file format ? thanx -- 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: multi-threaded application in Palm OS 5.2
Could you please stop quoting whole message just to write a few lines? I am very sorry Borszczuk! I have not even noticed it. :-) I will take it into consideration in the future! regards, George Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: multi-threaded application in Palm OS 5.2
Thank you Aaron! The hacking ways are interesting. I will consider it if I could not find other official ways. :-) regards, George - Original Message From: Aaron Ardiri [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, December 12, 2006 5:21:47 PM Subject: Re: multi-threaded application in Palm OS 5.2 unofficially... in my professional opinion; the original poster doesn't have these abilities. so, NO NO and NO to his questions. palmsource will always have this stance as well - because its NOT OFFICIALLY DOCUMENTED. my understanding is that the KERNEL implements some form of green-threads (managed threads); so, if any callback takes too much time - the device will tend to lock up. so, if you put your code in an infinite loop - regardless where you are - consider your application fried and reset is required. some developers have managed how to tweak the os to their needs; but, it causes the applications to be limited to a certain set of devices. -- // Aaron Ardiri -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ Have a burning question? Go to www.Answers.yahoo.com and get answers from real people who know. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: multi-threaded application in Palm OS 5.2
Hello Roger, I appreciate your help and others as well. I understand your points and they are helpful. But what I want to do it to port some Windows Mobile applications, which use true multi-task (multi-thread more accurately). The differences of multi-task senses between my application and the solution you mentioned are, 1. Not a hacking way by using un-documented features; 2. Callback function is not working in all cases of a true multi-threaded (for example, an elegant producer -- consumer case, backtest sample in financial stock exchange simulation -- one thread to simulate one user to make stock deal, other types of games ...). Because callback function works on per notification basis, but multi-task application concept is beyond that. What I concern is the *true* multi-task environment, which supports generally all kinds of multi-threaded application (for example, the two samples I listed above). Could Palm OS 5.2 be capable of doing it? regards, George - Original Message From: Roger Stringer [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Wednesday, December 13, 2006 12:05:08 AM Subject: Re: multi-threaded application in Palm OS 5.2 You are trying to over-think the situation and you've received good information in response to your prior e-mails. Palm OS has one foreground user task. But other programs can and do get called in the background in response to Launch codes and Notifications. So you need read the documentation on those two, and understand them. Roger Stringer Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: multi-threaded application in Palm OS 5.2
Thanks Pinus! Your answer is very clear and brief -- just what I needed. regards, George - Original Message From: Pinus Alba [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Wednesday, December 13, 2006 3:00:26 PM Subject: Re: multi-threaded application in Palm OS 5.2 Hi Lin, PalmOS does not support multi-tasking or multi-threaded operations. There is no support for Inter Process Communications. You will have to re-engineer any existing multi-tasking/multi-threaded/Inter Process Communication/Semaphore currently used in your Windows Mobile application. Regards, Any questions? Get answers on any topic at www.Answers.yahoo.com. Try it now. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: multi-threaded application in Palm OS 5.2
Thanks Aaron! I want to confirm with you that, you mean each process can only have one thread, right? Other issues are, 1. are there any ways to do inter-process communication, like what we did on Linux/UNIX by using pipe/shared memory? 2. If the answer to 1 is yes, are there any inter-process synchronization control approaches, like what we did on Linux/UNIX by using mutex/lock? regards, George - Original Message From: Aaron Ardiri [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Monday, December 11, 2006 6:26:00 PM Subject: Re: multi-threaded application in Palm OS 5.2 On 12/11/06, Ben Combee [EMAIL PROTECTED] wrote: On 12/10/06, Lin George [EMAIL PROTECTED] wrote: In my current understanding, Palm OS 5.2 only supports one application (process) one thread -- means each process could only have one thread. Is my understanding correct? You neither have multiple threads or multiple processes in standard Palm OS programming. To switch applications, the current one ends, then the system starts the new one. There is a limited background thread capability exposed through the sound stream APIs. Also, applications can register for notifications where their routines will be called while other programs are running. this is the official palmsource response. there is however, the ability to run true threads on palmos - the API is system use-only, however, it is really supposed to be used for small, simple tasks. how do you think your sms messages get delivered in the background? some developers may have been able to tune into this - but, its not official. i know for sure; i use it to get more accurate timing for nilEvent processing when doing animations and games. i dont know what the limitations are while using the threads - for example; you may be restricted to a certain set of API's and semaphore states in the callbacks. official answer: no un-official answer: yes, but - if you dont know how - forget it. -- // Aaron Ardiri -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: multi-threaded application in Palm OS 5.2
Thanks Aaron! As you mentioned, we could use global memory to share information between two processes, are there any approaches to do process synchronization, like lock/mutex on Linux? regards, George - Original Message From: Aaron Ardiri [EMAIL PROTECTED] To: Lin George [EMAIL PROTECTED] Sent: Tuesday, December 12, 2006 2:38:25 AM Subject: Re: multi-threaded application in Palm OS 5.2 On 12/11/06, Lin George [EMAIL PROTECTED] wrote: Thanks Aaron! I want to confirm with you that, you mean each process can only have one thread, right? you can technically have more than one thread. the audio streaming API is a seperate thread - in addition to the GUI thread. you can even add more threads if you know the API's Other issues are, 1. are there any ways to do inter-process communication, like what we did on Linux/UNIX by using pipe/shared memory? no. you cannot have two processes running at once; there is only one process (your application). if you want to share information between these threads you can use global memory 2. If the answer to 1 is yes, are there any inter-process synchronization control approaches, like what we did on Linux/UNIX by using mutex/lock? answer to 1 is no. you can have multi-threads, not multi-processes -- // Aaron Ardiri Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: multi-threaded application in Palm OS 5.2
Thanks Dmitry! I am confused. I think from your reply, we could implement safe inter-process synchronization using mutex (on global memory), right? But it seems that Aaron do not agree that there are any inter-process communication? regards, George - Original Message From: Dmitry Grinberg [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, December 12, 2006 3:03:51 AM Subject: Re: multi-threaded application in Palm OS 5.2 there is no memory protection in palmos so if process A allocates a chunk, nothing stops process B from reading (or writing) it. there IS semaphore, mutex, mailbox and event group api, but what Aaron said stands for these as well. On 12/11/06, Lin George [EMAIL PROTECTED] wrote: Thanks Aaron! I want to confirm with you that, you mean each process can only have one thread, right? Other issues are, 1. are there any ways to do inter-process communication, like what we did on Linux/UNIX by using pipe/shared memory? 2. If the answer to 1 is yes, are there any inter-process synchronization control approaches, like what we did on Linux/UNIX by using mutex/lock? regards, George - Original Message From: Aaron Ardiri [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Monday, December 11, 2006 6:26:00 PM Subject: Re: multi-threaded application in Palm OS 5.2 On 12/11/06, Ben Combee [EMAIL PROTECTED] wrote: On 12/10/06, Lin George [EMAIL PROTECTED] wrote: In my current understanding, Palm OS 5.2 only supports one application (process) one thread -- means each process could only have one thread. Is my understanding correct? You neither have multiple threads or multiple processes in standard Palm OS programming. To switch applications, the current one ends, then the system starts the new one. There is a limited background thread capability exposed through the sound stream APIs. Also, applications can register for notifications where their routines will be called while other programs are running. this is the official palmsource response. there is however, the ability to run true threads on palmos - the API is system use-only, however, it is really supposed to be used for small, simple tasks. how do you think your sms messages get delivered in the background? some developers may have been able to tune into this - but, its not official. i know for sure; i use it to get more accurate timing for nilEvent processing when doing animations and games. i dont know what the limitations are while using the threads - for example; you may be restricted to a certain set of API's and semaphore states in the callbacks. official answer: no un-official answer: yes, but - if you dont know how - forget it. -- // Aaron Ardiri -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- Best Regards, Dmitry Grinberg Software Engineer, http://PalmPowerups.com (847) 226 9295 AIM: DmitryGrinberg MSN: [EMAIL PROTECTED] ICQ: 165589894 Y! IM: dmitrygr2003 -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ Need a quick answer? Get one in minutes from people who know. Ask your question on www.Answers.yahoo.com -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: multi-threaded application in Palm OS 5.2
Thanks Lynn! Could you try to answer my original issue please? :-) 1. whether Palm OS 5.2 supports multi-thread model inside one process? 2. whether inter-process communication (for information sharing purpose) is supported? 3. whether inter-process synchronization is supported? like mutex? regards, George - Original Message From: Lynn Allan [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, December 12, 2006 9:37:04 AM Subject: Re: multi-threaded application in Palm OS 5.2 Is it possible to have the equivalent of OnIdle background processing? I would like to have the app start quickly and show a screen that showed info that was cached from when it previously closed. In the backgound, a large file would be unzipped into FeatureMemory (for example). -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ Yahoo! Music Unlimited Access over 1 million songs. http://music.yahoo.com/unlimited -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: multi-threaded application in Palm OS 5.2
Hi Dmitry! What you two are dicussing is only one specific case of multi-task (either thread or process), which is implemented by Palm's built-in event handling approach... How about a general multi-task case (either thread or process)? Like a producer -- consumer model? Is it possible to implement gracefully on Palm? regards, George - Original Message From: Dmitry Grinberg [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, December 12, 2006 9:53:23 AM Subject: Re: multi-threaded application in Palm OS 5.2 on idle is REALLY easy. subscribe to sysNotifyIdleTimeEvent, and when you get it, do a bit of processing. this way you will not slow down the device. BUT of course battery life will suffer as instead of sleeping the processor will do your background processing. On 12/11/06, Lynn Allan [EMAIL PROTECTED] wrote: Is it possible to have the equivalent of OnIdle background processing? I would like to have the app start quickly and show a screen that showed info that was cached from when it previously closed. In the backgound, a large file would be unzipped into FeatureMemory (for example). -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- Best Regards, Dmitry Grinberg Software Engineer, http://PalmPowerups.com (847) 226 9295 AIM: DmitryGrinberg MSN: [EMAIL PROTECTED] ICQ: 165589894 Y! IM: dmitrygr2003 -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ Want to start your own business? Learn how on Yahoo! Small Business. http://smallbusiness.yahoo.com/r-index -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: multi-threaded application in Palm OS 5.2
Thanks Ton! Is it possible to implement the traditional producer -- consumer model of multi-task (either multi threaded or multi process) on Palm 5.2? I ask this question because from your reply, it seems that OS 5.2 only have very limited model of multi task. It is not a general multi task model -- multi-task information sharing, multi-task synchronization? Any comments? regards, George - Original Message From: Ton van Overbeek [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, December 12, 2006 10:52:15 AM Subject: Re: multi-threaded application in Palm OS 5.2 On 2006-12-12, Dmitry Grinberg [EMAIL PROTECTED] wrote: on idle is REALLY easy. subscribe to sysNotifyIdleTimeEvent, and when you get it, do a bit of processing. this way you will not slow down the device. BUT of course battery life will suffer as instead of sleeping the processor will do your background processing. http://www.palmos.com/dev/support/docs/palmos/Notifications.html#1046866 On 12/11/06, Lynn Allan [EMAIL PROTECTED] wrote: Is it possible to have the equivalent of OnIdle background processing? I would like to have the app start quickly and show a screen that showed info that was cached from when it previously closed. In the backgound, a large file would be unzipped into FeatureMemory (for example). This is not exactly what Lynn wants, but it should do the trick. The app will receive sysNotifyIdleTimeEvent even when it is not the current app. Of course it has to subscribe to the notification as soon as HotSync is finished (syncNotify launch code). To not block the device, it should decompress to Feature memory only a piece at a time. HTH Ton van Overbeek -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ Want to start your own business? Learn how on Yahoo! Small Business. http://smallbusiness.yahoo.com/r-index -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: multi-threaded application in Palm OS 5.2
Thank for clarification Lynn! I am really confused by previous answers... and I am looking for an official one. Before asking this question, I have referred Palm developer guide (the several hundred page book), but no concrete/detailed answers except some general/high level answer from beginning part... What I want to do is to port an application from Windows Mobile to Palm. I used multi-task technologies in my Windows Mobile application, and if Palm does not support... I will implement some native technologies to lock/synchronize processes, for example, create lock files on SD card. But if Palm OS 5.2 supports multi-task technology, I will save my time on implementing this!! :-) So, any official answers? regards, George - Original Message From: Lynn Allan [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, December 12, 2006 12:32:14 PM Subject: Re: multi-threaded application in Palm OS 5.2 This Palm newbie wasn't at all attempting to answer your question ... just wanted to ask a related question. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: multi-threaded application in Palm OS 5.2
Thanks Trevor! Sorry I may make your confused. What I mean is not to verify whether multithread exists on Palm OS 5.2 But to discuss 1. whether there are any approaches to share information (like someone mentioned, global memory could be used for this purpose, is that correct?) between different processes 2. and synchronize the processes' operations (are there any approaches like Linux similar mutex?). Could you kindly comment on the two questons above please? Thanks again. regards, George - Original Message From: Trevor MacPhail [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, December 12, 2006 1:48:41 PM Subject: Re: multi-threaded application in Palm OS 5.2 As other people have already pointed out, Palm OS does not have any support for multi threaded applications. There really only is even one application running at a time. The closest you can get is using events like sysNotifyIdleTimeEvent to repeatedly receive events from the OS. However you still need to make sure that the amount of processing you do each time you receive the event is small so that you can return control back over to the OS so you can receive another because the OS isn't going to preempt it. And so on. -- Trevor On 11-Dec-06, at 9:39 PM, Lin George wrote: Thank for clarification Lynn! I am really confused by previous answers... and I am looking for an official one. Before asking this question, I have referred Palm developer guide (the several hundred page book), but no concrete/detailed answers except some general/ high level answer from beginning part... What I want to do is to port an application from Windows Mobile to Palm. I used multi-task technologies in my Windows Mobile application, and if Palm does not support... I will implement some native technologies to lock/synchronize processes, for example, create lock files on SD card. But if Palm OS 5.2 supports multi-task technology, I will save my time on implementing this!! :-) So, any official answers? regards, George - Original Message From: Lynn Allan [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, December 12, 2006 12:32:14 PM Subject: Re: multi-threaded application in Palm OS 5.2 This Palm newbie wasn't at all attempting to answer your question ... just wanted to ask a related question. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ __ __ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com -- 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/ Need a quick answer? Get one in minutes from people who know. Ask your question on www.Answers.yahoo.com -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: multi-threaded application in Palm OS 5.2
Thanks Ben buddy! I ask this question because I noticed in the new release Notes of Palm OS, there are some announcement of multi-threaded support, right? I have a further question about your reply below, Also, applications can register for notifications where their routines will be called while other programs are running. I have some experience on Palm programming. But I have no experience of what you mentioned above. Is that something like Inter-Process Communication and Synchronization approach (like IPC on Linux/UNIX)? Could you provide a formal URL to the related Palm developer document please? have a nice week, George - Original Message From: Ben Combee [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Monday, December 11, 2006 7:20:30 AM Subject: Re: multi-threaded application in Palm OS 5.2 On 12/10/06, Lin George [EMAIL PROTECTED] wrote: In my current understanding, Palm OS 5.2 only supports one application (process) one thread -- means each process could only have one thread. Is my understanding correct? Another quick question, if I am right for the previous point (one process can only have one thread), is it possible to do communication/information sharing between different processes on Palm OS 5.2? Like pipe similar communication, and other approaches? Is it possible to do cross-process synchronization, like mutex/lock/etc. You neither have multiple threads or multiple processes in standard Palm OS programming. To switch applications, the current one ends, then the system starts the new one. There is a limited background thread capability exposed through the sound stream APIs. Also, applications can register for notifications where their routines will be called while other programs are running. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Converting Palm Date(seconds) to display on a PC.
I'm currently writing a code that retrieves the file information from a TREO and displays it on a PC. Problem I'm having is finding the library that contains the DateSecondsToDate function so I can use it on a PC. Is there such a thing or does that function only work on Palm devices? -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: upperscript 2...
Try the following: When typing in the label and you get to where you want the superscripted 2 hold down the 'Alt' key while typing 0178 on the key pad. George -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jorge Vasquez Sent: Monday, November 13, 2006 3:16 PM To: Palm Developer Forum Subject: upperscript 2... Regards, Anybody knows how can I write an upperscript 2 to represent (squared meters, i.e, m2) in a label. Thanks, -- Jorge Andres Vasquez -- 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/
Limit of 18 forms for fnav?
Is there a limit of 18 fnav enabled forms on devices like the E2 and TX? I've created a simple project with 18 forms, each with an fnav resource. The app runs fine on POSE, the Simulator and all the devices I have. Each form has just one button on it. If I add one more form to the project for a total of 19, it still works fine on POSE, the PalmSource Simulator and OS4 devices. On the E2 and TX, the device resets as soon as the icon is tapped. The PalmSource simulator works fine, so it's not simply an OS5 thing. Any ideas? George Henne NS BASIC Corporation http://www.nsbasic.com -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Limit of 18 forms for fnav?
I think I have a solution for this. The problem does not happen if you set hsNavFlags to AppFocusStartState. You get the problem if hsNavFlags is defaultStartStateValue or objectFocusStartState. Why this should be so is another matter. Is there a limit of 18 fnav enabled forms on devices like the E2 and TX? I've created a simple project with 18 forms, each with an fnav resource. The app runs fine on POSE, the Simulator and all the devices I have. Each form has just one button on it. If I add one more form to the project for a total of 19, it still works fine on POSE, the PalmSource Simulator and OS4 devices. On the E2 and TX, the device resets as soon as the icon is tapped. The PalmSource simulator works fine, so it's not simply an OS5 thing. Any ideas? George Henne NS BASIC Corporation http://www.nsbasic.com -- 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: Attending Linux World Expo?
I plan to attend, thanx. On 8/9/06, Eric Lyons [EMAIL PROTECTED] wrote: Who will attend the PalmSource Developer Day at the Linux World Expo fromthis forum? http://www.linuxworldexpo.com/live/12/events/12SFO06A/conference/CC782786Let's get a head count from this group.Please reply to this post if you're attending.Thank you,Eric Lyons --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: Getting the processor temperature
Perhaps certain characteristics of the processor or board degrade deterministically with temperature and you can use this info. I guess you would have to check with the manufacturer. -g On 6/14/06, Luc Le Blanc [EMAIL PROTECTED] wrote: Did I just dream this, or can the processor temperature be known by some hidden feature? I would need this info to perform physical computations, and the processor temperature would be a good enough approximation to ambient temperature. --Luc Le Blanc--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: Missing Address Book source code in SDK5-R4
Yes...it took a while to segment. Basically, you have to go through each header file and add segment macros. Additionally, there are some source files that contain private functions...these will also need to be segmented. -g On 6/14/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Were you able to find this code for PODS?I found the source code, but set up for CodeWarrior, and can not get it working in PODS.The app needs to be segmented, and my attempts are failing. --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(2): New to Palm - Need advice on how dev project
If you like working with Basic, have a look at NS Basic/Palm: http://www.nsbasic.com/palm Let me know if you have questions! George Henne NS BASIC Corporation http://www.nsbasic.com You might consider PocketStudio, which is modeled on Delphi, or PP Compiler which is another Pascal for Palm. Just some ideas... http://www.ppcompiler.org/download.php?lng=en http://www.winsoft.sk/pstudio.htm In your message regarding Re:New to Palm - Need advice on how dev project dated Fri, 17 Feb 2006 00:29:41 -, [EMAIL PROTECTED] said that ... Thanks for your response. I don't much prefer either language, as I use C and/or Pascal (Delphi). But I am more familiar with Basic. Tony -- 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/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re(2): [OT, kind of] Best way to convert Palm app to Pocket PC
At 03:15 AM 1/8/2006, you wrote: I have a Palm OS app that I would like to make available to those who use Pocket PC. I could use some some pointers and ideas. Why not give StyleTap a try? http://www.styletap.com/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re(2): What Palm Development software do I need ?
Plus, there is NS Basic/Palm... http://www.nsbasic.com Another option - CASL (www.caslsoft.com) is similar to Basic, compiles to machine code (uses GCC), is fast, and is pretty close to write-it-once for both Palm and WM. Trial version for development of freeware is free, if you do commercial development registration is still pretty cheap. /js In your message regarding re: What Palm Development software do I need ? dated Mon, 19 Dec 2005 04:05:43 -, Greg said that ... You may find the C environment of PODS a bit of a steep learning curve. I would look at PDAToolbox if you want to build something faster: www.pdatoolbox.com Also look at HB+ at www.handheldbasic.com, much easier than C, but not quite as easy as PDAT. Good luck. 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/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re(2): Palm OS Development is a mess
Well, I've seen 2003 targetted with VS 2005 - it is in fact the default target. You have to install extra stuff to use Windows Mobile 5. Still you can't target 2003 *not-SE* with VS 2005. The differences are few, but there are some, so we can't do without eVC4. -- Regards, Mikhail Barashkov Handydev, http://www.handydev.com ...and you need eVC3 for older devices, too. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Z22 Sim thinks it's a LifeDrive?
On an actual device, the Device ID is D051. HAL is P051. When I run the line below, the Z22 Release Simulator returns a device id of 'TunX'. error = FtrGet (sysFtrCreator, sysFtrNumOEMDeviceID, deviceID); That id happens to be reserved for the LifeDrive. Is this just a quirk of the simulator? I noticed some curious lines in the Z22 sim ini file -- Tigga.ini: HAL_ID=aTuX DALFtr_1=psys,0x0015,0x54756E58; Device ID ('TunX') I can only hope that this is not reported back on a real Z22. --Mike Y. http://www.ytechnology.com -- 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/
5-way navigation button of the Tungsten E2
Hello, Recently, we received reports that our products do not support Page Up/Page Down of the 5-way navigator on the Tungsten E2 device. Page Up/Page Down, however, work on the E2 Simulator. 1. Has anyone else encountered this problem and what's the reason for it? 2. How can we simulate the 5-way button on the E2 Simulator? Thank you. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
HUMOR: Wifi speed spray
Things have been getting a bet serious here lately. Let's talk about innovations that will really help! http://j-walk.com/other/wifispray/ What will they think of next ?? -;) George Henne NS BASIC Corporation http://www.nsbasic.com -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re(2): trouble with serial communcation -- SrmSetWakeupHandler
There's an interesting item that was in the PalmSource KB, Answer 413 (I can't verify if it is still there right now - the developer pavilion appears to be down): The Palm Application Compatibility Environment (PACE) is not interrupt safe so 68K applications running through PACE may experience problems if they attempt to run during an interrupt. A couple of ramifications of this are: SysNotifyBroadcastFromInterrupt is non existent through PACE in Palm OS 5. Developers should check the OS version before they attempt to make this call. Serial Wakeup Handlers set with SrmSetWakeupHandler may work inconsistently under different versions of OS 5 and will not work at all via the Palm OS 5 Simulator. In general, developers should avoid using serial wakeup handlers in OS 5. **If you do attempt to use wakeup handlers in an OS 5.0 environment note that they will only work while the application that set the wakeup handler is still active. This is fixed in OS 5.2, but the wakeup handler itself should be stored in a memory location separate from the application (such as copying the function into a FtrPtr and setting the wakeup handler to this FtrPtr). example: //The size of the handler function can be calculated by subtracting the memory location //of the handler function from the next function in your code resource. sizeOfPatch = (UInt32)((UInt32)FunctionAfterHandler- (UInt32) HandlerFunction); //allocate a FtrPtr the size of our handler and then copy it in. FtrPtrNew(appFileCreator, ourFuncFeature, sizeOfPatch, funcP); if (funcP) { //copy callback function to the above address. DmWrite(funcP, 0, (MemPtr)HandlerFunction, sizeOfPatch); } -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re(2): Standard Palm fonts on Windows?
AFAIK, it's not legal. Many years ago, when we started our Palm OS product, we were able to license them from Palm. This was in 2000. I don't know who you would ask today. The font's themselves are Mac NFNTs. This is a well known format and some of the tools that work with fonts can convert to/from mac NFNT. This is an older bitmap format. If you can find the fonts in the ROM, you can extract them to a flat file with PRCExplorer. Do some magic to get them into MacOS resource fork format, and them convert to true type. It maybe ugly, but it should work. The real question will be is it legal? Who owns the rights to those fonts? -E -Original Message- From: Stadin, Benjamin [mailto:[EMAIL PROTECTED] Sent: Saturday, July 30, 2005 2:48 PM To: Palm Developer Forum Subject: re: Standard Palm fonts on Windows? Do you know a tool to convert Palm standard fonts to Windows fonts (TTF)? Or are the standard fonts available somewhere? Regards Benjamin Stadin I know this isn't usual. But does anyone have a suggestion for this? From Windows to Palm fonts seems easy, but what's the other way around? I want my application that generates text databases to have the same text layout like on the Palm (only the 4 standard latin Palm fonts will be used (normal, normal bold, large, large bold)). Thanks for any suggestions Benjamin Stadin -- 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/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Palm Development
I wouldn't be doing my job if I didn't mention NS Basic/Palm here. We've had quite a few Appforge people switch to NS Basic recently. They all mention the cost of doing business with AF as the main reason when they come over, but are also quite happy with the results. Please feel free to contact me off list if you have questions! George Henne NS BASIC Corporation Hi, i've been developing for palm OS for about 3years... i've worked with satforms ,websphere,and AppForge Crossfire and now i have some problems On the websphere side, java is still too limited for palm devices on the visal part and performance is not so good. On the satforms side, limited too (on the script side, we need something that implements oop), but performance is better. For about 4 months we've been trying Appforge Crossfire... it is really de best development for palm os (didnt try it for other plataforms), but it have a big problem... they charge extra money for each client(palm device with app) we distibut... so any project will rise a lot in cost... so it is no a great solution So, my question is... what development plataform should we use?? Anything that implements oop and good support for visual controls? ps. CodeWarrior have been discontinued. -- 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: code obfuscator for Palm?
It depends on the development tool you use. You're fine if you use CodeWarrior, PRC Tools or NS Basic. These all compile the code in such a way that you'd have to have a lot of inside knowledge to reverse compile. I do not know about other tools. For Pocket PC, Visual Studio .NET produces code in CLR which does need to be obfuscated; eMbedded Visual Basic does not even have an obfuscator. If you use tools such as eMbedded Visual C++ or NS Basic, you're OK. Anyone know of a utility or tool that does this? Is it even needed? I don't know if it's possible or common to de-compile a .prc into code. I am considering showing an app to a larger developer/publisher, and am worried about sending them a demo and how to protect my IP. I've developed the app on PocketPC as well and Visual Studio has a Obfuscator built in (which doesn't work anyway), so it got me wondering about the Palm side. __ Discover Yahoo! Use Yahoo! to plan a weekend, have fun online and more. Check it out! http://discover.yahoo.com/ -- 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: How to convert XLS file into PDB file?
You can do this with NS Basic/Desktop. This Tech Note tell you how to access files in Office, such as Excel: http://www.nsbasic.com/desktop/info/technotes/TN08.htm The sample 'xls2csv' shows extracting data and writing to a csv file: http://www.nsbasic.com/desktop/info/technotes/TN05.htm But what you really want to is write out to a pdb. This Tech Note tell you how to do this: http://www.nsbasic.com/desktop/info/technotes/TN09.htm ... and there's a sample using the PalmDB control called PalmDatabase http://www.nsbasic.com/desktop/info/technotes/TN05.htm Let me know if you have questions! Hi, I want to create a help file for my project. I like to give this as a PDB file. I heard that I can create contents in XLS and change it as Palm PDB. How to convert XLS file into PDB file? catherine. __ Free antispam, antivirus and 1GB to save all your messages Only in Yahoo! Mail: http://in.mail.yahoo.com -- 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(2): NSBASIC Palm OS
This shouldn't be a problem. How many forms do you have? Probably the best place for NS Basic discussion is our web board - it's very active. You can reach our web board here: http://groups.yahoo.com/group/nsbasic-palm/ The gang there is really helpful! (and yes, we hang out there too) I have been creating a program in NSBASIC. It is a large program which works beautifully on my Tungsten C --up to a point. When I get past 500k, the program starts acting erratic on the Palm. I will tap on one button and a completely unrelated form will appear, etc. This doesn't appear to be a NSB problem, since the program works ok on a simulator. Any ideas why this happens. I have a ton a memory left on the Palm, so that shouldn't be an issue. (And, I haven't gone past the number of enteries on the NSBASIC program.) I have been working on this program for awhile and would greatly appreciate any assistance. Thanks. [EMAIL PROTECTED] -- 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/
accessing VFS?
Hi group, Is there any detailed information concerning the speed of accessing VFS? Are there any alternatives to VFSFileOpen+VFSFileDBInfo for checking a file type on Palm's card? Thanks! George VS ([EMAIL PROTECTED]) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: SERIAL PORT USING IR RAW PALM OS 5.2 (ZIRE 31)
SIR does not work on devices using OMAP processors (such as the Zire 21 and Treo 600). In these, the IR Chip does the framing for IRComm automatically, so SIR transmissions are impossible. Can you use IRCOMM instead? My apps running on the M500 series, Vx, Zire ant Tungsten W. Will not work on the Zire 31 .I open the serial port using the raw ir port and I use the program LdSerLib to load the library serial manager in Zire 31. -- 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(2): INSTANT HELP NEEDED!!!!
Here's a great document: http://www.catb.org/~esr/faqs/smart-questions.html First, pick a descriptive subject line. INSTANT HELP NEEDED!!! sounds a lot like spam or a content-free message, and doesn't encourage people to read your mail. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Off-topic: PalmOS or WinCE
Hi All... Just new to the PDA programming and looking to add PDA integration to some of our products, so I have a few questions that I was hoping to get real developer feedback from: 1. I seem to like the PalmOS tools much better than the WinCE.Net stuff Any comments comparing both the developement and the user aspects would be greatly appreciated. 2. I have looked as CASLSoft for developing... Any comments or alternates? Probably the first of many questions, so thank you all in advance, I'll stay away from the religious wars. One way or the other, most applications can be done on either platform with reasonable success. One thing to look out for: think of the future, not just current devices. Both Windows CE and Palm OS will be making major changes to their architectures in the coming year or two. If you choose your dev tools carefully, they will insulate you from a lot of the hassles that will be caused. We've been doing a lot of work on this here. User's applications written in NS Basic will be able to run without change in Cobalt, Windows CE 5.0 or whatever finally comes out. There are well known and widely used dev tools (among them eMbedded Visual Basic and CodeWarrior) that will not make the jump. George Henne NS BASIC Corporation -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re(2): RAD tools
I'll reply offline to this. If anyone wants a cc, please let me know! George Henne NS BASIC Corporation http://www.nsbasic.com Ok, thanx for your replies. I was not expecting to hear something from people directly related to those development environments, but third- party developers! However, maybe it's worth it if I say what I plan to do with your tools. I'm a member of a really small and new company that aims on PalmOS software development, mostly business/scientific oriented. What we would look in such IDEs would be**: -Windows-side based, WYSIWYG -real RAD environment -work in tandem with emulator/simulator -no runtimes distribution -native 68K code generation and *maybe* also ARM -no binaries size limit (only by hardware) -OS3 and *later* target selection -support for newer hardware with higher resolutions and colors -extensibility thru shared libraries -possibility of shared libraries creation -good support (a free high activity forum-based one is okay) -in some degree, good executable's size and speed. **We look for a 1st-level/standard version, with the already known budget of $200. To buy an enterprise version is quite possible, in a near future. Thank you very much! PS. We have not omitted NS Basic. I only tried to show the underlying programming language (Basic, C/C++ or Pascal) is not a problem. ;) -- 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: RAD tools
You probably should have NS Basic on your list as well. It's probably the most widely used RAD tool. George Henne NS BASIC Corporation http://www.nsbasic.com Hello, I'm new to PalmOS development, and I'm looking for a nice RAD environment. Given my budget, about $200, I have these candidates: http://www.handheld-basic.com http://www.orbworks.com/orbforms/index.html http://www.winsoft.sk/pstudio.htm I've tested them a bit, and I think they are pretty cool, with lot of features, but I would like to hear comments from skilled people, to help me to make a decision. Thanx in advance. -- 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/
dynamic creating of a scrollbar control
Hi group, Is there any way of creating a scrollbar control dynamically? Thanks, George VS ([EMAIL PROTECTED]) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
howto hide caret in text field?
Hi group, Does anyone know how to hide the blinking cursor in a text field? Thanks, George VS ([EMAIL PROTECTED]) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re(2): Palm OS Developer Program
I'm even gone. What's this world coming to? George Henne NS BASIC Corporation http://www.nsbasic.com mmm.. i thought i would check just for fun. it seems my account is gone too :) shameful. thankfully i have mirrored everything i need on my hard drives over the years. i wonder how many non USA based people got removed because of the filtering system? That's very, very bogus, IMO. I don't know what kind of data validation occurred that would kick out your account. Unfortunately, I don't have sufficient access to look up your account to see what happened to it, but I'll pass this on. it would have been better to send an email to the accounts that were to be removed and have a click here to keep the account open type page... but, instead someone decided to just zap the accounts.. thats bad Agreed, although we have suffered from a large number of bogus accounts being created over the life of the developer program, ones with bad email addresses or contact information. Still, I don't know why your account and those of other active developers was tagged as bad. do you have any idea how many creator id's i've registered over the years? i dont even remember them all.. it'll be a nightmare to track them all down; too many. Well, we still have the info from the old system, so if you create a new account, just let us know and we can look that up. it may even be feasible to re-activate all the older accounts. i just tried to register and it still wouldn't let me in. What do you mean by that? It wouldn't let you register at all? If so, what kind of behavior did you see? -- Ben Combee, Technical Lead, Developer Services, PalmSource, Inc. Combee on Palm OS weblog: http://palmos.combee.net/ Developer Forum 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/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
How to highlight list item?
Hello, I have an application that displays a list of entries. When the user clicks the up/down button, I have an event to scroll up and down the list by 1. However, I don't know how to set the cursor (or highlight the item) up and down by 1. Any suggestions? I need some help for this Palm OS newbie. Thanks. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
IR, T3 and SrmPrimeWakeupHandler (Zodiac too!)
I've got a strange problem I can't figure out: T3 and Zodiac devices are hanging (needing a soft reset) after receiving characters from raw IR when I have an outstanding SrmPrimeWakeupHandler. The same code works on most devices: all before Palm OS 5, the Zire 31, etc. It's only the T3 and Zodiac that I see this on. I can receive characters just fine if I don't use a wake up handler. Here is what the code looks like: // prime the wake up handler err=SerSetWakeupHandler(serRef, serialWakeupHandler, (UInt32) gSerialState); err=SerPrimeWakeupHandler(serRef, 1); // The wakeup handler. As far as I can tell, this never gets called: the crash happens first. void serialWakeupHandler(UInt32 refCon) //03.06.02 GH { Boolean *serialStatePtr = (UInt8 *) refCon; //dbug(serialWakeupHandler); *serialStatePtr = kSerialWaitingForData; EvtEnqueueKey('S', 1, commandKeyMask); //2004.10.06 GWH magic values used in keyDownEvent EvtWakeup(); } Any ideas of what it might be or interesting things I could try? George Henne NS BASIC Corporation http://www.nsbasic.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: How to draw low density bmp on high density display?
Hi, The problem is I dont want to ship databases with bitmap families, but rather display bitmap as is so that 1pix in bitmap is rendered to exactly 1phisical devise pixel. What I experience and try to avoid is scaling the bitmap on high-density displays! I tried WinSetScalingMode(kBitmapScalingOff); I tried WinSetCoordinateSystem(kDensityDouble/ kDensityLow); I tried BmpCreateBitmapV3(pBmpV1, kDensityDouble/ kDensityLow, BmpGetBits(pBmpV1)...); I tried WinCreateOffscreenWindow(...nativeFormat/ screenFormat); Nothing worked as targetted. What I need is effect of drawing bitmap (BitmapTypeV3) with kDensityDouble. Thanks! George VS ([EMAIL PROTECTED]) Matt Graham [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] George VS wrote: I have a low density bitmap I wish to draw on high density display without being scaled. Can anyone tell me how is this done? I tried: WinSetScalingMode (kBitmapScalingOff); WinDrawBitmap(bmpP, x, y); but this has none effect ?! When the bitmap uses version3 bmp format, the blitter properly selects high-density bitmap and renders it as I wish. So, how can a 160x160 pix bitmap be rendered on left top portion of the screen on high density display devices? What if you store it as 2 separate bitmap families? One with the bitmap in single density, the other in double density. Then pick the bitmap based on WinGetCoordinateSystem()? /* * Matt Graham * Palm OS Developer * www.healthramp.com */ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
How to draw low density bmp on high density display?
Hi group, I have a low density bitmap I wish to draw on high density display without being scaled. Can anyone tell me how is this done? I tried: WinSetScalingMode (kBitmapScalingOff); WinDrawBitmap(bmpP, x, y); but this has none effect ?! When the bitmap uses version3 bmp format, the blitter properly selects high-density bitmap and renders it as I wish. So, how can a 160x160 pix bitmap be rendered on left top portion of the screen on high density display devices? Thanks! George VS ([EMAIL PROTECTED]) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Image APIs?
Hi group, I am considering building a photo album application. Can anyone give me advice on what Image APIs may be used. Are there any specific APIs for different devices (Palm, Sony, ..., OS5) or a standard can be used. What APIs are used for building the image databases (storing images) and what APIs are used for rendering images on devices. What formats are available. Is there any common image format (say .bmp) that can be used for both Palm and PocketPC devices. Thanks! George VS ([EMAIL PROTECTED]) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re(2): PalmOS-PockectPC x-dev API's
There's a version of NSBasic for each platform, but I understand that it's not the same on all platforms (George, can you elucidate?). ...from the FAQ These devices are all very resource bound. There isn't much memory, cpu speed or screen size. To make a product like this work efficiently, one has to make full use of what is available in the hardware and the ROM. The devices all have very different architectures. Cross OS compatibility has a real overhead cost, and there's not room for overhead on these devices. Futhermore, each operating system has a unique user interface. We wouldn't make people happy if the applications they created for Palm looked like Windows CE apps. The BASIC language itself is pretty much the same. What we can do is stick with our core objective: make a development tool that is easy and rewarding to use with good documentation and support, -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Why ErrDisplayFileLineMsg() does nothing in PalmOS5 ?
Hi group, I have an ASSERT() macros that rely on using ErrDisplayFileLineMsg() but it seems this API function does nothing under simulators (). What function should I use to have same behaviour: application stop with Win msg box explaining the assert fail condition and eventually switched to debugger in affected line? Thanks! George VS ([EMAIL PROTECTED]) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: howto download screenshots?
We use that way, but is there any specific to the simulator feature in the menus, much like Save Screen... in the standart PalmOS emulator? Matt Graham [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] George VS wrote: Can anyone tell me how can I take screenshots from tungsteen simulator sony ux50 simulator in 480/320 resolution? should work alt+PrntScrn open MS Paint ctrl+v -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
howto download screenshots?
Hi group, Can anyone tell me how can I take screenshots from tungsteen simulator sony ux50 simulator in 480/320 resolution? Thanks! George VS -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Developing in .Net for Palm OS?
There are a couple of products that are VB-like: NS Basic and Appforge. I have my biases of course, but both products have good web sites. http://www.nsbasic.com http://www.appforge.com Please feel free to send me questions! George Henne NS BASIC Corporation http://www.nsbasic.com Hi Is it possible to develop a Palm OS application using .Net or VB6? If not then what would be the easiest way to tackle this? We will be developing an application in .Net or VB6 which will use a Palm PDA for part of the application in the field. Many thanks for your comments. Ian Logan -- 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: I want someone to convert this app to palm
Jonas Goering OD [EMAIL PROTECTED] George Henne NS BASIC Corporation http://www.nsbasic.com I am an optometrist. Many of us use an application developed by annother doctor to add two lenses together. It is a simple graphical interface to allow the input of 8 numbers and then do the math. What I want to do is have this on the palm so it is easier to use in the exam room. do any of you do this freelance? How much $ would I be looking at? I suppose I could make it work in a spreadsheet program. I think I could make it work in Excel but don't know diddly about the palm. Thanks -- 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/
screen resolution question
Hi group, Is there any way to calculate the screen resolution: pixels per mm? For WinCE I would do: int res = GetDeviceCaps(hdcDisplay, VERTRES) / GetDeviceCaps(hdcDisplay, VERTSIZE); Thanks! George VS ([EMAIL PROTECTED]) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
NS Basic announces support for new device!
We're pleased to announce NS Basic support for this new device: http://www.nsbasic.com/images/NewDevice.jpg George Henne NS BASIC Corporation http://www.nsbasic.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Pocketstudio vs Sun One Studio vs Jbuilder mobile edition
If you need to develop quickly, you should also put NS Basic on the list. It's an easy to use, mature, well supported product. George (Note: I work for NS Basic) http://www.nsbasic.com/palm Hi, I've to write an application on palm and I've not to much time to develop, now I'm using Delphi 7 for windows application, I think that PocketStudio is the best/rad choice after a quick evaluetion of the other two product . Have you any suggest. Thank you -- 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: DataMgr implementation for Win32
I need the DataMgr interface implementation working for WinCE but PAR's libprc wont compile under eVC 3... PalmDataLib looks interesting but - it does not implement the exact interface (some DmDesktop* functions replace the needed) - has no src, and I'm not sure lib should link in eVC 3 any other propositions? George VS ([EMAIL PROTECTED]) George VS [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi group, Is there any Win32 implementation of the PalmOS DataMgr interface. I know one can use PAR's libprc library from CW, but it is not a DataMgr interface implementation, but just implementation of the prc/pdb file format read/write routines. Thanks! George VS ([EMAIL PROTECTED]) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
DataMgr implementation for Win32
Hi group, Is there any Win32 implementation of the PalmOS DataMgr interface. I know one can use PAR's libprc library from CW, but it is not a DataMgr interface implementation, but just implementation of the prc/pdb file format read/write routines. Thanks! George VS ([EMAIL PROTECTED]) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re(2): Palm Powered logo certification
My application is developed in Satellite Forms v5.2, but I would like to try to get the Palm Powered logo certification. According to the certification requirements, all debug options must be turned ON during emulator/simulator testing of our app. However, Satellite Forms requires that all debug options be turned OFF in order to run in the emulator (because of OS calls, I guess) without crashing. So... can a Satellite Forms-developed app be certified under this program?? Has anyone done this? Do you need a special exemption?? I would hope that you can't get an exemption. If Satellite Forms is not stable enough to be run with all the debug options, then it and anything created with it, should not qualify for the certification. The certification has been designed, as far as I understand it, to say that the applications run reasonably well and don't suffer from crashing issues. I'd recommend trying to get Satellite Forms to fix their application so that it can pass certification or write your application from scratch so that you don't rely on someone's unstable application. (I've never used Satellite Forms, but I'd be very afraid of any application that can't run in the emulator with all debug flags turned on.) It is not that simple. The philosophy of RAD tools is to keep the programmer away from low level details, such as memory allocation, or packing strings into database records, or dealing with subtle differences between OS versions, and so on. This is usually done through a runtime library, which behaves as a layer that translates what the programmer wants into low level Palm OS calls, and/or that provides helper functions. The problem is that it is almost impossible to write an efficient runtime library for Palm OS without either calling system use only functions (such as MemChunkNew) or either poking internal OS structures on 68k devices (fortunately, OS 5 provides enough functions to make this unecessary on ARM devices). Both triggers warnings when running with all options on. Another problem is that the emulator/simulator tends to be very suspicious. For example, a RAD tool may provide some sort of exception mechanism. To implement this, you have to write assembler code that crawls the stack up until it finds a handler for the exception. Unfortunately, reading and writing values from a stack frame which is not the officially active stack frame sometimes triggers an illegal memory access if all options are turned on. And there are many other examples. IMHO, the palm powered logo should take the development tool into account, or it will dramatically restrict the number of applications that can pass this certification... As far as I know, *all* RAD tools raise errors on POSE, and I don't think such tools are that bad... Pascal I can't agree. Originally, NS Basic had the same problem. We worked at it a bit and cleaned it up. In most cases it was simply sloppy programming. An NS Basic program should now be able to pass certification. A side benefit is that we can now use these messages as a debugging tool during our own development. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: .R commandline compiler?
Thank you Ben, I am trying to port our Palm software to PocketPC with minimum project objects and source recoding. Besides, I very much like the R language, and I think I may find it usefull for building complex resources for any platform that I have to build for. George VS ([EMAIL PROTECTED]) Ben Combee [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] At 05:52 AM 2/17/2004, you wrote: Hi group, Can anyone tell me if there is any command line tool I can use to build .R files? It's called 'rez', and it's available as part of MPW and Mac OS X on the Macintosh. There is a Win32 port available as part of the QuickTime for Windows SDK (see http://developer.apple.com/quicktime/) If you DL that, be sure to rename the file QT6SDK_Win.hqx to QT6SDK_Win.zip before you try to expand it -- it looks like someone at Apple got it wrong. However, I'm curious as to how you're going to use the output, since MW doesn't supply a command-line version of the Mac OS 68K compiler. I suppose it could be used to feel the new PalmSource tools, which can convert .rsrc files to XRD format. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
MemPtrNew / MemPtrFree
Hello, Since I'm a Palm OS newbie, I need some help. I'm debugging an applicaiton using the Emulator and found out that the application sometimes gets memory leaks error. Ben Combee also suggested that I should use MemPtrNew to decrease my stack size in my previous thread. So, I've decided I should take a serious look at using MemPtrNew and MemPtrFree to make the application more efficient. However, I don't know how to use them. This is the existing code in my Pilot Main: UInt32 PilotMain(UInt16 cmd, MemPtr cmdPBP, UInt16 launchFlags) { ContextType context; UInt16 error; context.hasGlobals = launchFlags sysAppLaunchFlagNewGlobals; if (cmd == sysAppLaunchCmdNormalLaunch) { globalContext = context; error = AppStart(context); if (error) return error; FrmGotoForm(ID_FORM_LIST); EventLoop(); AppStop(context); return 0; } else if (codes snipped...) I use ContextType to store Global variables and it's huge. That's the problem. I need to free up the resources when ContextType is not used. I just don't quite understand how to use MemPtrNew to free the memory. Thanks for your help in advance. George. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
.R commandline compiler?
Hi group, Can anyone tell me if there is any command line tool I can use to build .R files? Thanks! George VS ([EMAIL PROTECTED]) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Code Warrior and Palm Emulator question (stack overflow??)
Hello all, I'm using CodeWarrior (V 9.2) for my Palm developement. I also downloaded the palmos33-en-v.zip for the emulator and the palmos33-en-v.rom file from PalmOS. I set it to duplicate my PalmV device so I can test my program using the emulator. I then complied my program using Code Warrior. I sync the prc and pdb files to the emulator for testing. It abended everytime when I did a global search inside my application. This is the error message from the Palm OS Emulator: Testpgm has overflowed the stack: The functions currently using the stacks are: PrvMisAlignedForwardInnerBitBlt(52),... I then debugged the code and found out it's actually happening in this part of my code (the Global search area): void AppDoSearch(ContextType *ctxt, FindParamsPtr params) { EntryType entry; Int32 i; UInt16 cat; RectangleType r; char catname[CAT_NAME_LENGTH]; (skipped some of the codes...) if (FindDrawHeader(params, catname) == true) { params-more = true; ctxt-prefs.findPos = -1; ctxt-prefs.findCategory = cat; return; (skipped the rest of the codes) It actually abended during the call to FindDrawHeader. The funny thing is, this is the Global search function in my program and it is being called no matter if the Global search is coming from within my application or other Palm applications such as Address or Calculator or whateverelse. This piece of code works in the emulator if the Global search is initiated from outside my application! But not if I did a Global search while I'm in my application! Even stranger, if I hotsync the code to my PalmV device (the real device), my application works! The Global search function works no matter if I do Global search within my application or in other Palm applications. Very strange. Is this an emulator problem or Code Warrior problem. I did a search on the Palm-dev-forum knowledge database and found out an article about the option #pragma stack_cleanup on I thought the newer version of Code Warrior resolved the stack cleanup problem and I don't have to set this parameter (as it would increase the program size and slow down the execution). Any suggestions? Thanks, George. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Code Warrior and Palm Emulator question (stack overflow??)
I added #pragma warn_stack_usage on top of my program and see who's the possible offender. I found out that PilotMain uses 812 bytes of stack. Is it a bad thing?? If I want to use #pragma stack_cleanup to solve this problem, where should I put this statement? On top of the program? Or inside PilotMain? Thanks so much for your advice. George. Ben Combee [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Also, using #pragma warn_stack_usage (see Targeting Palm OS manual) can be useful for finding functions that use excessive stack. Also check out #pragma stack_cleanup if you've got a series of complex function calls. -Original Message- From: Jan Slodicka Date: 2/13/04 12:48 pm To: Palm Developer Forum Subj: Re: Code Warrior and Palm Emulator question (stack overflow??) Hello, This piece of code works in the emulator if the Global search is initiated from outside my application! But not if I did a Global search while I'm in my application! Different callers - different amount of stack is used. Perhaps your app is the one, which demands more stack. The simplest thing you can do is to put the breakpoint to the start of AppDoSearch() and once the debugger breaks, count manually the stack used by all your callers. I.e. count the total size of all local variables that are in the call chain between AppDoSearch and PilotMain. It is not exactly equal to what the compiler does, but it is a good estimate. Probably you'll find an explanation. Regards, Jan Slodicka - Original Message - From: George [EMAIL PROTECTED] Newsgroups: palm-dev-forum To: Palm Developer Forum [EMAIL PROTECTED] Sent: Friday, February 13, 2004 7:32 PM Subject: Code Warrior and Palm Emulator question (stack overflow??) Hello all, I'm using CodeWarrior (V 9.2) for my Palm developement. I also downloaded the palmos33-en-v.zip for the emulator and the palmos33-en-v.rom file from PalmOS. I set it to duplicate my PalmV device so I can test my program using the emulator. I then complied my program using Code Warrior. I sync the prc and pdb files to the emulator for testing. It abended everytime when I did a global search inside my application. This is the error message from the Palm OS Emulator: Testpgm has overflowed the stack: The functions currently using the stacks are: PrvMisAlignedForwardInnerBitBlt(52),... I then debugged the code and found out it's actually happening in this part of my code (the Global search area): void AppDoSearch(ContextType *ctxt, FindParamsPtr params) { EntryType entry; Int32 i; UInt16 cat; RectangleType r; char catname[CAT_NAME_LENGTH]; (skipped some of the codes...) if (FindDrawHeader(params, catname) == true) { params-more = true; ctxt-prefs.findPos = -1; ctxt-prefs.findCategory = cat; return; (skipped the rest of the codes) It actually abended during the call to FindDrawHeader. The funny thing is, this is the Global search function in my program and it is being called no matter if the Global search is coming from within my application or other Palm applications such as Address or Calculator or whateverelse. This piece of code works in the emulator if the Global search is initiated from outside my application! But not if I did a Global search while I'm in my application! Even stranger, if I hotsync the code to my PalmV device (the real device), my application works! The Global search function works no matter if I do Global search within my application or in other Palm applications. Very strange. Is this an emulator problem or Code Warrior problem. I did a search on the Palm-dev-forum knowledge database and found out an article about the option #pragma stack_cleanup on I thought the newer version of Code Warrior resolved the stack cleanup problem and I don't have to set this parameter (as it would increase the program size and slow down the execution). Any suggestions? Thanks, George. -- 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/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
port to WinCE
Hi group, Is there any lib or recomendations on porting Palm app to WinCE with focus on reusing much of the code. I managed to implement parts of Palm APIs under WinCE. Any ideas? Thanks, George VS ([EMAIL PROTECTED]) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
FrmGetObjectPtr compliation error
Hello, I'm using an older version of Code Warrior (7.0) to compile the following code and got some compliation errors. Since I'm new to Palm Programming, I don't know what I did wrong. This code is from the Palm OS Programming Bible sample code hello. I compare that code to some other sample codes, they all use simliar syntax in FrmGetObjectPtr. Could you give me some advice on what to do to resolve this error? Thanks in advance, George. static void SaySomething(UInt16 alertID) { FormType *form = FrmGetActiveForm(); FieldType *field; MemHandle h; field = FrmGetObjectPtr(form, FrmGetObjectIndex(form, MainNameField)); if (FldGetTextLength(field) 0) {FldCompactText(field); h = FldGetTextHandle(field); if (h) {Char *s; s = MemHandleLock((void *)h); FrmCustomAlert(alertID, s, NULL, NULL); MemHandleUnlock((void *)h); } } else { FrmCustomAlert(alertID, whoever you are, NULL, NULL); } } Error messages I got from Code Warrior: Error : illegal implicit conversion from 'void *' to 'FieldType *' hello5.cpp line 43 MainNameField)); Error : function call 'MemHandleLock(void *)' does not match 'MemHandleLock(_opaque *)' hello5.cpp line 52s = MemHandleLock((void *)h); Error : function call 'MemHandleUnlock(void *)' does not match 'MemHandleUnlock(_opaque *)' hello5.cpp line 55MemHandleUnlock((void *)h); Error : illegal implicit conversion from 'void *' to 'FieldType *' hello5.cpp line 76 FrmGetObjectIndex(form, MainNameField)); -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re(2): Development tool based on VB
Have a look at NS Basic, and let me know if you have questions. http://www.nsbasic.com/basic Here's what our users have to say... http://www.nsbasic.com/palm/info/kudos.html George Henne NS BASIC Corporation http://www.nsbasic.com -Original Message- From: [EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 11:09 PM To: Palm Developer Forum Subject: Development tool based on VB I have made an application in VB 6.0 and EVB 3.0 for PC and Pocket PC 2002/2003 respectively.Now i want my application to run on Palm OS devices too. For this i have studied the tutorial which comes with the CodeWarrior and i have realized that it is based on C++. Is there any development tool based on VB which will allow me to make my application for Palm OS devices. I have heard about AppForge and NSBASIC but i am confused as to which i should purchase. I don't want to make a wrong decision. My application requires a strong user interface and alot of mathematical calculations. There is also some database handling involved in it. (Both local and remote i-e on the internet) I need advice on this. I hope u will all help me in making a correct choice. Mahrine -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Tungsteen E device
Hi group, Is there any way to tell whether a device is TunsgteenE? any feature, constant, version would better do Thanks! George VS ([EMAIL PROTECTED]) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: development tool for making app. in Palm OS
Have a look at our product - I think you'll find it easy to use. http://www.nsbasic.com/palm George Henne NS BASIC Corporation http://www.nsbasic.com Hello i am a newbie to Palm OS. I have made some applications for PC (in VB 6.0) and Pocket PC 2002 and Pocket Pc 2003 (in Embedded Vb 3.0) But as far as Palm OS is concerned i am at a complete loss. I have started studying from the Code Warrior documentation and i have realized that it is very near to C++ programming. My question is that is there any development tool which i can use to make my application for Palm OS which is similiar to vb. Thanks in advance Mahrine __ Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus -- 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/
WinRGBToIndex() crashes with low memory access for Treo270
Hi group, Did anyone had trouble with using WinRGBToIndex() under Treo270? Thanks! George VS ([EMAIL PROTECTED]) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
TimGetTicks() on Treo600 reutrn const?!?
Hi group, Is there a bug in the Treo600 system? TimGetTicks() returns 4 (?!) always What substitute function may one use to circumvent this bug! Thanks! George VS ([EMAIL PROTECTED]) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
5-way navigation SDK
Hi group, Is there any place I can find usefull information about handling 5-way navigation? Also is there any emulator/simulator that supports it? Thanks! George VS ([EMAIL PROTECTED]) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: 5-way navigation SDK
That would be great, if just the Palm have not wanted for some looney reason login for everything that makes sence, grrr! George VS ([EMAIL PROTECTED]) LeSalle Munroe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Go to the following site and download the FiveWay SDK: http://www.palmos.com/alliance/resources.cgi/devseed/ - Original Message - From: George VS [EMAIL PROTECTED] Newsgroups: palm-dev-forum To: Palm Developer Forum [EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 7:49 AM Subject: 5-way navigation SDK Hi group, Is there any place I can find usefull information about handling 5-way navigation? Also is there any emulator/simulator that supports it? Thanks! George VS ([EMAIL PROTECTED]) -- 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/
DynamicInputAreas.pdf?
Hi group, Where can I find the so called DynamicInputAreas.pdf document? Thanks! George VS ([EMAIL PROTECTED]) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
testing Exchanging Objects
Hi group, How can I simulate IR (or other) comunication between 2 palm devices to test my exchange objects feature? Thanks! George VS ([EMAIL PROTECTED]) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Problem with SelectDay on T3
On a T3 and the T3 Simulator, when I put a bitmap on a form using WinDrawBitmap, then call SelectDay, the bitmap is gone after returning. (The same happens with WinDrawLine, and perhaps others.) The bitmap reappears properly on all other devices, Palm OS 3.0 on. The SelectTime function, which is similar in many ways, works OK on the T3. George Henne NS BASIC Corporation http://www.nsbasic.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/