library
Hy, How can I import a dll file in my CodeWorrior project ? My dll file is bild in C, I didn't see any source files to show me that I can include some dll files, and searching in the docs has brouth me nowhere... I should build a lib file instead of a dll file ? Help :-( Regards, Iulia. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
problem about: frmObjectFocusLostEvent
Hello, I am losing in such a problem. I want to add such an event, frmObjectFocusLostEvent, to event queue and handle it whenever a keydown event happened. So, I write my code like that, if ((eventP-eType == keyDownEvent )) { status_terr; EventType tEvent = {0}; printf(adding event...\n); tEvent.eType = frmObjectFocusTakeEvent; // tEvent.data.ctlSelect.controlID = default key; err = EvtAddEventToQueue(tEvent); printf(err is: %d, err); printf(end\n); handled = true; } after testing, I found, the event should be added into the event queue successfully, cause err is printed out to be 0. However, after trace output, I found the program didn't handle the added event at all. it did generate KeyDownEvent, added frmObjectFocusTakeEvent into queue, but didn't generate frmObjectFocusTakeEvent after that. My printf for handle frmObjectFocusTakeEvent prints nothing. I had ever use the same way to add a ctlSelectEvent, with a particula controlID, it works as expected. So, I don't know why it cann't work with frmObjectFocusTakeEvent. (My machine is surly can generate frmObjectFocusTakeEvent which is after testing) Very appreciate if anyone can give me some idea. Thanks -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
frmObjectFocusTakeEvent problem
Hello, I am losing in such a problem. I want to add such an event, frmObjectFocusTakeEvent, to event queue and handle it whenever a keydown event happened. So, I write my code like that, if ((eventP-eType == keyDownEvent )) { status_terr; EventType tEvent = {0}; printf(adding event...\n); tEvent.eType = frmObjectFocusTakeEvent; // tEvent.data.ctlSelect.controlID = default key; err = EvtAddEventToQueue(tEvent); printf(err is: %d, err); printf(end\n); handled = true; } after testing, I found, the event should be added into the event queue successfully, cause err is printed out to be 0. However, after trace output, I found the program didn't handle the added event at all. it did generate KeyDownEvent, added frmObjectFocusTakeEvent into queue, but didn't generate frmObjectFocusTakeEvent after that. My printf for handle frmObjectFocusTakeEvent prints nothing. I had ever use the same way to add a ctlSelectEvent, with a particula controlID, it works as expected. So, I don't know why it cann't work with frmObjectFocusTakeEvent. (My machine is surly can generate frmObjectFocusTakeEvent which is after testing) Very appreciate if anyone can give me some idea. Thanks -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Code reference out of range... (codewarrior + C++)
Hello, and thanks for all your help! I followed Erico Franco's first option as I use Codewarrior v9... and it worked in a flash! Thanks for the tip! André Augusto -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: problem with alarms
I didn't read everything so I may have missed something but... I have an app doing something similar. Wake up for a silent alarm, do something with a database, go back to sleep again. To achieve this you must use AlmSetProcAlarm and point to a function in locked memory. When the alarm goes off the system wakes up partially and calls the function which performs 'its thing' and then exits. The system goes back to sleep. No UI is allowed. If you use AlmSetAlarm the PDA wakes up completely and expects UI to take place. See a description in Palm OS Companion - Attentions and Alarms. Appologies if all that is irrelevant. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
AlmSetProcAlarm if application not running anymore
Hello, I am programming a temperature datalogger. I use AlmSetProcAlarm to launch a temperature mesurement every x seconds. I want to be sure that if the user exit application, the logger will continue to record temperature. So I want to make the measure procedure always avaliable. I have read on the net that MemHandleLock can do that but I don't know how. Can anybody help me ? Best regards -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: How can I grab another application's event message?
Thank you for your suggestion. I have decided to use notification to do it. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Event Loop Time Stolen on T5/Treo 650
Hi all! I have an app that during it's initialization it posts custom events for itself, and initialization finishes when no more events are received. During the initialization the EvtGetEvent read events with no delay and on the first idle event starts to wait forever, as a classic app. All this works ok, except on *some* of the Tungsten|T5 and Treo 650 devices (say 30% of all I know of). The usual initialization is about 1 second (I have a T5 myself), but some users report times like 10 to 40 seconds. What can delay the event loop on these devices during the initialization phase? There is some moderate memory allocation and reading or resources, but nothing extraordinary. Still the majority of users report perfect initialization. I've researched a potential conflict with the apps installed on the problem devices for over a month with no success. Any idea will be more then welcome! Thanks and all the best, Ilia. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: A odd NetLib problem
I fixed the problem, it was with the customLaunch i set up. I was passing in SysAlarmTriggeredParamType * cmdPBP without changing the owner of the chunk to to OS. this data wasnt needed in my auto-update, so passing NULL instead of that in the UIAppSwitch() call fixed the problem. I still think its odd that this error only showed up after i made netlib calls. if i never made a netlib open/close call i wouldnt see the problem. -- Scott Erickson Software Development Team, FB-4, Inc. [EMAIL PROTECTED] Scott Erickson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Heres the deal, im setting up an auto-update that is triggered by an alarm. when the alarm goes off, i launch my app with a custom launch code. at that point i call my update function, which is the same as the update function the user can invoke from the main form. it goes into the update function and after it leaves, i get a soft reset. I started out cutting all the code out of the update function to see if it worked that way, and it returned to the previous app just fine. I started to add in the code to make it update the virus definitions, and at the point where i put in the NetLibOpen/Close calls is when the softreset would show up. Im not doing it any different then with the manual update, which has worked fine for weeks. Also, if i force the NetLib into a close-wait state by using the web right before the alarm is going to go off, it runs through the auto-update function fine, and returns without a soft reset. What could be causing such an error? -- Scott Erickson Software Development Team, FB-4, Inc. [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Using Palm Progress Manager example...
Hello everybody! Can anyone give me an example how can I use the Progress Manager in my application? Or redirect me to a place that explains how? Thanks! André Augusto -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Using Palm Progress Manager example...
http://www.developer.com/lang/other/article.php/615961 -- Scott Erickson Software Development Team, FB-4, Inc. [EMAIL PROTECTED] Andre Augusto [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello everybody! Can anyone give me an example how can I use the Progress Manager in my application? Or redirect me to a place that explains how? Thanks! André Augusto -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: LifeDrive Mobile Manager
Subject: Re: LifeDrive Mobile Manager From: Dr. Vesselin Bontchev [EMAIL PROTECTED] Date: Tue, 10 May 2005 16:00:24 - ha! you'll be lucky, they've only just admitted to it existing, I hardly think the SDK is the next thing to be released Well, given that it's supposed to hit the market in 8 days, they better have the SDK and the simulator ready... Very amusing. 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/
Using pilRC - the property explorer does not open
Hi, Using pilRC - the property explorer does not open (pressing f11). Therfore, I cannot change controls attributes... Any idea? -Udi -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: How to suppress installed applications?
ubject: Re: How to suppress installed applications? From: Alok Kumar [EMAIL PROTECTED] Date: Wed, 11 May 2005 10:01:44 +0530 The application which I am trying to delete is running in the background. As it runs, I go to the homepage and use the launcher from there to delete this running application. The OS then asks me for a confirmation to delete and when I click 'Yes', it tries to delete but resets the phone. On reset, the application stops running but is still there in the device. If the application is in ROM, then you can't delete it. Also I think if the application has set the protected' flag it can receive a notification and stop the delete process. You need to talk to the developer and find out why you can't delete the program. 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/
deploy my application and conduit
Hello, I'm finishing writting a software for Palm and Windows... When i install the windows application with the conduit on the machine, il will need to install Hotsync.exe to make sure my conduit will function. Wich file i need to install with hotsync.exe...? I made a test with the EXE alone and i have a lot of error message (missing dll) I dont anderstand because, i read someting from palm that it tell me that i do not need anything more abviously it's not true. Thanks Luc -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
IMEI
Is there a way to retive device identification numbers such as IMEI, IMSI or device SN number of a device? -- Scott Erickson Software Development Team, FB-4, Inc. [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re[4]: T5 database HotSync file size problem
Well, nobody else has answered this, so I'll take a stab at it. I believe Palm(One/Source) could very easily accomplish a wrapper library which wouldn't require code changes everywhere. A simple implementation would be to add a function to the glue libraries which would initialize the logical database system, taking as arguments the number of logical records per physical record and the size per logical record. The only thing a developer would need to do is call this glue function once per database requiring logical operations, and the rest of the Dm family of functions could stay the same. Of course, I'm assuming that the logical records would be the same size for the above implementation, but that would likely cover the majority of developer cases already. Working under such an assumption, I can't see something like this taking much time to implement and provide the necessary glue library to developers. If for some reason it's not practical to modify the original Dm family of functions easily, a total wrapper around the DataMgr shouldn't be too difficult. The biggest challenge would likely be the typing element rather than any complexity in actually developing it. Adrien. Tuesday, May 3, 2005, 4:00:15 PM, you wrote: CT From: Adrien Regimbald [EMAIL PROTECTED] Unfortunately, there is no way around this for now. Perhaps PalmOne will issue a patch, but we don't have any news that one is coming as of yet. The minimum record size on the T5 is actually 512 bytes, which CT (snip) physicalIndex = logicalIndex / logicalRecordsPerPhysical; physicalOffset = logicalRecordSize * (logicalIndex % logicalRecordsPerPhysical); Of course, it would be a good idea to put this functionality in a wrapper class of some sort, so that you have a new logical family of database functions to perform all of your physical - logical translation for you. CT Which is exactly what Palm(One or Source) could do and release CT open-source if they were serious about helping developers CT overcome this problem. For many apps I suspect that a simple CT wrapper for the Dm functions would do the job, although I haven't CT investigated. CT Has anyone that's taken this step got an opinion on whether it CT can be implemented as a wrapper lib without code changes? CT Chris Tutty -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Re[4]: T5 database HotSync file size problem
Adrien, Of course, I'm assuming that the logical records would be the same size for the above implementation, but that would likely cover the majority of developer cases already. I suspect that would cover relatively few cases -- even if not packing records by eliminating unused fields as the original PIM databases do, having variable length strings is extremely common. The net result is I believe you would find the vast majority of pdb's consist of variable length records. So the developer would have to set the logical record size to the maximum possible length if the wrapper were to assume consistent sizes, and that could negate any benefit. In fact, if the record contains any memo-like fields, a given record may easily exceed the NVFS block size (512 on the T5) even if typical records were under say 64 bytes or whatever. I don't believe such a simplistic approach would achieve much real world benefits, even if it didn't introduce new compatibility problems. If for some reason it's not practical to modify the original Dm family of functions easily, a total wrapper around the DataMgr shouldn't be too difficult. The biggest challenge would likely be the typing element rather than any complexity in actually developing it. No, the bigger challenge would be compatibility with conduits and code which relies on record attributes, categories, unique IDs, etc. Not to mention the ramifications on memory handle operations and Exchange Manager functions. It isn't just the Dm...() calls which would be impacted with such a wrapper. Besides, the whole point of using the block size seems to be avoiding the performance penalty of having to read/write all other record(s) which happen to be at least partially within that memory block. And by implementing such a wrapper you are already causing write operations to include the other logical records within the same physical record. Then consider the ramifications for things like DmMoveRecord() used when sorting databases, or record insertions or deletions. Doug -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
DbCacheTool solving T5 NVFS troubles?
Interesting discussion at http://www.1src.com/forums/showthread.php?t=86635 Any idea what could be behind this tool? Regards, Jan Slodicka -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Extracting data from Palm Desktop (on Winxx) into .csv files
If I am in an inappropriate venue please please inform me and if possible direct me to to proper venue. I have a need to extract date from the Palm Desktop (under winxx) into .csv files. Do applications exist which will do this? Thank you. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Using Palm Progress Manager example...
Thanks a lot! I already saw this link, but the problem is that the sample code is not there Does anyone has it? Thanks! Scott Erickson wrote: http://www.developer.com/lang/other/article.php/615961 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Using Palm Progress Manager example...
You cant see the sample code on that page? Below is the sample code from that link. switch (eventP-data.ctlSelect.controlID) { case MainStartButton: { ProgressPtr prg; Long i=0, cnt=0; EventType event; prg = PrgStartDialog(Counting to 1000..., callbackFunction); //Do something complicated... while (i1000) { i++; cnt++; StrIToA(message, i); if (cnt==10) { PrgUpdateDialog(prg, 0, i, message, false); cnt=0; } EvtGetEvent(event, 0); if (!PrgHandleEvent(prg, event)) if (PrgUserCancel(prg)) break; } PrgStopDialog(prg, false); break; } default: break; } - typedef struct { Word stage; // = current stage CharPtr textP; // = buffer to hold text to display Word textLen; // = length of text buffer CharPtr message; // = additional text for display Err error; // = current error Word bitmapId; // = resource ID of bitmap to display Word canceled:1; // = true if user has pressed the cancel buttonWord showDetails:1; // = true if user pressed down arrow for more details Word textChanged:1; // = if true then update text (defaults to true) Word timedOut:1; // = true if update caused by a timeout ULong timeout; // timeout in ticks to force next update (for animation) //progress bar info (Not Implemented) DWord barMaxValue; DWord barCurValue; CharPtr barMessage;// text for display below the progress bar. Word barFlags; // reserved for future use. } PrgCallbackData; Boolean callbackFunction(PrgCallbackDataPtr cbP) { if (cbP-stage250) { StrCopy(cbP-textP, Starting: ); StrCat(cbP-textP, cbP-message); cbP-bitmapId = startBitmap; } else if (cbP-stage750) { StrCopy(cbP-textP, Finishing: ); StrCat(cbP-textP, cbP-message); cbP-bitmapId = endBitmap; } else { StrCopy(cbP-textP, In the middle: ); StrCat(cbP-textP, cbP-message); cbP-bitmapId = middleBitmap; } cbP-textChanged = true; return true;}--Scott EricksonSoftware Development Team, FB-4, [EMAIL PROTECTED]Andre Augusto [EMAIL PROTECTED] wrote in messagenews:[EMAIL PROTECTED] Thanks a lot! I already saw this link, but the problem is that the samplecode is not there Does anyone has it? Thanks! Scott Erickson wrote:http://www.developer.com/lang/other/article.php/615961 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: IMEI
Scott Erickson [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Is there a way to retive device identification numbers such as IMEI, IMSI or device SN number of a device? Have a look there: http://hazelware.luggle.com/archive.html?2005.2 In the section: Hardware Identification on the PalmOS -- Regis St-Gelais www.laubrass.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Using Palm Progress Manager example...
Hello! Off course I saw that code... but I thought that something was missing, as the page has a link Click here http://www.developer.com/ew_downloads/common/content/article/19990913/dc_progmgr/progress.zip for the source code for the Progress Manager sample application so I could see how things really work. But thanks again! André Augusto -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: IMEI
Thanks for the link, thats what i was looking for. -- Scott Erickson Software Development Team, FB-4, Inc. [EMAIL PROTECTED] Regis St-Gelais [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Scott Erickson [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Is there a way to retive device identification numbers such as IMEI, IMSI or device SN number of a device? Have a look there: http://hazelware.luggle.com/archive.html?2005.2 In the section: Hardware Identification on the PalmOS -- Regis St-Gelais www.laubrass.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: frmObjectFocusTakeEvent problem
I'm not into the internals of the API but I think this event will only sent when a object has the focus. At least it wouldn't be a good idea to handle a object focus event if the object hasn't the focus. Give this a try FrmSetFocus(frm, FrmGetObjectIndex(frm, ListTable)); FrmNavObjectTakeFocus(frm, ListTable); Benjamin Hello, I am losing in such a problem. I want to add such an event, frmObjectFocusTakeEvent, to event queue and handle it whenever a keydown event happened. So, I write my code like that, if ((eventP-eType == keyDownEvent )) { status_t err; EventType tEvent = {0}; printf(adding event...\n); tEvent.eType = frmObjectFocusTakeEvent; // tEvent.data.ctlSelect.controlID = default key; err = EvtAddEventToQueue(tEvent); printf(err is: %d, err); printf(end\n); handled = true; } after testing, I found, the event should be added into the event queue successfully, cause err is printed out to be 0. However, after trace output, I found the program didn't handle the added event at all. it did generate KeyDownEvent, added frmObjectFocusTakeEvent into queue, but didn't generate frmObjectFocusTakeEvent after that. My printf for handle frmObjectFocusTakeEvent prints nothing. I had ever use the same way to add a ctlSelectEvent, with a particula controlID, it works as expected. So, I don't know why it cann't work with frmObjectFocusTakeEvent. (My machine is surly can generate frmObjectFocusTakeEvent which is after testing) Very appreciate if anyone can give me some idea. Thanks Reply -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Serious problems with SysZLib on Tungsten T
I'm using the ARM-ported syszlib.prc (71k) for uncompressing some data in my application. It works fine on a T|E and T|T3 I've tested, but for some reason, on the Tungsten T it is unable to load the library. I'm using the recommended (?) ZLSetup and ZLTeardown macros defined in SysZLib.h. On the T|T, ZLibRef is returned as 37390 and consequently, ZLibuncompress does nothing. On the others, ZLibRef returns 5 or 6 and uncompresses correctly. What am I doing wrong here? And why the inconsistency between models? I thought at first it could be a RAM/dynamic heap problem, but I've tested it on the simulator with lowest RAM/heap possible without problems. I'm using the pnojpeglib in the same application without problems on the T|T. I really wish Justin Clark who did a fantastic job porting zlib to ARM would have done an equally great job at documenting it. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
LstSetDrawFunction
Hi All, I am trying to implement a custom draw method for a listbox and I having some trouble. My code is basically as follows: form = FrmInitForm( ListForm ); if( form ) { list = GetObjectPtr( AList ); if( list ) { LstSetDrawFunction( list, (ListDrawDataFuncPtr)DrawMe ); number = sizeof(ListElements)/sizeof(ListElements[0]); /* CRASH */ LstSetChoices( list, NULL, number ); button = FrmDoDialog( form ); /* Handle button and get data from form. */ FrmDeleteForm( form ); } } My callback is: static void DrawMe(Int16 i, RectangleType * b, Char ** text) { WinDrawChars( ListElements[i], StrLen( ListElements[i], bounds-topLeft.x, bounds-topRight.y ); } No it seems to be crashing at LstSetChoices... I am sure it is something obvious but I am still a learner ;-) Thanks in advance. Andy -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re[6]: T5 database HotSync file size problem
Hello Douglas, I suppose my own development experience with the Palm has biased my opinion on how the platform is typically used. For example, I've never thought that features like unique IDs and record attributes were worth the bother of using them, and most of the Palm databases I work with use fixed length records for the main data. Where possible, I store string data in a separate database, in a more relational database fashion. We'd have to conduct a survey to determine whether the average Palm developer uses fixed length records or not, but either way, my assumption was probably unfounded. The thing that confuses me is that it seems you are advocating against the use of a logical record scheme. Waiting for 10,000+ records to HotSync is not a very pleasant experience, and currently having such a large number of records will cause an application to simply not work on the new PalmOne devices. Are you trying to say that Palm (One/Source) should not do something to help developers work around this problem? Notwithstanding the current problems with the T5 and Treo 650, I still have to wonder why a library hasn't been developed to make this process simpler ages ago. Adrien. Wednesday, May 11, 2005, 9:45:43 AM, you wrote: DH Adrien, Of course, I'm assuming that the logical records would be the same size for the above implementation, but that would likely cover the majority of developer cases already. DH I suspect that would cover relatively few cases -- even if not packing records DH by eliminating unused fields as the original PIM databases do, having variable DH length strings is extremely common. The net result is I believe you would find DH the vast majority of pdb's consist of variable length records. So the developer DH would have to set the logical record size to the maximum possible length if the DH wrapper were to assume consistent sizes, and that could negate any benefit. DH In fact, if the record contains any memo-like fields, a given record may easily DH exceed the NVFS block size (512 on the T5) even if typical records were under DH say 64 bytes or whatever. DH I don't believe such a simplistic approach would achieve much real world DH benefits, even if it didn't introduce new compatibility problems. If for some reason it's not practical to modify the original Dm family of functions easily, a total wrapper around the DataMgr shouldn't be too difficult. The biggest challenge would likely be the typing element rather than any complexity in actually developing it. DH No, the bigger challenge would be compatibility with conduits and code which DH relies on record attributes, categories, unique IDs, etc. Not to mention the DH ramifications on memory handle operations and Exchange Manager functions. It DH isn't just the Dm...() calls which would be impacted with such a wrapper. DH Besides, the whole point of using the block size seems to be avoiding the DH performance penalty of having to read/write all other record(s) which happen to DH be at least partially within that memory block. And by implementing such a DH wrapper you are already causing write operations to include the other logical DH records within the same physical record. DH Then consider the ramifications for things like DH DmMoveRecord() used when sorting DH databases, or record insertions or deletions. DH Doug -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: LstSetDrawFunction
You mean LstSetListChoices(), right? The second parameter can't be NULL... -Greg Wilson PalmSource, Inc. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: LstSetDrawFunction
Whoops - been a while since I looked at that stuff. Ignore my previous post - the second parameter *can* be NULL if you are using a callback to draw the list contents. -Greg Wilson PalmSource, Inc. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: LstSetDrawFunction
On Wed, 2005-05-11 at 19:35 +, Greg Wilson wrote: Whoops - been a while since I looked at that stuff. Ignore my previous post - the second parameter *can* be NULL if you are using a callback to draw the list contents. -Greg Wilson PalmSource, Inc. Hi Greg, I found the problem - I had to set the active form to the list form. Thanks Andy -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Re[6]: T5 database HotSync file size problem
Adrien, The thing that confuses me is that it seems you are advocating against the use of a logical record scheme. By all means not. If you check the archives, you'll see I very much advocate rolling your own logical record schemes. I have databases where I need to support over 65000 (logical) records. Plus due to the Hot Sync bottleneck on the physical record count, I'd do the same even if I needed only several thousand records. What I am saying is that I don't believe you can make this transparent to the developer while maintaining compatibility with other things like conduits. It really needs to be designed into the application, IMHO. Or at least retrofitted with a human code review. But perhaps because I've always taken this approach in my apps, the T5 was pretty much a non-issue for me, even though I use multi-MB databases. I added some calls to DmSyncDatabase() etc to ensure data integrity if the unexpected happens, but I've really not had other problems with it. Are you trying to say that Palm (One/Source) should not do something to help developers work around this problem? No, I'm only saying the proposed wrapper would be too simplistic for a general purpose solution, IMHO. I still have to wonder why a library hasn't been developed to make this process simpler ages ago. Probably a few reasons: 1) Using something like Nutshell or Combiner or ZBoxZ, you can get the same install speed benefits, though it still needs to be decompressed on the device. (I don't do this because I already have few, large physical recs.) 2) It is relatively easy to roll your own logical access wrappers. 3) Often when you deal with databases of this size, you have other issues to resolve too, such as a need for multiple indexes. For example, I may want to lookup customers by name or phone number or customer number; or inventory by UPC or SKU or description or whatever. I store both the raw data plus all my cross-reference indexes in a single pdb, meaning I need specialized access routines not generic logical to physical mapping. Doug -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: Serious problems with SysZLib on Tungsten T
For what it's worth, we are using the ARM port of syszlib in our commercial application, and I have not heard of any issues with it on the T. I don't happen to be using the macros though, I am opening it by hand Err error; Boolean loaded = false; /* First try to find the library. */ error = SysLibFind(Zlib, refNumP); /* If not found, load the library instead. */ if (error == sysErrLibNotFound) { error = SysLibLoad('libr', 'ZLib', refNumP); loaded = true; } if (error == errNone) { error = ZLibOpen (*refNumP); if (error != errNone) { if (loaded) { SysLibRemove(*refNumP); } *refNumP = sysInvalidRefNum; } } -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
5-way navigation on Tungsten E
I would like implement some basic support for the 5-way navigator in an application I'm maintaining. I already use the up and down directions, by looking for keyDownEvent with chr == vchrPageUp and vchrPageDown. So far, so good. From looking at the Events.h and Chars.h headers, it looks like I should be able to handle the other 3 directions similarly; e.g. the usual exit to Launcher behavior should be a simple matter of looking for a keyHoldEvent with chr == vchrRockerCenter. BUT: no such luck; I never see such events. Whenever I press left, right, or center, I get keyDownEvents with chr == vchrPalmMin+3 and chr == vchrResetAutoOff; never any keyHoldEvent or keyUpEvent (which the API docs lead me to expect I should get, since these are hardware keys). Is there a device-independent way to read the 5-way navigator? I notice that all the apps I have on my T|E, including all the standard apps *and* all third-party apps, at least support the hold center to quit behavior, so I'm guessing it can be done, but the docs I got with the SDK are no help (or maybe I just can't figure out where to look). Any help would be appreciated! - Thomas -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
was RE: Is DmSyncDatabase() synchronous?
I realize the question appears to be simply a play on words, but I'm serious :) If nobody knows if the call is synchronous, has anyone observed anything that would indicate it is not? Thanks. -Original Message- From: Jeffry Loucks To: Palm Developer Forum Sent: 5/10/2005 4:58 PM Subject: Is DmSyncDatabase() synchronous? Anyone know if the new DmSyncDatabase() call is synchronous? I'd like to know if, upon return, the database is completely flushed to flash or is it simply flagged to be flushed. I suspect it is synchronous, but I don't know what's behind the scenes, so I'm not making any assumptions. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Clipping context-irrelevant list choices
In some cases, one of my form lists shows irrelevant options. I already pushed them to the end of the list, but is there a simple way to limit the number of viewable items in a list without having to go through LstSetListChoices and a static array of strings? -- Luc Le Blanc -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
LstGetHeight?
While LstSetHeight allows setting the list height (in number of lines), there seems to be no corresponding LstGetHeight API. Is the only trick to divide the list vertical extent by the assumed line height? -- Luc Le Blanc -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Notifications
HI all! I have some interesting in notifications. Now I want to notify my app while any other app has input a single character, so I must register a notification to a system, which kind of notification should I register? I have checked the document and did not find any argument can stand for the event that any other app has input a single character. Do you got any idea? Thanks! Regards, Chrix -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
How do you calculate device coordinates for use with EvtEnqueuePenPoint
I want to generate some simulated x,y pen taps from an AlarmTrigger. EvtEnqueuePenPoint works fine for this purpose on the simulator since it uses the same x,y coordinate system that the application event handler uses. However, on a device (Garmin iQue 3600), this function wants the hardware coordinates used by the digitizer. I wrote a simple test to try to determine what the translation is, but no simple function has presented itself. Is there some way to get this info from the device, and translate the traditional x,y coordinates to what this function requires. Thanks for any assistance. Tom -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: problem about: frmObjectFocusLostEvent
You need to turn ON focus mode. What type of device are you testing this one? I recently had a problem with the system Not generating the form take and lost events until I turned on Object Focus Mode. Now mind you, this was tested on a treo 600. If you take a look at the treo 600 samples, part of the developing tools, you should take a look at the HSNavSample.zip. It shows you how to program 5-way navigation. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Porting PODS projects to Windows Mobile
I have been a die-hard Palm OS programmer for years. Sadly, the ever increasing market share of Windows Mobile devices requires me to recode some of my applications in that environment. Years ago, I wrote programs for Windows CE, but had a number of unsatisfactory experiences including being repeatedly forced to buy expensive programming tools that were obsolete and useless within weeks of purchase. I am steeling myself to try again, hoping that the Windows Mobile environment has matured a little. I would like people who have followed this path already to post their comments and perhaps their recommendations for tools, programming environments, and experiences or lack thereof with Windows Mobile backward compatibility. I also want to preserve as much code as possible. My dream ( not likely to be true ) is a Windows Mobile compiler right out of PODS (hah!) P.S. I currently use PODS 1.0 with C and a mulitude of emulators and simulators for Palm OS devices. This has been very satisfactory. I hope to a closely duplicate this type of setup. I also had good luck with MetroWerks Codewarrior for a long time. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: A Palm Puzzle...Required to be Solved
Hi, Few things I know about the solution is... 1) I need to respond to sysNotifySleepRequestEvent. 2) I need to defer the Sleep, so that I can display my form. 3) I need to defer the sleep in such a way that My application will be the last application that does this. Then, When my application resumes the sleep, no other application should differ the sleep and the Palm should immediately sleep. This Way the Event sequence I described will be maintaind and no other events will be generated. The things I don't know about is 1) How to implement the 3rd point above. 2) How is it done so that no frmOpen,frmLoad, etc... events will be generated. Please help me solve this... Thanks in advance... Regards, Mehul -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: Notifications
I have got it sysNotifyVirtualCharHandlingEvent The sysNotifyVirtualCharHandlingEvent is broadcast to enable custom handling of virtual characters. Set the handled field in the SysNotifyParamType structure to true to prevent the virtual character from being passed on to the rest of the system. What a confusing fact is, sysNotifyVirtualCharHandlingEvent 's description link is not included in Notification Summary chapter of PalmOS Programmer's API reference, but included in Notification reference chapter. That's also why I didn't find sysNotifyVirtualCharHandlingEvent at once. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: Porting PODS projects to Windows Mobile
It should be possible, but developer tool's name shouldn't be PODS, but Eclipse or some else. Maybe the StyleTap Platform is a good thing, which allow Palm OS applications run on PPCs, the story (http://www.palminfocenter.com/view_story.asp?ID=7794) didn't say how much it will cost, if it is very low-cost that every PPC user can purchase it with a satisfied price, or even free(Just like J2ME). I think it would be a significant thing to the palm developer's group. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: Porting PODS projects to Windows Mobile
We've been testing with StyleTap, and so far our developers are amazed by it. They seem to have really nailed it, and the screen shots I've seen of our Palm app are great. The only problems we've encountered so far are lack of HotSync support and an error when trying to check battery life. Once we've fully assessed it I'll report back. In the meantime, it's definitely worth a look. Mark Cameron Techneos Systems Inc. -Original Message- From: Chrix Bell [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 11, 2005 9:53 PM To: Palm Developer Forum Subject: re: Porting PODS projects to Windows Mobile It should be possible, but developer tool's name shouldn't be PODS, but Eclipse or some else. Maybe the StyleTap Platform is a good thing, which allow Palm OS applications run on PPCs, the story (http://www.palminfocenter.com/view_story.asp?ID=7794) didn't say how much it will cost, if it is very low-cost that every PPC user can purchase it with a satisfied price, or even free(Just like J2ME). I think it would be a significant thing to the palm developer's group. -- 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: Porting PODS projects to Windows Mobile
I too am considering porting over a few of my applications into the Windows Mobile Environment. However, from what I find it's not going to be easy. Perhaps we can share our findings? On another note... you mentioned that you are using PODS 1.0, have you seen/used version 1.1? I was using Falch.net Developer Studio and am very happy with it however it is no longer supported and no longer exists. Thus I was looking for a new tool to use. I had tried PODS 1.0 a while ago but found Developer Studio easier to use. I have recently downloaded and installed PODS 1.1 but when I tried to compile my simplest program (Tic Tac Toe) it doesn't work. Is 1.0 better? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chuck Kaplan Sent: Wednesday, May 11, 2005 11:08 PM To: Palm Developer Forum Subject: Porting PODS projects to Windows Mobile I have been a die-hard Palm OS programmer for years. Sadly, the ever increasing market share of Windows Mobile devices requires me to recode some of my applications in that environment. Years ago, I wrote programs for Windows CE, but had a number of unsatisfactory experiences including being repeatedly forced to buy expensive programming tools that were obsolete and useless within weeks of purchase. I am steeling myself to try again, hoping that the Windows Mobile environment has matured a little. I would like people who have followed this path already to post their comments and perhaps their recommendations for tools, programming environments, and experiences or lack thereof with Windows Mobile backward compatibility. I also want to preserve as much code as possible. My dream ( not likely to be true ) is a Windows Mobile compiler right out of PODS (hah!) P.S. I currently use PODS 1.0 with C and a mulitude of emulators and simulators for Palm OS devices. This has been very satisfactory. I hope to a closely duplicate this type of setup. I also had good luck with MetroWerks Codewarrior for a long time. -- 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: IMEI
//to get IMEI number. #include HsExt.h #include HsPhone.h //IMEI details static CharPtr GetIMEI(CharPtr manufacturer,CharPtr model, CharPtr version); static int LoadPhoneLibrary(); static int UnLoadPhoneLibrary(); LoadPhoneLibrary(); if (PhnLibModulePowered (PhoneLibRefNum)==true) { StrCopy(g_strIMEI, GetIMEI(NULL,NULL,NULL)); } UnLoadPhoneLibrary();*/ /* * FUNCTION: GetIMEI * * DESCRIPTION: Return the Name of The operator like Airtel/ Hutch of the SIM * * PARAMETERS: None * * RETURNED: * String having operator name or NULl if there is some problem */ static CharPtr GetIMEI(CharPtr manufacturer,CharPtr model, CharPtr version) { Err err; Boolean radioPowered = PhnLibModulePowered (PhoneLibRefNum); CharPtr imei = NULL; if (radioPowered) { err = PhnLibCardInfo(PhoneLibRefNum,manufacturer,model,version,imei); } else return NULL; return imei; } /* * FUNCTION: LoadPhoneLibrary * * DESCRIPTION: Return the version number of the PalmTM operating system * * PARAMETERS: None * * RETURNED: * Returns 0 if no err comes lese err number */ static int LoadPhoneLibrary() { UInt32 phnType; Char* phoneLibraryName; UInt32 phoneLibraryDbCreator; Err err; //Find out what type of device we run on HsAttrGet (hsAttrPhoneType, 0, phnType); if (phnType == hsAttrPhoneTypeCDMA) { phoneLibraryName = phnLibCDMAName; phoneLibraryDbCreator = phnLibCDMADbCreator; } else // default is GSM { phoneLibraryName = phnLibGSMName; phoneLibraryDbCreator = phnLibGSMDbCreator; } // Load the Phone Library err = SysLibFind (phoneLibraryName, PhoneLibRefNum); if (err) {//Should never be getting here,but might as well tryload err = SysLibLoad (phnLibDbType, phoneLibraryDbCreator,PhoneLibRefNum); if (err) { FrmCustomAlert(DebugAlert,Unable To load The Phone Library,,); return (err); } } // Open the phone library now. err = PhnLibOpen (PhoneLibRefNum); if (err) { FrmCustomAlert(DebugAlert,Unable To OPEN Phone Library,,); return (err); } return 0; } static int UnLoadPhoneLibrary() { Err err = PhnLibClose(PhoneLibRefNum); //call this api to avoid soft reset. err = SysLibRemove(PhoneLibRefNum); if(err == 0) PhoneLibRefNum = 0; return err; } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Scott Erickson Sent: Wednesday, May 11, 2005 11:31 PM To: Palm Developer Forum Subject: Re: IMEI Thanks for the link, thats what i was looking for. -- Scott Erickson Software Development Team, FB-4, Inc. [EMAIL PROTECTED] Regis St-Gelais [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Scott Erickson [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Is there a way to retive device identification numbers such as IMEI, IMSI or device SN number of a device? Have a look there: http://hazelware.luggle.com/archive.html?2005.2 In the section: Hardware Identification on the PalmOS -- Regis St-Gelais www.laubrass.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/