RE: Immediate Help needed.
I need to launch my program, if any other popupform shown on the device(like phone call page), so i need to catch the event whether popupform is showing on the device or not. I know other way is to launch my program, but particularly i want to check in my code whether popupform is on the device or not? Understand what'im saying? - martin. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of ??? Sent: Tuesday, March 22, 2005 12:10 PM To: Palm Developer Forum Subject: Re: Immediate Help needed. you know that if the FrmPopupForm is been called by any program it will produce two event frmLoadEvent and a frmOpenEvent for the specified form meanwhile if FrmGotoFrom happens with one more frmCloseEvent . so if you detect the event queue and find the frmcloseevent you will know what has been called by program. any way , what do you want to know this ? --sean - Original Message - From: prabakar.mp [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, March 22, 2005 2:09 PM Subject: RE: Immediate Help needed. See, I want to find out via program whether FrmPopupForm is been called by program or not? - Martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of ??? Sent: Tuesday, March 22, 2005 11:31 AM To: Palm Developer Forum Subject: Re: Immediate Help needed. i don't catch your words exactly, do you mean that you want to find out if the form is shown or not after the FrmPopupForm operation? if you can see the form appears, you can be sure with your FrmPopupFrom command has take place. SEAn IBE. Inc. - Original Message - From: prabakar.mp [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, March 22, 2005 1:22 PM Subject: Immediate Help needed. Hi, How to find out whether FrmPopupForm is been showing or not? Can anyone please tell me. Immedite help needed. - Prabakar. -- 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/ -- 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: Immediate Help needed.
I need to launch my program, if any other popupform shown on the device(like phone call page), so i need to catch the event whether popupform is showing on the device or not. I know other way is to launch my program, but particularly i want to check in my code whether popupform is on the device or not? Understand what'im saying? - martin. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of ??? Sent: Tuesday, March 22, 2005 12:10 PM To: Palm Developer Forum Subject: Re: Immediate Help needed. you know that if the FrmPopupForm is been called by any program it will produce two event frmLoadEvent and a frmOpenEvent for the specified form meanwhile if FrmGotoFrom happens with one more frmCloseEvent . so if you detect the event queue and find the frmcloseevent you will know what has been called by program. any way , what do you want to know this ? --sean - Original Message - From: prabakar.mp [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, March 22, 2005 2:09 PM Subject: RE: Immediate Help needed. See, I want to find out via program whether FrmPopupForm is been called by program or not? - Martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of ??? Sent: Tuesday, March 22, 2005 11:31 AM To: Palm Developer Forum Subject: Re: Immediate Help needed. i don't catch your words exactly, do you mean that you want to find out if the form is shown or not after the FrmPopupForm operation? if you can see the form appears, you can be sure with your FrmPopupFrom command has take place. SEAn IBE. Inc. - Original Message - From: prabakar.mp [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, March 22, 2005 1:22 PM Subject: Immediate Help needed. Hi, How to find out whether FrmPopupForm is been showing or not? Can anyone please tell me. Immedite help needed. - Prabakar. -- 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/ -- 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: Immediate Help needed.
hi martin , i think i got it, but i am not sure about my solution: 1. register sysNotifyEventDequeuedEvent in your app 2. catch every event passed in and check if come across two frmLoadEvent frmOpenEvent 3. then do something. Be very careful about registering for this notification; it can result in significantly degraded system performance. or if the system supplies the popupform event ? i know nothing about it. good luck --Sean - Original Message - From: Prabakar MP [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, March 22, 2005 5:34 PM Subject: RE: Immediate Help needed. I need to launch my program, if any other popupform shown on the device(like phone call page), so i need to catch the event whether popupform is showing on the device or not. I know other way is to launch my program, but particularly i want to check in my code whether popupform is on the device or not? Understand what'im saying? - martin. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of ??? Sent: Tuesday, March 22, 2005 12:10 PM To: Palm Developer Forum Subject: Re: Immediate Help needed. you know that if the FrmPopupForm is been called by any program it will produce two event frmLoadEvent and a frmOpenEvent for the specified form meanwhile if FrmGotoFrom happens with one more frmCloseEvent . so if you detect the event queue and find the frmcloseevent you will know what has been called by program. any way , what do you want to know this ? --sean - Original Message - From: prabakar.mp [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, March 22, 2005 2:09 PM Subject: RE: Immediate Help needed. See, I want to find out via program whether FrmPopupForm is been called by program or not? - Martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of ??? Sent: Tuesday, March 22, 2005 11:31 AM To: Palm Developer Forum Subject: Re: Immediate Help needed. i don't catch your words exactly, do you mean that you want to find out if the form is shown or not after the FrmPopupForm operation? if you can see the form appears, you can be sure with your FrmPopupFrom command has take place. SEAn IBE. Inc. - Original Message - From: prabakar.mp [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, March 22, 2005 1:22 PM Subject: Immediate Help needed. Hi, How to find out whether FrmPopupForm is been showing or not? Can anyone please tell me. Immedite help needed. - Prabakar. -- 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/ -- 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/
RE: Immediate Help needed.
Thank you, I'll try out. And also Is there any function avilable to check if Missed called page resides on the Treo device?? If you know that, please tell me. - martin. -Original Message- From: SEAn [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 4:40 PM To: Palm Developer Forum Subject: Re: Immediate Help needed. hi martin , i think i got it, but i am not sure about my solution: 1. register sysNotifyEventDequeuedEvent in your app 2. catch every event passed in and check if come across two frmLoadEvent frmOpenEvent 3. then do something. Be very careful about registering for this notification; it can result in significantly degraded system performance. or if the system supplies the popupform event ? i know nothing about it. good luck --Sean - Original Message - From: Prabakar MP [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, March 22, 2005 5:34 PM Subject: RE: Immediate Help needed. I need to launch my program, if any other popupform shown on the device(like phone call page), so i need to catch the event whether popupform is showing on the device or not. I know other way is to launch my program, but particularly i want to check in my code whether popupform is on the device or not? Understand what'im saying? - martin. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of ??? Sent: Tuesday, March 22, 2005 12:10 PM To: Palm Developer Forum Subject: Re: Immediate Help needed. you know that if the FrmPopupForm is been called by any program it will produce two event frmLoadEvent and a frmOpenEvent for the specified form meanwhile if FrmGotoFrom happens with one more frmCloseEvent . so if you detect the event queue and find the frmcloseevent you will know what has been called by program. any way , what do you want to know this ? --sean - Original Message - From: prabakar.mp [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, March 22, 2005 2:09 PM Subject: RE: Immediate Help needed. See, I want to find out via program whether FrmPopupForm is been called by program or not? - Martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of ??? Sent: Tuesday, March 22, 2005 11:31 AM To: Palm Developer Forum Subject: Re: Immediate Help needed. i don't catch your words exactly, do you mean that you want to find out if the form is shown or not after the FrmPopupForm operation? if you can see the form appears, you can be sure with your FrmPopupFrom command has take place. SEAn IBE. Inc. - Original Message - From: prabakar.mp [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, March 22, 2005 1:22 PM Subject: Immediate Help needed. Hi, How to find out whether FrmPopupForm is been showing or not? Can anyone please tell me. Immedite help needed. - Prabakar. -- 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/ -- 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/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Immediate Help needed.
maybe you can write such function by yourself. this is from treo600 reference guide: phnEvtStartIncomingCall Start of incoming call. This notification is sent when an incoming call if first detected. This notification is used to perform special pre-call processing like turning off of MMS playback before a call. Any processing on this notification must be very quick (less than a few hundred milliseconds) as it could potentially delay an incoming call from being answered. WARNING! APPLICATIONS MUST NOT ANSWER THE CALL OR DO ANY CALL CONTROL BASED ON THIS NOTIFICATION. A separate phnEvtConnectInd notification will be follow for this purpose. The phnEvtConnectInd notification is normally processed by the Phone App, and uses exclusive broadcast. Thus it may not be received by all applications. The phnEvtStartIncomingCall notification is sent to all applications registered for Voice Service using Universal Broadcast. The acknowledgement flag is NOT used. - Original Message - From: Prabakar MP [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, March 22, 2005 7:28 PM Subject: RE: Immediate Help needed. Thank you, I'll try out. And also Is there any function avilable to check if Missed called page resides on the Treo device?? If you know that, please tell me. - martin. -Original Message- From: SEAn [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 4:40 PM To: Palm Developer Forum Subject: Re: Immediate Help needed. hi martin , i think i got it, but i am not sure about my solution: 1. register sysNotifyEventDequeuedEvent in your app 2. catch every event passed in and check if come across two frmLoadEvent frmOpenEvent 3. then do something. Be very careful about registering for this notification; it can result in significantly degraded system performance. or if the system supplies the popupform event ? i know nothing about it. good luck --Sean - Original Message - From: Prabakar MP [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, March 22, 2005 5:34 PM Subject: RE: Immediate Help needed. I need to launch my program, if any other popupform shown on the device(like phone call page), so i need to catch the event whether popupform is showing on the device or not. I know other way is to launch my program, but particularly i want to check in my code whether popupform is on the device or not? Understand what'im saying? - martin. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of ??? Sent: Tuesday, March 22, 2005 12:10 PM To: Palm Developer Forum Subject: Re: Immediate Help needed. you know that if the FrmPopupForm is been called by any program it will produce two event frmLoadEvent and a frmOpenEvent for the specified form meanwhile if FrmGotoFrom happens with one more frmCloseEvent . so if you detect the event queue and find the frmcloseevent you will know what has been called by program. any way , what do you want to know this ? --sean - Original Message - From: prabakar.mp [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, March 22, 2005 2:09 PM Subject: RE: Immediate Help needed. See, I want to find out via program whether FrmPopupForm is been called by program or not? - Martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of ??? Sent: Tuesday, March 22, 2005 11:31 AM To: Palm Developer Forum Subject: Re: Immediate Help needed. i don't catch your words exactly, do you mean that you want to find out if the form is shown or not after the FrmPopupForm operation? if you can see the form appears, you can be sure with your FrmPopupFrom command has take place. SEAn IBE. Inc. - Original Message - From: prabakar.mp [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, March 22, 2005 1:22 PM Subject: Immediate Help needed. Hi, How to find out whether FrmPopupForm is been showing or not? Can anyone please tell me. Immedite help needed. - Prabakar. -- 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/ -- 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
RE: Immediate Help needed.
But I dont think this will be helpul to catch the Missed called page, Bcoz Already I tried that. Anyway Thanks Sean. - Martin. -Original Message- From: SEAn [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 5:25 PM To: Palm Developer Forum Subject: Re: Immediate Help needed. maybe you can write such function by yourself. this is from treo600 reference guide: phnEvtStartIncomingCall Start of incoming call. This notification is sent when an incoming call if first detected. This notification is used to perform special pre-call processing like turning off of MMS playback before a call. Any processing on this notification must be very quick (less than a few hundred milliseconds) as it could potentially delay an incoming call from being answered. WARNING! APPLICATIONS MUST NOT ANSWER THE CALL OR DO ANY CALL CONTROL BASED ON THIS NOTIFICATION. A separate phnEvtConnectInd notification will be follow for this purpose. The phnEvtConnectInd notification is normally processed by the Phone App, and uses exclusive broadcast. Thus it may not be received by all applications. The phnEvtStartIncomingCall notification is sent to all applications registered for Voice Service using Universal Broadcast. The acknowledgement flag is NOT used. - Original Message - From: Prabakar MP [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, March 22, 2005 7:28 PM Subject: RE: Immediate Help needed. Thank you, I'll try out. And also Is there any function avilable to check if Missed called page resides on the Treo device?? If you know that, please tell me. - martin. -Original Message- From: SEAn [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 4:40 PM To: Palm Developer Forum Subject: Re: Immediate Help needed. hi martin , i think i got it, but i am not sure about my solution: 1. register sysNotifyEventDequeuedEvent in your app 2. catch every event passed in and check if come across two frmLoadEvent frmOpenEvent 3. then do something. Be very careful about registering for this notification; it can result in significantly degraded system performance. or if the system supplies the popupform event ? i know nothing about it. good luck --Sean - Original Message - From: Prabakar MP [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, March 22, 2005 5:34 PM Subject: RE: Immediate Help needed. I need to launch my program, if any other popupform shown on the device(like phone call page), so i need to catch the event whether popupform is showing on the device or not. I know other way is to launch my program, but particularly i want to check in my code whether popupform is on the device or not? Understand what'im saying? - martin. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of ??? Sent: Tuesday, March 22, 2005 12:10 PM To: Palm Developer Forum Subject: Re: Immediate Help needed. you know that if the FrmPopupForm is been called by any program it will produce two event frmLoadEvent and a frmOpenEvent for the specified form meanwhile if FrmGotoFrom happens with one more frmCloseEvent . so if you detect the event queue and find the frmcloseevent you will know what has been called by program. any way , what do you want to know this ? --sean - Original Message - From: prabakar.mp [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, March 22, 2005 2:09 PM Subject: RE: Immediate Help needed. See, I want to find out via program whether FrmPopupForm is been called by program or not? - Martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of ??? Sent: Tuesday, March 22, 2005 11:31 AM To: Palm Developer Forum Subject: Re: Immediate Help needed. i don't catch your words exactly, do you mean that you want to find out if the form is shown or not after the FrmPopupForm operation? if you can see the form appears, you can be sure with your FrmPopupFrom command has take place. SEAn IBE. Inc. - Original Message - From: prabakar.mp [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, March 22, 2005 1:22 PM Subject: Immediate Help needed. Hi, How to find out whether FrmPopupForm is been showing or not? Can anyone please tell me. Immedite help needed. - Prabakar. -- 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
Re: Newbie problem
The double quotes fixed it! Now I have other problems to figure out, but one step at a time. Thanks, I appreciate the help! Walter -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Cobalt SDK?
Hi, Is Cobalt 6.x SDK (or Beta) Released? If yes, Can anyone please give the Link? - martin. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Transfer data onto a web server
Hi, I am writing an application which retrieves data from a database on my Palm. Now i would like to transfer this data on my web server and store it in a MySQL database. I would really like some feedback from people on what is the easiest way to accomplish this. Kieran. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Transfer data onto a web server
ULStudent:Kieran.Long wrote: Hi, I am writing an application which retrieves data from a database on my Palm. Now i would like to transfer this data on my web server and store it in a MySQL database. I would really like some feedback from people on what is the easiest way to accomplish this. Kieran. Hello Kieran You can use a PHP-skript to receive your data and store it where ever you want to. To send the data to your webserver, just open an IP connection to the server and send your data. If you want to learn how to open an IP connection the PalmOS reference for the Net Library (http://www.palmos.com/dev/support/docs/palmos/PalmOSReference/NetLibrary.html#1083561) will support you with all needed information. christian -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Immediate Help needed.
On 3/22/2005 5:54 AM SEAn wrote: maybe you can write such function by yourself. Wouldn't it be simpler just to create a global Boolean value that flags whether the form is loaded already, gets set true when the form is loaded, and false when it's closed? By the way, Prabakar, it is helpful if you make the subject of your post to be a short summary of the question. For one thing, it's polite to people who read the list because we can skip what we're not interested in, and someone who knows the subject area is more likely to read it. -- Curtis Cameron -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Immediate Help needed.
http://www.palmos.com/dev/support/docs/palmos/PalmOSCompanion/UserInterface.html#1009521 Under the section 'Checking Menu Visibility', the Palm OS docs have some example code to check if another form has popped up over your application's form. 'Note that this technique is not specific to menusyour application should stop drawing if any window obscures your drawing window, and it will do so if you check for winEnterEvent and winExitEvent.' Prabakar MP wrote: I need to launch my program, if any other popupform shown on the device(like phone call page), so i need to catch the event whether popupform is showing on the device or not. I know other way is to launch my program, but particularly i want to check in my code whether popupform is on the device or not? Understand what'im saying? - martin. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Immediate Help needed.
Curtis Cameron wrote: By the way, Prabakar, it is helpful if you make the subject of your post to be a short summary of the question. For one thing, it's polite to people who read the list because we can skip what we're not interested in, and someone who knows the subject area is more likely to read it. and secondly,... there are lots of messages that state immediate help needed, or urgent help needed or my life depends on someone helping me right away, and I believe that those messages carry no impact. People will respond when they can, or if their interest is piqued, and I fear that those proclamations will be doing you a disservice; turning people off, rather than causing your problem to appear to be more important than any others. Just my 2 cents. Bob. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Cobalt SDK?
At 07:12 AM 3/22/2005, you wrote: Is Cobalt 6.x SDK (or Beta) Released? If yes, Can anyone please give the Link? The Palm OS Cobalt 6.1 SDK is part of the Palm OS Developer Suite download; it's not available separately, as there are no other tool sets that support Palm OS Cobalt at this time. -- Ben Combee, Senior Software Engineer, palmOne, 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/
Re: change os of palm
Well, the construction of the HAL is the biggest part of the project and we want to build it too. So, if you say we can interact with the hardware directly we only have to get to work. Another thing, were can i find information about this, i mean some specific cite not a google search. Thank you, Leo --- Neal Bridges [EMAIL PROTECTED] wrote: This is possible, but I daresay you'd be far better served to have your OS run as an application on the device. That way you have access to all the already-existing PalmOS routines, and can use them as an ersatz hardware abstraction layer. -- Neal Bridges Quartus Handheld Software http://www.quartus.net -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Converting UTC time into local time in pre-OS 4.0
I'm implementing GPS support in my program (location tracking). As a side benefit, I would like to offer to set the device time with the UTC time received from the GPS. Now, in order to adjust UTC time to local time, I need to call TimUTCToTimeZone, which in turn requires the number of minutes east of UTC (or a negative amount if West of UTC), which I can get with PrefGetPreference and prefMinutesWestOfGMT... a UInt32 (unsigned) amount! The prefTimeZone pref (an Int16) was later introduced with OS 4.0 and preferences version 9. What's the trick for PalmOS 3.0-3.5? Similar problems, if not worse, occur with the DaylightSavingTime - can it be determined prior to OS 4.0, or must I ask the user if he's under DST? The prefDaylightsavings preference available under OS 3.0-35 returns an enum to a list of countries, but that doesn't tell me whether DTS is currently on. No Glue API seems to do the trick. Suggestions welcome. -- Luc Le Blanc -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: which i need to use to convert a Access MDB to PDB for palm os 5.x
On Mon, 21 Mar 2005 12:23:16 +, imran baig [EMAIL PROTECTED] wrote: Which i need to use to convert a Access MDB to PDB for palm os 5.x. First, use standard Access capability to export the required records and fields as a CSV format or fixed record length file. Then, write a conduit to read the CSV file from the PC and write it out to the Palm OS device, using the API's that PalmSource provide. If you potentially have tens of thousands of records, then you will have to create an extra software layer in both the conduit and within the Palm OS program(s) to pack and unpack multiple actual records in each Palm OS 'database' record. But if you have only thousands (or less) of records you don't need this extra software layer. Roger Stringer Marietta Systems, Inc. (www.rf-tp.com) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: change os of palm
Leo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --- Neal Bridges [EMAIL PROTECTED] wrote: This is possible, but I daresay you'd be far better served to have your OS run as an application on the device. That way you have access to all the already-existing PalmOS routines, and can use them as an ersatz hardware abstraction layer. Well, the construction of the HAL is the biggest part of the project and we want to build it too. So, if you say we can interact with the hardware directly we only have to get to work. Another thing, were can i find information about this, i mean some specific cite not a google search. That's the point -- you can't. Not easily. You may, with considerable work, be able to determine enough information about a specific device to implement your system, but that information will be specific to that device, and will become obsolete when the device does. -- Neal Bridges Quartus Handheld Software http://www.quartus.net -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: change os of palm
But can't we use the palm to program its microprocessor. What are the limitations? Be specific, please. Thank you, Leo --- Neal Bridges [EMAIL PROTECTED] wrote: That's the point -- you can't. Not easily. You may, with considerable work, be able to determine enough information about a specific device to implement your system, but that information will be specific to that device, and will become obsolete when the device does. -- Neal Bridges Quartus Handheld Software http://www.quartus.net -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
DmOpenRef error
Is it possible to open up 2 databases from the appstart()? I currently have 1 database opening from appstart() but wish to add another but i keep getting an error stating that there is a problem with my DmOpenRef declaration for the second database. Im able to open the second database from another function but ideally i would like to open both from appstart()??? Pleeez help Rob -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Transfer data onto a web server
Hello Kieran, This depends on how you'd like to transfer the data. If you need wireless connectivity, then you'd be looking at using the Palm OS Net library and sending raw TCP/UDP packets of your data, and having some process ready to receive this data on your web server. Another route you could take is to have the data transferred during a HotSync. When going the HotSync route, you can take your pick of MySQL connectors, such as ODBC, Java, .NET, MySQL++ (direct C++ API), etc. Going the wireless route would likely make this process more difficult. On the other hand, it might be more convenient for your clients. If you go with the HotSync route, your best bet would be to pick the technology which you are most familiar with, and/or go with the option supported best by the tools you currently have. Adrien. Tuesday, March 22, 2005, 6:08:32 AM, you wrote: UKL Hi, UKL I am writing an application which retrieves data from a UKL database on my Palm. Now i would like to transfer this data on my UKL web server and store it in a MySQL database. UKL I would really like some feedback from people on what is UKL the easiest way to accomplish this. UKL Kieran. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: Versamail, adding record to outbox from my application
After registration in http://pluggedin.palmone.com/ You can dounload header files PalmOS -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: change os of palm
A suggestion: Try to write your HAL in top of the Palm OS. This will mak things a lot easier, but will also restrict you in some ways. But if you just plan to have a small OS, it could work. Regards Henk Leo wrote: But can't we use the palm to program its microprocessor. What are the limitations? Be specific, please. Thank you, Leo --- Neal Bridges [EMAIL PROTECTED] wrote: That's the point -- you can't. Not easily. You may, with considerable work, be able to determine enough information about a specific device to implement your system, but that information will be specific to that device, and will become obsolete when the device does. -- - Henk Jonas[EMAIL PROTECTED] Palm OS ® certified developer Please contact me, if you need an off-side contract worker. - -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: change os of palm
Leo, Have you ever written a hardware layer for an embedded microprocessor system? If so, then you probably had access to the specifications, including schematics and sample drivers. Do you have these specifications for any of the Palm-ish devices you wish your OS to be compatible? If you are satisfied that you understand the hardware, then are you asking how to load, execute and test your new OS? If you presume to understand how to write the OS for a platform, then I would assume you'd know how to load and test it. What is it you want to know? What are your limitations? Be specific, please. Jeff Loucks Work 425-284-1128 [EMAIL PROTECTED] Home 253-851-8908 [EMAIL PROTECTED] Mobile 253-691-8812 -Original Message- From: Leo [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 8:51 AM To: Palm Developer Forum Subject: Re: change os of palm But can't we use the palm to program its microprocessor. What are the limitations? Be specific, please. Thank you, -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
How to detect more than 1 key pressed at the same time
Hello, I'm writing a game, and I found the way to manage both hard keys and 5-way navigation buttons. But I don't know how to check Left direction (i.e.) and hardkey1 pressed at the same time (like a spaceship that while moving left is shooting using hardkey1). I'm not able to detect both keys together. How should I act? Thanks, Giovanni -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: DmOpenRef error
ULStudent:Robert.Conlon wrote: Is it possible to open up 2 databases from the appstart()? Certainly. I currently have 1 database opening from appstart() but wish to add another but i keep getting an error stating that there is a problem with my DmOpenRef declaration for the second database. Im able to open the second database from another function but ideally i would like to open both from appstart()??? What is your declaration? And what is the compiler's error message? Greg -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Newbie Question about Palm os resource editor!
Hello Does the Palm OS resource editor auto generate header files or we have to that in the project manually? Thanks in advance, Mohammad -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: Newbie Question about Palm os resource editor!
The version that is currently being released has the ability to generate header files based on a template. The version that is currently being tested in-house mimics Constructor's naming scheme. The activate these, select your resource file in the files panel and click the check box labeled Generate Header File or something similar to that. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mohammad Afshari Sent: Wednesday, March 23, 2005 5:50 AM To: Palm Developer Forum Subject: Newbie Question about Palm os resource editor! Hello Does the Palm OS resource editor auto generate header files or we have to that in the project manually? Thanks in advance, Mohammad -- 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: DmOpenRef error
I no longer get the DmOpenRef error but the second database with DmOpenRef declaration db2 still wont create. Here is my app start function (sorry for putting code up) but can you possibly see why the first database with DmOpenRef db is created while the second is not. static Err AppStart(void) { Err error = 0; Err retcode = 0; // open my own Database db = DmOpenDatabaseByTypeCreator(DBType,CreatorID,dmModeReadWrite); // Create it, if it does not exist if(!db) { // Tell the user that we're creating a new DB error = DmCreateDatabase(0,DBName,CreatorID,DBType,false); if(error) return error; // Now, we should be able to open it db = DmOpenDatabaseByTypeCreator(DBType,CreatorID,dmModeReadWrite); return DmGetLastErr(); } db2 = DmOpenDatabaseByTypeCreator(PrefDBType,PrefCreatorID,dmModeReadWrite); if(!db2) { error = DmCreateDatabase(0,DBNamePref,PrefCreatorID,PrefDBType,false); if(error) return error; db2 = DmOpenDatabaseByTypeCreator(PrefDBType,PrefCreatorID,dmModeReadWrite); return DmGetLastErr(); } nbRec = DmNumRecords(db); return retcode; } -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: DmOpenRef error
Is it a compilation error? Perhaps you should provide some of the code. Jonathan King -Original Message- From: [EMAIL PROTECTED] [mailto:bounce-418209- [EMAIL PROTECTED] On Behalf Of ULStudent:Robert.Conlon Sent: Tuesday, March 22, 2005 12:31 PM To: Palm Developer Forum Subject: DmOpenRef error Is it possible to open up 2 databases from the appstart()? I currently have 1 database opening from appstart() but wish to add another but i keep getting an error stating that there is a problem with my DmOpenRef declaration for the second database. Im able to open the second database from another function but ideally i would like to open both from appstart()??? Pleeez help Rob -- 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/
App launch and SysAppLaunch() function.
Hi Guys, I developed 7 correlated apps. But the customer only want one to appear on the launcher, and demand the other 6 apps to be called by this entry point, and hide the 6 apps from being seen. so Q1. How can I hide those apps. Q2. SysUIAppSwitch() works well. But sometimes I need to have the control return to the calling application when finished. So I tries SysAppLaunch(). This is not that pleasant. it always collapses. Anyone have a successful experience with SysAppLaunch(), please reply to me! Thanks Fred -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: DmOpenRef error
From: ULStudent:Robert.Conlon [EMAIL PROTECTED] I no longer get the DmOpenRef error but the second database with DmOpenRef declaration db2 still wont create. We need more detail on the problem to coment 'wont create' is just too vague. Do you get an error? if so, what error? If you remove the first create does the second start working? Have you checked that the DBName is different? How do you know that it doesn't exist? Databases and prcs with the same CRID are often reported as a lump in the Palm OS info screens so you need to use an app such as Filez if you want more info. Chris Tutty -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: App launch and SysAppLaunch() function.
At 05:04 PM 3/22/2005, you wrote: Hi Guys, I developed 7 correlated apps. But the customer only want one to appear on the launcher, and demand the other 6 apps to be called by this entry point, and hide the 6 apps from being seen. so Q1. How can I hide those apps. Q2. SysUIAppSwitch() works well. But sometimes I need to have the control return to the calling application when finished. So I tries SysAppLaunch(). This is not that pleasant. it always collapses. Anyone have a successful experience with SysAppLaunch(), please reply to me! SysAppLaunch is intended to be used to call a program for a specific function, such as calling the address book to search for entries. It doesn't actually switch to the other program, and the other program isn't launched with access to other code segments or global variables. You want to use SysUIAppSwitch -- you might just need to add UI to the other programs to SysUIAppSwitch back to the control panel. Hiding the six applications is easy. Make their type something other than 'appl'. You can still switch to them using SysUIAppSwitch, but they won't be seen as applications by the launcher. They also won't get some system notifications, like the device just reset notification, but if you're master control panel app handles those, that sounds like the best solution. -- Ben Combee, Senior Software Engineer, palmOne, 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/
Sprint Treo 650 firmware update posted
Just a note -- if you're using a Sprint Treo 650, be sure to get the 1.08 firmware update that was posted today. This includes a lot of bug fixes, including a major update to NVFS that reduces the per-record overhead significantly by moving from 512-byte sectors to 32-byte sectors. Details at http://www.palmone.com/us/support/downloads/treo650updater/sprint.html -- Ben Combee, Senior Software Engineer, palmOne, 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/
Tungsten E crash
We have a customer who reports that he encountered the following problem with our application: It worked fine for awhile but now when I open it I get the following message: MemoryMgr.c, Line:3654, Free handle. I reset it, but it happens each time. That isn't good and we are investigating but the really disturbing part is that the customer's palm crashes when he trys to delete our application! Has anyone else ever encountered a similar problem when deleting an app? Any idea what might be causing the delete application function to crash the palm? Thankful for any advice. Ralph -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: App launch and SysAppLaunch() function.
From: Fred Zheng [EMAIL PROTECTED] Q2. SysUIAppSwitch() works well. But sometimes I need to have the control return to the calling application when finished. So I tries SysAppLaunch(). This is not that pleasant. it always collapses. You are better to stick with SysUIAppSwitch() and return to the calling app by sending a signal of some sort when you launch it. The calling app would identify that it has to return control and would use SysUIAppSwitch() when it's finished. There are a variety of ways to send the signal - you could set a feature or set a value in a shared preference block - but what worked well for me in a similar situation was to define custom launch codes. You then use one of these instead of sysAppLaunchCmdNormalLaunch when calling SysUIAppSwitch(). Your app uses the same logic as for a normal launch, but takes note of anything special it should do when it's finished (one launch code might be appLaunchReturnToApp1, for instance). Alternatively you can use one custom launch code and pass a command block to the app with the special info in it. The programmer's companion has several sections that discuss this and SysUIAppSwitch() also includes some notes. Chris Tutty -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Reassembling fragments (WAP SAR)
Can anybody help me? I found that a fatal exception occurs at StrCopy in SARreassemble, but other than that, I am clueless. -Donald -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: How to detect more than 1 key pressed at the same time
it is hard to figure them out. and i have tried but failed to check both press at the same time. - Original Message - From: Giovanni Fischetti [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Wednesday, March 23, 2005 3:38 AM Subject: How to detect more than 1 key pressed at the same time Hello, I'm writing a game, and I found the way to manage both hard keys and 5-way navigation buttons. But I don't know how to check Left direction (i.e.) and hardkey1 pressed at the same time (like a spaceship that while moving left is shooting using hardkey1). I'm not able to detect both keys together. How should I act? Thanks, Giovanni -- 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: Newbie Question about Palm os resource editor!
i always write it by myself in PilRC. it is easy to just write #include your_Rsc.h and create a your_Rsc.h in the project. - Original Message - From: Mohammad Afshari [EMAIL PROTECTED] Newsgroups: palm-dev-forum To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Wednesday, March 23, 2005 7:50 PM Subject: Newbie Question about Palm os resource editor! Hello Does the Palm OS resource editor auto generate header files or we have to that in the project manually? Thanks in advance, Mohammad -- 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: Tungsten E crash
i once found this problem because my code segment is too big for palm os so good luck. Sean - Original Message - From: Ralph Curtis [EMAIL PROTECTED] Newsgroups: palm-dev-forum To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Wednesday, March 23, 2005 8:19 AM Subject: Tungsten E crash We have a customer who reports that he encountered the following problem with our application: It worked fine for awhile but now when I open it I get the following message: MemoryMgr.c, Line:3654, Free handle. I reset it, but it happens each time. That isn't good and we are investigating but the really disturbing part is that the customer's palm crashes when he trys to delete our application! Has anyone else ever encountered a similar problem when deleting an app? Any idea what might be causing the delete application function to crash the palm? Thankful for any advice. Ralph -- 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/
open .doc .pdf documents ?
i know that if i want to open such documents has .doc/.pdf extension in my application, i has to store the date to some format and then send it to the proper application used to open it, but i got missed what format i have to store ? for example if it is a .wmv document , what database should be created and how to fille it with correct data? thanks. --Sean -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Tungsten E crash
Do you mean the code segment was 64K? I don't see that problem. Ralph SEAn [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] i once found this problem because my code segment is too big for palm os so good luck. Sean - Original Message - From: Ralph Curtis [EMAIL PROTECTED] Newsgroups: palm-dev-forum To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Wednesday, March 23, 2005 8:19 AM Subject: Tungsten E crash We have a customer who reports that he encountered the following problem with our application: It worked fine for awhile but now when I open it I get the following message: MemoryMgr.c, Line:3654, Free handle. I reset it, but it happens each time. That isn't good and we are investigating but the really disturbing part is that the customer's palm crashes when he trys to delete our application! Has anyone else ever encountered a similar problem when deleting an app? Any idea what might be causing the delete application function to crash the palm? Thankful for any advice. Ralph -- 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/
Toooooooooo much information - StrChr or StrStr or Glue + TxtFindString
Hi Guys I am having trouble deciding how to extract two strings from one string. I can see so many posts that it is very confusing. This post is basically what I was wanting to do http://www.escribe.com/computing/pcpqa/m62412.html This is too complicated I cant get it to work http://www.escribe.com/computing/pcpqa/m50320.html TxtFindString's requirement that u use glue etc. is far to complicated. My string contains a phone number a name eg. me | +61 (0) 408 409 409 I want to have two string variables that contain me +61 (0) 408 409 409 Should I use StrChr or StrStr ? I have tried to write my own, I'm having trouble as these are pointers not values. An example piece of code that I can study would be ideal :) Thanks in advance NG -- ..-_|\ Nigel Grant / OZ \ Uni. SA \ _.--._ / PO Box 185 Adelaide vSouth Australia 5096 .) .) http://geocities.com/ngrant_com Smile its free -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Converting UTC time into local time in pre-OS 4.0
I previously wrote : I'm implementing GPS support in my program (location tracking). As a side benefit, I would like to offer to set the device time with the UTC time received from the GPS. Now, in order to adjust UTC time to local time, I need to call TimUTCToTimeZone, which in turn requires the number of minutes east of UTC (or a negative amount if West of UTC), which I can get with PrefGetPreference and prefMinutesWestOfGMT... a UInt32 (unsigned) amount! The prefTimeZone pref (an Int16) was later introduced with OS 4.0 and preferences version 9. What's the trick for PalmOS 3.0-3.5? Similar problems, if not worse, occur with the DaylightSavingTime - can it be determined prior to OS 4.0, or must I ask the user if he's under DST? The prefDaylightsavings preference available under OS 3.0-35 returns an enum to a list of countries, but that doesn't tell me whether DTS is currently on. No Glue API seems to do the trick. Suggestions welcome. Hum, I realize TimUTCToTimeZone did not exist before OS 4.0, and no glue API is provided. Sounds like this feature will be reserved to OS 4+ devices. -- Luc Le Blanc -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Toooooooooo much information - StrChr or StrStr or Glue + TxtFindString
Nigel Grant wrote: I am having trouble deciding how to extract two strings from one string. My string contains a phone number a name eg. me | +61 (0) 408 409 409 I want to have two string variables that contain me +61 (0) 408 409 409 Should I use StrChr or StrStr ? Since you need to break on a string that is longer than a single character, it makes sense to use StrStr(). I have tried to write my own, I'm having trouble as these are pointers not values. Pointers can be tricky. It just takes practice. (By the way, pointers *are* values...) If you'd like, strings in C can be treated as arrays of characters, and you can just use array notation instead. For example: Char *mystr = (Char *) MemPtrNew (5); mystr[0] = 'P'; mystr[1] = 'a'; mystr[2] = 'l'; mystr[3] = 'm'; mystr[4] = 0; That code will set mystr to Palm (at least assuming MemPtrNew() doesn't return NULL). You can even take it so far as to convert the pointer that StrStr() returns into an index into the array: const Char *needle = Paul; const Char *haystack = John Paul George Ringo; const Char *foundptr; Int32 paulindex; foundptr = StrStr (haystack, needle); if (foundptr == NULL) { paulindex = -1; // we'll let -1 indicate not found } else { paulindex = foundptr - haystack; } After this code is run, paulindex should have the value 5. That's because foundptr will point at P, which is 5 slots further into the string than the beginning, which is what haystack points to. Well anyway, that was a giant sidetrack. The point is, there are going to be three important positions within that original string. There's (a) the start of the string, and (b) the start of the delimiter ( | in your case), and (c) the start of the stuff after the delimiter. So, what do we know about those positions? Well, we know that the start of the stuff after the delimiter equals the start of the delimiter itself plus the length of the delimiter. And we also know that StrStr() will give us the start position of the delimiter. And, we *also* know the length of the first string is equal to its start position subtracted from the position of the thing that immediately follows it (the delimiter). We know this through sort of the inverse of the reasoning that appears two paragraphs back. So, let's say we want to just find the start positions of everything and not worry about splitting. That's not so hard given what we already established that we know: void FindPositions (Char *origstr) { const Char *delimiter = | ; Int32 delimiterlen = StrLen (delimiter); Char *firststart; Char *delimiterstart; Char *secondstart; // the first string starts at the beginning firststart = origstr; // StrStr() will just tell us where the delimiter starts delimiterstart = StrStr (origstr, delimiter); if (delimiterstart == NULL) { return; } // the second strings starts right after the delimiter secondstart = delimiterstart + StrLen (delimiter); } OK, that wasn't too hard. But still, how do you split them? Well, one way to do it is to modify origstr. (This assumes origstr is writable memory!) You can just replace the first character of the delimiter with a 0; that will cause everything before it to be valid C string, because C strings are just neverending sequences of characters except that they end if one of the characters is a zero. You might worry about overwriting something important, but since the 0 character is just one byte, and since the delimiter has to be AT LEAST one byte (how could it be shorter?) that's OK, as long as you are OK with clobbering the delimiter. But what about the second string? Well, it already has a NULL terminator at the end of it, so it's *already* a valid string. So all you need to do is make sure you have a pointer to the beginning of it, and you can use it as a string. So, you can find the first string and advance to the second with a function like this (note that it's virtually identical to the above function, except I've added a few lines. Char *BreakUpString (Char *origstr) { const Char *delimiter = | ; Int32 delimiterlen = StrLen (delimiter); Char *firststart; Char *delimiterstart; Char *secondstart; // the first string starts at the beginning firststart = origstr; // StrStr() will just tell us where the delimiter starts delimiterstart = StrStr (origstr, delimiter); if (delimiterstart == NULL) { // we have to return something to signal an error return NULL; } // the second strings starts right after the delimiter
Re: Converting UTC time into local time in pre-OS 4.0
At 09:46 PM 3/22/2005, you wrote: I previously wrote : I'm implementing GPS support in my program (location tracking). As a side benefit, I would like to offer to set the device time with the UTC time received from the GPS. Now, in order to adjust UTC time to local time, I need to call TimUTCToTimeZone, which in turn requires the number of minutes east of UTC (or a negative amount if West of UTC), which I can get with PrefGetPreference and prefMinutesWestOfGMT... a UInt32 (unsigned) amount! The prefTimeZone pref (an Int16) was later introduced with OS 4.0 and preferences version 9. What's the trick for PalmOS 3.0-3.5? There is no trick with OS versions before 4.0. Those devices didn't have a time zone setting, so unless you provide your own time zone setting in your application, there's no way to convert the device time to UTC accurately. -- Ben Combee, Senior Software Engineer, palmOne, 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/
re: Creating graphs from a numerical database.
There's no native graphing support - you'll have to create them yourself using the standard drawing routines... pretty simple stuff really. I've done all manner of funky graphs for various projects before, pie charts, line graphs, bar graphs etc... and I'm sure many other developers have done similar... Couple of simple examples: http://www.handheldtennis.com/images/insideout4.JPG http://www.handheldtennis.com/images/momentum.JPG G. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Is it okay for an event handler to overwrite event-eType?
Hi all, I'm handling the 5-way key events but I want to deal with them differently in different forms. I've been doing this by intercepting the events early and generating my own, custom events: do { EvtGetEvent(event, evtWaitForever); if (!appHandleKeyEvent (event)) // --- CAPTURE EVENTS EARLY if (!SysHandleEvent (event)) // ... FrmDispatchEvent (event); } while (event.eType != appStopEvent); and then... static Boolean appHandleKeyEvent (EventPtr pInEvent) { EventType outEvent; if ((pInEvent-eType==keyDownEvent) (pInEvent-data.keyDown.modifiers==commandKeyMask)) { switch(pInEvent-data.keyDown.chr) { case btnHardUp: outEvent.eType= myUpButtonEvent; EvtAddEventToQueue (outEvent); break; // ... } But this is slow. I was wondering whether it was okay if, instead, I could have appHandleKeyEvent overwrite the info in the event: static Boolean appHandleKeyEvent (EventPtr pInEvent) { EventType outEvent; if ((pInEvent-eType==keyDownEvent) (pInEvent-data.keyDown.modifiers==commandKeyMask)) { switch(pInEvent-data.keyDown.chr) { case btnHardUp: pInEvent-eType= myUpButtonEvent; // --- HERE is the change break; // ... } Is it acceptable to replace the event in mid-stream or do I still have to create a new event? Is there a faster way to do this? Thanks! -- Wade [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Palm Developer Forum palm-dev-forum@news.palmos.com
Hello, I am new to Palm os .I have some queries related to Bitmaps and Databases.How to convert a Bmp file to database.I am using CodeWarrior.How do i open the databse as a image again in a gadget area. Thanks in Advance Raji -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
To Get the Missed Call Page on Treo.
Hi, I have an application, which will automatically (every certain time interval) Launch and do some work on the device and come back to previous screen. I need to launch my program, if any other form been shown on the device(like calendar, missed phone call page,...) on Treo650. I am facing problem to launch(using SysUIAppSwitch) my application, when missed phone call page is on the device. Other than every screen it launches properly, But If there is any missed call page, my application, not closing that missed call page and launching(using SysUIAppSwitch) my application. So, Please explain me How to get this missed phone call page is been on the device or not? and How to do that? Urgent Help needed. - Prabakar. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
need help with putting database name into list
hi everyone! i am using POL and CW. i found this in the POL help file under CListCtrl /// CListCtrl lstTest(MainTestList); static CArrayconst char* arrChoices; arrChoices.SetCount(3); arrChoices[0] = Item 1; arrChoices[1] = Item 2; arrChoices[2] = Item 3; lstTest.SetListChoices(arrChoices); but when i tried to do this /// Boolean CIconSetForm::OnOpen(EventPtr pEvent, Boolean bHandled) { m_lstIconSet.Attach(this,lstIconSet); m_trgIconSet.Attach(this,trgIconSet); m_lblIconSet.Attach(this,lblIconSet); CArray const char * arrChoices; UInt32 type = 'Rsrc'; UInt32 creator = 'Actn'; DmSearchStateType searchState; UInt16 cardNo; LocalID dbID; char dbName[40]; if (DmGetNextDatabaseByTypeCreator(true,searchState,type,creator,false,cardNo,dbID) == 0) { do { DmDatabaseInfo(cardNo,dbID,dbName,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL ,NULL); arrChoices.Add(dbName); } while (DmGetNextDatabaseByTypeCreator(false,searchState,type,creator,false,cardNo,dbID) == 0); } m_lstIconSet.SetListChoices(arrChoices); UInt16 numberOfItems = arrChoices.GetCount(); m_lstIconSet.SetHeight(numberOfItems 8 ? 8 : numberOfItems); bHandled = false; return false; } /// the result in the list goes haywire with wierd characters. i know that i am getting the correct database name. just that it doesn't display properly in the list. any idea how to fix this? any method from standard palm api? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: How to detect more than 1 key pressed at the same time
KeyCurrentState Regards Henk PS: Check the sample sources from PalmSource. There is a small game called reptoids? which shows you how to do this and other stuff. SEAn wrote: it is hard to figure them out. and i have tried but failed to check both press at the same time. - Original Message - From: Giovanni Fischetti [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Wednesday, March 23, 2005 3:38 AM Subject: How to detect more than 1 key pressed at the same time Hello, I'm writing a game, and I found the way to manage both hard keys and 5-way navigation buttons. But I don't know how to check Left direction (i.e.) and hardkey1 pressed at the same time (like a spaceship that while moving left is shooting using hardkey1). I'm not able to detect both keys together. How should I act? Thanks, Giovanni -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- - Henk Jonas[EMAIL PROTECTED] Palm OS certified developer Please contact me, if you need an off-side contract worker. - -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Toooooooooo much information - StrChr or StrStr or Glue + TxtFindString
Nigel Grant wrote: My string contains a phone number a name eg. me | +61 (0) 408 409 409 I want to have two string variables that contain me +61 (0) 408 409 409 Should I use StrChr or StrStr ? I have tried to write my own, I'm having trouble as these are pointers not values. An example piece of code that I can study would be ideal :) Let's say strTemp is the pointer to your original string. We will make a copy of this string, find the | and alter the string to get two pointers to the start of the first substring (strSub1) and the second substring (strSub2). Char *strSub1, *strSub2; strSub1 = MemPtrNew(StrLen(strTemp) + 1); if (strSub1) { StrCopy(strSub1, strTemp); strSub2 = StrChr(strSub1, '|'); if (strSub2) { strSub2[0] = 0; strSub2++; // strSub1 has now the first substring, strSub2 the second, use it // here } MemPtrFree(strSub1); } Regards Henk -- - Henk Jonas[EMAIL PROTECTED] Palm OS ® certified developer Please contact me, if you need an off-side contract worker. - -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Is it okay for an event handler to overwrite event-eType?
Wade Guthrie wrote: Is it acceptable to replace the event in mid-stream or do I still have to create a new event? Is there a faster way to do this? You can do this. But take care not to interfer with the system owned events. If you would change the type to one of the system events, the underlying info in the event union will not match. Regards Henk -- - Henk Jonas[EMAIL PROTECTED] Palm OS ® certified developer Please contact me, if you need an off-side contract worker. - -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Reassembling fragments (WAP SAR)
Donald C. Kirker wrote: Can anybody help me? I found that a fatal exception occurs at StrCopy in SARreassemble, but other than that, I am clueless. -Donald if (MemPtrSize(buf) (offset+tmp-size)) MemPtrResize(buf, offset+tmp-size); StrCopy(buf+offset, tmp-data); offset += tmp-size; You thought about the \0 character which StrCopy adds to the end of your data? So for a 3 character string you will need 4 bytes space. Regards Henk -- - Henk Jonas[EMAIL PROTECTED] Palm OS ® certified developer Please contact me, if you need an off-side contract worker. - -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/