Re: Bad Field Selection after using on-screen keyboard
Thanks for the tip. I had read that thread, and others that are similar, but I could not find what specifically causes the error. Others that have had similar errors have different scenarios that don't apply to what I am doing. It would be nice if someone who understands the process that Palm goes through could shed light on what the OS is trying to do, then I might figure out what I am doing wrong. Dominique "Michael Yam" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > I get this in Gremlins now and then also. Hal Mueller, who also got this > error message, solved the problem for himself, but his solution did not work > for me. Here's his post from the archives: > > http://groups.yahoo.com/group/palm-dev-forum/message/9 > > It might work for you. > > Regards, > > Michael Yam > www.ytechnology.com > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: DmComparF receiving NULL for SortRecordInfoPtr
On Fri, 2003-02-28 at 20:12, Chris Antos wrote: > You didn't say what is calling your comparison function. > > Is it DmQuickSort, or DmFindSortPosition? > > If it's the latter (and it probably is) then the problem is that you are > responsible for passing a SortRecordInfoPtr to the DmFindSortPosition API, > and you are probably passing NULL. > You know, I don't mind being stupid, but I really hate it when I look stupid! :-) My compare function was being called during a record update, so I was thinking that it would be called with the pointer to the existing record's info. I wrote my database add/update stuff some time ago, so I forgot that DmFindSortPosition was called for both new records and record changes. Thanks for the response. /dwight -- Dwight Tovey <[EMAIL PROTECTED]> -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
prc-tools utility to convert font types
On Tue, Feb 25, 2003 at 12:10:46AM +0100, John Marshall wrote: > > I could probably figure out how to hack this in myself, but I'm just > > wondering if anyone has any warnings or advice that I should consider > > before attempting to do so... > > Sounds like a great opportunity for you to contribute :-). Well, I've decided to change my objective. Rather than producing the code to dynamically convert a fonttype during run-time, I want to create a utility that'll handle the conversion and include the compiled 'nfnt' resource directly into the prc during build-time within a prc-tools environment. I figure that I'm about 95% completed, but I have one last issue which I cannot figure out. Until now I've been doing fine with reverse-engineering the TeeneeTestFont example but I need some more diverse information in order to continue. I've attempted to create my own 'known good' extended font resources myself, but I lack the fundamental knowledge of using codewarrior properly in order to build them. After reading the documentation on creating 'nfnt' resources, I've gotten as far as being able to make a dummy .prc project out of codewarrior and via pilrc create a 'NFNT' resource ad hoc. However, I don't know exactly how to kick in Constructor and convert it into the extended font resource and after pilrc has handled it. Each time I try I get a PalmRez linking error basically telling me, "I have no idea what you want me to do!" The funny thing is though that TeeneeTestFonts provides an excellent example on what to do AFTER you've linked in constructor,.. but doesn't give out any (obvious) hints on what lead to that stage :) It's the act of bridging the gap between pilrc and constructor that I'm lost with. Once that's established I can finish my utility -- maybe provide a patch for pilrc -- and no one will ever have to worry about supporting extended font resources outside of constructor again! :) -- Adam McDaniel Array.org Calgary, AB, Canada -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: DmComparF receiving NULL for SortRecordInfoPtr
You didn't say what is calling your comparison function. Is it DmQuickSort, or DmFindSortPosition? If it's the latter (and it probably is) then the problem is that you are responsible for passing a SortRecordInfoPtr to the DmFindSortPosition API, and you are probably passing NULL. "Dwight Tovey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I'm trying to modify my record compare function to use the record > category as part of the sorting criteria. Unfortunately, for some > reason it is receiving a NULL pointer for the first SortRecordInfoPtr > parameter. I took a look at the DataMgr.c source file for PalmOS V3.0, > and as far as I can tell my function should always receive a valid > pointer. My function prototype is: > > Int16 bldm_compare_records( void *rec1, void* rec2, Int16 sortby, > SortRecordInfoPtr rec1info, > SortRecordInfoPtr rec2info, > MemHandle appInfoH ); > > rec1info is always NULL. Any ideas as to what is going on? > > Thanks > /dwight > -- > Dwight N. Tovey > Email: [EMAIL PROTECTED] > http://www.dtovey.net/dwight > --- > Do people in Australia call the rest of the world "up over"? > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
DmComparF receiving NULL for SortRecordInfoPtr
I'm trying to modify my record compare function to use the record category as part of the sorting criteria. Unfortunately, for some reason it is receiving a NULL pointer for the first SortRecordInfoPtr parameter. I took a look at the DataMgr.c source file for PalmOS V3.0, and as far as I can tell my function should always receive a valid pointer. My function prototype is: Int16 bldm_compare_records( void *rec1, void* rec2, Int16 sortby, SortRecordInfoPtr rec1info, SortRecordInfoPtr rec2info, MemHandle appInfoH ); rec1info is always NULL. Any ideas as to what is going on? Thanks /dwight -- Dwight N. Tovey Email: [EMAIL PROTECTED] http://www.dtovey.net/dwight --- Do people in Australia call the rest of the world "up over"? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: debug simulator
I agree. It only crashes if anything goes wrong at all or it encounters a FatalError... . Seems to take that literally ;) It nice though to run your app on once its all error free and tested. Arthur palmsim is quite stable. i have been using it since dr1 :) it is however very flaky about reporting errors to you *g* - it can barf in an instant, and, not tell you why. in these cases, you are better of running the app on pose (to find out why it crashes). palmsim doesn't crash unless *you* do something stupid/wrong :) --- Aaron Ardiri [EMAIL PROTECTED] CEO - CTO +46 70 656 1143 Mobile Wizardry http://www.mobilewizardry.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Bad Field Selection after using on-screen keyboard
I get this in Gremlins now and then also. Hal Mueller, who also got this error message, solved the problem for himself, but his solution did not work for me. Here's his post from the archives: http://groups.yahoo.com/group/palm-dev-forum/message/9 It might work for you. Regards, Michael Yam www.ytechnology.com "Dominique" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > After I use the on-screen keyboard with a table-based field, I get a > SysFatalAlert with the error "Bad Field Selection". I only get the error on > POSE with a debug 515 v4.1 ROM. Can anyone direct me to what I might be > doing wrong? > > The fields are independant of a database record (i.e. I am not editing > inline). A stack dump from gdb shows the following trace: > > #0 0x1001e760 in ErrDisplayFileLineMsg () > #1 0x10070a4c in FldSetSelection () > #2 0x10080ed4 in SysKeyboardDialog () > #3 0x1001972c in PrvHandleEvent () > #4 0x10018f2a in SysHandleEvent () > #5 0x102334cc in MySysHandleEventPatch () > #6 0x655bc in EventLoop () at tracker.cpp:117 > #7 0x65494 in PilotMain (cmd=0, cmdPBP=0x0, launchFlags=142) > > I have shown that my custom load/save procedures execute correctly (at > least, without error), and the form appears to update correctly before the > error is issued. > > If anyone can help out, I'd appreciate it. > > Dominique > > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Bad Field Selection after using on-screen keyboard
After I use the on-screen keyboard with a table-based field, I get a SysFatalAlert with the error "Bad Field Selection". I only get the error on POSE with a debug 515 v4.1 ROM. Can anyone direct me to what I might be doing wrong? The fields are independant of a database record (i.e. I am not editing inline). A stack dump from gdb shows the following trace: #0 0x1001e760 in ErrDisplayFileLineMsg () #1 0x10070a4c in FldSetSelection () #2 0x10080ed4 in SysKeyboardDialog () #3 0x1001972c in PrvHandleEvent () #4 0x10018f2a in SysHandleEvent () #5 0x102334cc in MySysHandleEventPatch () #6 0x655bc in EventLoop () at tracker.cpp:117 #7 0x65494 in PilotMain (cmd=0, cmdPBP=0x0, launchFlags=142) I have shown that my custom load/save procedures execute correctly (at least, without error), and the form appears to update correctly before the error is issued. If anyone can help out, I'd appreciate it. Dominique -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Reading UInt16 array at end of record
Hi all, I'm trying to read an array of UInt16's at the end of my records. There is a struct and a sereies of packed strings before the beginning of the array. With help from others I now have this code in place. _ UInt16 ProfileGlobal[1000]; unsigned char *profileP; RecH = DmQueryRecord(DBRef,RowID); profileP = MemHandleLock(RecH); profileP += Tally; // now pointing at beginning of UInt16 array. for(i = 0; i <= ProfileLength; i++) { MemMove(&ProfileGlobal[i],profileP,sizeof(UInt16)); profileP += 2; } MemHandleUnlock(RecH); With this code, I can read the first TWO values correctly, but the rest are not being read right.. Does anyone know why this is happening? I'm incrementing the char* by 2 since a UInt16 is 2 bytes long, but it seems to somehow be getting dis-aligned. Thanks in advance. Jim -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: debug simulator
> > I'm working under WinXP do you know why ? > > No, I don't know why you are using Windows XP. ;-) heh. > I'm using both the simulator and Pose on XP without problems. Is the > simulator crashing while debugging your app or just in general? I have had > the simulator crash once or twice when my Palm app misbehaved, but not just > making the debug connection or running the built-in apps. > Any details you could provide? palmsim is quite stable. i have been using it since dr1 :) it is however very flaky about reporting errors to you *g* - it can barf in an instant, and, not tell you why. in these cases, you are better of running the app on pose (to find out why it crashes). palmsim doesn't crash unless *you* do something stupid/wrong :) --- Aaron Ardiri [EMAIL PROTECTED] CEO - CTO +46 70 656 1143 Mobile Wizardry http://www.mobilewizardry.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: debug simulator
> I'm working under WinXP do you know why ? No, I don't know why you are using Windows XP. ;-) I'm using both the simulator and Pose on XP without problems. Is the simulator crashing while debugging your app or just in general? I have had the simulator crash once or twice when my Palm app misbehaved, but not just making the debug connection or running the built-in apps. Any details you could provide? - Original Message - From: "Chris APERS" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Friday, February 28, 2003 2:00 PM Subject: debug simulator > Hi, > > I have a problem when i try to debug with palmos simulator. > It often crash when it has to raise an error or also crash > when i click the Debug button. > > I'm working under WinXP do you know why ? > > thanks > > > > > > _ > MSN Search, le moteur de recherche qui pense comme vous ! > http://search.msn.fr/worldwide.asp > > > -- > 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: IrDA TinyTP problems - Timeouts, credit
I solved the problem finally, and it was caused by not providing enough credits to the slave IR device. Here's what I did to fix the problem: 1. When making a TinyTP connect request I passed an initial credit value of 1. Example: if (IrConnectReq(irRefNum_, &irConnect_, &irPacket_, 1) != IR_STATUS_PENDING) {...} 2. Whenever I receive the LEVENT_DATA_IND event, I immediately give 1 credit to the slave IR device. Example: (code snippet) void IrCallback(IrConnect *connect, IrCallBackParms *parms) { switch(parms->event) { case LEVENT_DATA_IND: // give 1 credit to the slave IR device IrAdvanceCredit(&irConnect_, 1); // >> Process received data // break; } } --- Adam Plasun <[EMAIL PROTECTED]> wrote: > Hello, > > I've been working on a program that > communicates to an ACTiSYS IR interface, > using the TinyTP service. My program > sends and receives data very well until > it reaches around 5k of data. Then the Palm > suddenly stops receiving data and times out. I've > checked the flow of data and the ACTiSYS device > receives my requests but no response is sent back, > or > maybe a response is sent but not received on the > Palm > end. I looked everywhere and I can't figure out > the > problem. It always stops in the same spot (around > 5k of data transmitted). I guess it would help if > I > was an expert in IrDA but I'm not. I've read > somewhere that maybe the problem is caused by TinyTP > credits, but I don't know how-to or when or what to > do > with these credits (IrAdvanceCredit()???). > > If anyone knows how to solve this problem I would > greatly appreciate it. Thank you in advance for > your response, > > Adam Plasun __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: debug simulator
Ben Combee wrote: I have a problem when i try to debug with palmos simulator. It often crash when it has to raise an error or also crash when i click the Debug button. I'm working under WinXP do you know why ? Please provide information about what toolset you are using. Also, do you mean the sim is crashing or your debugger is crashing? I feel your pain, buddy ;-) I know what he's talking about. Brother, do I know what he's talking about. I have used the palm and sony simulators on three different computers (all with windows XP, both CodeWarrior 8 and 9) and it crashes on me constantly. Oftentimes the processes stay around, which causes a problem the next time you debug from codewarrior. I wrote a little script to kill any simulator processes and restart the simulator, so I don't have to do it by hand, that lessened the pain greatly. About 10% of the time, codewarrior 9 also uncermoniously crashes when using the simulator. We can't be the only ones seeing this problem; it happens to me up to 20 times a day. It always happens when there is a bug in my code. OK, so I shouldn't be putting bugs in my code, but that really shouldn't be crashing the simulator either. Dat's why I try to do all my debugging on the emulator, else I use my "kill and restart the simulator" script. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: debug simulator
At 20:00 2003-2-28 +0100, you wrote: Hi, I have a problem when i try to debug with palmos simulator. It often crash when it has to raise an error or also crash when i click the Debug button. I'm working under WinXP do you know why ? Please provide information about what toolset you are using. Also, do you mean the sim is crashing or your debugger is crashing? -- Ben Combee <[EMAIL PROTECTED]> CodeWarrior for Palm OS technical lead Palm OS programming help @ www.palmoswerks.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
debug simulator
Hi, I have a problem when i try to debug with palmos simulator. It often crash when it has to raise an error or also crash when i click the Debug button. I'm working under WinXP do you know why ? thanks _ MSN Search, le moteur de recherche qui pense comme vous ! http://search.msn.fr/worldwide.asp -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Re:Hide and Show bitmap object as other objects,and then, move it..
Okay, it's working...I might have done an error... For the movement a FrmSetObjectPosition works well too ... thanks a lot ;o) Gilles - Original Message - From: "ThuNguyet Nguyen" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Friday, February 28, 2003 5:31 PM Subject: Re:Hide and Show bitmap object as other objects,and then, move it.. > >I want to Show and Hide bitmap just as other object (label, for example) but > >it seems that the function FrmShowObject does not work. > > FrmShowObject always works for me. I hide/show bitmaps/graphic buttons. > Let say I have 3 graphic buttons btn1, btn2, btn3. They are the same size and same position. > What I always do is: > To show btn2 > HideObject(btn1); > HideObject(btn3); > ShowObject(bnt2); > > To show btn1 > HideObject(btn2); > HideObject(btn3); > ShowObject(btn1); > > and so on ... > > void HideObject(UInt16 id) > { > UInt16 obj_index; > > obj_index = FrmGetObjectIndex(FrmGetActiveForm(), id); > FrmHideObject(FrmGetActiveForm(), obj_index); > } > > void ShowObject(UInt16 id) > { > UInt16 obj_index; > > obj_index = FrmGetObjectIndex(FrmGetActiveForm(), id); > FrmShowObject(FrmGetActiveForm(), obj_index); > } > > Have you try that? > > I don't know how to move object, though. > > tnn > > > > > > __ > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, more > http://taxes.yahoo.com/ > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: a sdkPalmOS5_68k_r2 question
At 07:47 2003-2-28 -0500, you wrote: According to Palm, sdkPalmOS5_68k_r2 is very much beta and should not be used for development. I need to use only PalmOSGlue.lib from it since there are some new glue functions such as CtlGlueIsGraphical() which I must have. In addition, I use CW on Mac OS X and sdkPalmOS5_68k_r2 is really for Windows only. Presently, I don't need anything else from sdkPalmOS5_68k_r2. QUESTION. Is it safe to use the PalmOSGlue.lib component of sdkPalmOS5_68k_r2 with Mac OS X and with normal development? The static library format is the same between Windows and Macintosh for Palm OS 68K apps, so using it with CW Palm OS V8.3 should be fine. Releasing it to users is your call. I doubt there are problems with the glue routines, and it probably would be good to test them our before the SDK is finalized. -- Ben Combee <[EMAIL PROTECTED]> CodeWarrior for Palm OS technical lead Palm OS programming help @ www.palmoswerks.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Database Records Transfer
> >I guess my question is...can someone give me some direction in this project? > >Are there websites that cover how to create a .pdb file for use on a Palm > >from a Windows OS? > > There are a whole bunch of different utilities that will let you > create PDBs on Windows, many of them free. Check PalmGear or Handango > or the archives of this mailing list or google. > Alternativelly, read Palm document File_Format_Specs.pdf (will take a few hours) and write txt->pdb conversion yourself (200-300 lines of code). You can then install resulting pdb on the Palm and process from your Palm app. For example (just a thought) you can use special DB type that would your app interpret as "record to be imported". However, if you need record-grained synchronization, then go and study docs concerning conduits. This will take much-much longer. Regards Jan Slodicka -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re:Hide and Show bitmap object as other objects,and then, move it..
>I want to Show and Hide bitmap just as other object (label, for example) but >it seems that the function FrmShowObject does not work. FrmShowObject always works for me. I hide/show bitmaps/graphic buttons. Let say I have 3 graphic buttons btn1, btn2, btn3. They are the same size and same position. What I always do is: To show btn2 HideObject(btn1); HideObject(btn3); ShowObject(bnt2); To show btn1 HideObject(btn2); HideObject(btn3); ShowObject(btn1); and so on ... void HideObject(UInt16 id) { UInt16 obj_index; obj_index = FrmGetObjectIndex(FrmGetActiveForm(), id); FrmHideObject(FrmGetActiveForm(), obj_index); } void ShowObject(UInt16 id) { UInt16 obj_index; obj_index = FrmGetObjectIndex(FrmGetActiveForm(), id); FrmShowObject(FrmGetActiveForm(), obj_index); } Have you try that? I don't know how to move object, though. tnn __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Hide and Show bitmap object as other objects,and then, move it..
Hello, I want to Show and Hide bitmap just as other object (label, for example) but it seems that the function FrmShowObject does not work. Some one has got an other idea than WinEraseRectangle and WinDrawBitmap? In the same idea, is there any way to just shift a picture already drawn on the screen? (without erase and then redraw) Thanks Gilles -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Draw a colored bitmap!
Ben wrote: >While you loaded the 8-bit image using the clipboard, did you paste it into >a 1-bit bitmap? Did you setup a bitmap family in Constructor with a 8-bit >family member? Did you paste into that? If you open your .rsrc file now, >is the bitmap shown as 1-bit? And does he also need to set screen mode to 2,4,8 ... bits as Ben mentions in http://www.escribe.com/computing/pcpqa/m71451.html ? tnn __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: How to change a string into lowercase??
> Sorry, I am new to palm programming. My references are > OReilly PalmOS developer's Guide and > Palm OS Programmers API Reference pdf . They didnt > mention about it. > > btw, which manual(s) should I read to get more info?? Ray, The PalmOS Reference does document all these functions; in the 3.5 version that I have on this machine StrCaselessCompare() is documented on p.738 of the pdf file. Oliver __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: How to change a string into lowercase??
> btw, which manual(s) should I read to get more info?? Read the companion guides for general information about the OS. They are on palmsource.com. I read the first one a couple times when I first started using palmOS. It was time well spent. Other than that, use the API. Everything you need is in there! Look at the String Manager for all your string manipulating needs (except for formatting double precision numbers =) ). ~Brad -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Slider Control
On Fri, Feb 28, 2003 at 06:31:29AM -0800, wilhelm klink wrote: > I have dropped a slider control on a form in Constructor. I have set > the min value to 50, [...] > sometimes the thumb will go beyond the left edge of the slider and > disappear and it also won't go to the right edge of the slider but > stays a little short of the right side. It is like the whole control's > values have shifted a little to the left. Yep. Known bug on OSes pre 4.1. Search the archives for "slider". John -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Slider Control
I have dropped a slider control on a form in Constructor. I have set the min value to 50, the max value to 100 and the initial value to 50. As soon as I move the thumb I get "Control.c Line 1740, Thumb out of range, maybe because value out of range?" Why is this so? I have set my min and max. Also something peculiar, sometimes the thumb will go beyond the left edge of the slider and disappear and it also won't go to the right edge of the slider but stays a little short of the right side. It is like the whole control's values have shifted a little to the left. Thanks. __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
a sdkPalmOS5_68k_r2 question
According to Palm, sdkPalmOS5_68k_r2 is very much beta and should not be used for development. I need to use only PalmOSGlue.lib from it since there are some new glue functions such as CtlGlueIsGraphical() which I must have. In addition, I use CW on Mac OS X and sdkPalmOS5_68k_r2 is really for Windows only. Presently, I don't need anything else from sdkPalmOS5_68k_r2. QUESTION. Is it safe to use the PalmOSGlue.lib component of sdkPalmOS5_68k_r2 with Mac OS X and with normal development? Thanks, Paul N. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
SMS-application
hi i am developing the SMS application for palm. i am facing the problem in sending the the SMS, it asks to use special palm OS functions to access the storage heap to protect the integrity. i am new to the palm application. this question may be amatuer, pls help me in solving this. thanx with regards Ajith -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: How to change a string into lowercase??
Thanks a lot StrCaselessCompare() seems to be my answer, thx Sorry, I am new to palm programming. My references are OReilly PalmOS developer's Guide and Palm OS Programmers API Reference pdf . They didnt mention about it. btw, which manual(s) should I read to get more info?? Ray "Aaron Ardiri" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > Hi, > > I wanna change a string into lowercase and then compare.. > > What should I do? > > why? > > StrCaselessCompare() - let the OS handle the conversion while > comparing :) > > --- > Aaron Ardiri [EMAIL PROTECTED] > CEO - CTO +46 70 656 1143 > Mobile Wizardry http://www.mobilewizardry.com/ > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: where to register notifications in POL
Simply call SysNotifyRegister() from NormalLuanch() function to register your app. Also don't forget to intercept sysAppLaunchCmdNotify in CYourApp::InitInstance() method, where CYourApp is your application class derived from CPalmStApp class. You can find more info about handling non-global launch codes in CPalmStApp docs. _ Best regards, Maks Pyatkovskiy > -Original Message- > From: [EMAIL PROTECTED] [mailto:bounce-palm-dev- > [EMAIL PROTECTED] On Behalf Of HT Nguyen > Sent: Friday, February 28, 2003 2:03 AM > To: Palm Developer Forum > Subject: where to register notifications in POL > > > Would someone please tell me where to register notifications using POL > framework. > > Thanks, > htn > > > -- > 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: Multithreading in Palm OS 5
> Thank you for your reply. > > But I am a bit confused. Does you mean that this kind of application > cannot be realised directly on the Palm OS platform, but have to dig > into the ground like dealing with the drivers or even some of the > hardware. SysTaskCreate et al - they are the API's you can use - but, dont expect to find anything about them in the documentation :) they are system only calls, and, if you found them - you knew what you were looking for on OS5 devices, there may be callback functions specific for the audio playback, hence giving the notion of multi-threading :) we played a bit with tasks on early units, but, due to its instability, we dropped it. --- Aaron Ardiri [EMAIL PROTECTED] CEO - CTO +46 70 656 1143 Mobile Wizardry http://www.mobilewizardry.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Multithreading in Palm OS 5
Thank you for your reply. But I am a bit confused. Does you mean that this kind of application cannot be realised directly on the Palm OS platform, but have to dig into the ground like dealing with the drivers or even some of the hardware. Thanks --- In [EMAIL PROTECTED], "Aaron Ardiri" <[EMAIL PROTECTED]> wrote: > > eg, like the mp3 background play? How is it done? > > > > What I found was that the stream is stopped by the system(seems to > > be) when exit while playing. Anything I missed out? > > multitasking has been semi-possible for a while :) but, its not > something you should really be playing with - and, palm does not > want you playing with it. > > the manner in which it works can vary from device to device and > in many cases, its not possible to even do it at all on some > devices. you should probably not even consider playing with > such parts of the operating system - mp3 players and so forth > are bound to specific devices (as you probably noticed) - and, > now you probably know why :) > > --- > Aaron Ardiri [EMAIL PROTECTED] > CEO - CTO +46 70 656 1143 > Mobile Wizardry http://www.mobilewizardry.com/ > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Multithreading in Palm OS 5
> eg, like the mp3 background play? How is it done? > > What I found was that the stream is stopped by the system(seems to > be) when exit while playing. Anything I missed out? multitasking has been semi-possible for a while :) but, its not something you should really be playing with - and, palm does not want you playing with it. the manner in which it works can vary from device to device and in many cases, its not possible to even do it at all on some devices. you should probably not even consider playing with such parts of the operating system - mp3 players and so forth are bound to specific devices (as you probably noticed) - and, now you probably know why :) --- Aaron Ardiri [EMAIL PROTECTED] CEO - CTO +46 70 656 1143 Mobile Wizardry http://www.mobilewizardry.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: How to change a string into lowercase??
> Hi, > I wanna change a string into lowercase and then compare.. > What should I do? why? StrCaselessCompare() - let the OS handle the conversion while comparing :) --- Aaron Ardiri [EMAIL PROTECTED] CEO - CTO +46 70 656 1143 Mobile Wizardry http://www.mobilewizardry.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: About free sample code of shareware software's register!
> I've spent a few hours on Google looking for free sample code of > shareware software's register.But I can't find it. > I want know how to create the code of register,such as time limited,lancher > limited,etc. http://www.ardiri.com/publications/palmsource2000.pdf there are also some libraries developers have written on palmgear.com for you to take a look at as well. it isn't complex, the .pdf above should answer more than you need to know. --- Aaron Ardiri [EMAIL PROTECTED] CEO - CTO +46 70 656 1143 Mobile Wizardry http://www.mobilewizardry.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: File streaming
> > yes, there is. i wrote a utility a while back called file2pdb.exe > > which takes a raw data file, does the splitting and creates the > > record database so i can open it with the File* api calls. > > If you don't find file2pdb.exe, you may use "par" :) > par c -a "stream" your.pdb YourPDB DATA YoID YourRawData.any par works as well. > As you know, rom2pdb.exe (Liberty) does a similar thing. > But, why do you use 16Kb instead of 4K? just curious :) no, its different big time. liberty uses resource databases. a file stream uses record databases. the rom2pdb.exe was a quick hack to convert a .gb file into a resource file we could process easier on the device. when you use filestreaming, you have to copy the data to ram before you use it. if you use resource databases, you can just lock the resource and have access to the data for reading :) --- Aaron Ardiri [EMAIL PROTECTED] CEO - CTO +46 70 656 1143 Mobile Wizardry http://www.mobilewizardry.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: PilRC change - // anywhere
> > > Here's a trick I use. I pass my .rcp files through a C++ preprocessor > > > first, which handles conditional directives, strips comments, allows me to > > > use C style macros, etc. And I don't have to deal with any quirks in how > > > Pilrc parses stuff. > > > >I wonder if there's a way to pull that off with Codewarrior. It seems it > >should be possible to add a hack to that effect to the PilRC plugin, now > >that I think of it... > > With V9, you could wrap PILRC.EXE with another executable with the same > name that will do that and then invoke the original PILRC.EXE. However, I > plan on applying Steve's patch, although Neil will need to apply it too for > his plugin source. :) ben, apply the patch and, get the files to both me and john for review so can we finalize a version and put it up officially. i am sure neil will that the source and rebuild his plugin. it is best he generates the plugin before we release the new binaries anyhow. so, thats another person in the loop for testing :) --- Aaron Ardiri [EMAIL PROTECTED] CEO - CTO +46 70 656 1143 Mobile Wizardry http://www.mobilewizardry.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/