Im using Palm emulator 4.0 to test my Palm App development. I would like to record/play/test some wav type files on the emulator. I have a T2 that has the Voice Memo App. Is there a way I can use the Voice Memo App to record some messages and then play/test these messages back on the Palm 4.0 Emulator? Thanks.
-----Original Message----- From: Palm Developer Forum digest [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 2:00 AM To: palm-dev-forum digest recipients Subject: palm-dev-forum digest: February 29, 2004 PALM-DEV-FORUM Digest for Sunday, February 29, 2004. 1. Re: Flashing white between form switches 2. Re: Middle Density Fonts 3. transparent colors 4. Cobalt Simulator on Windows NT? 5. RE: transparent colors 6. Re: [NEWBIE] Bluetooth Exchange Library ? 7. Re: Backing up Cygwin installation? 8. Re: Backing up Cygwin installation? 9. Re: Middle Density Fonts 10. Base PRC and Overlay localization 11. Howto make Bitmap resource behave like "normal" buttons? 12. InsPtEnable() gone in Cobalt, what can I use? 13. FrmGetControlGroupSelection() returning a Byte prior to OS 3.5 :( 14. Re: Backing up Cygwin installation? 15. Language Support in Cobalt 16. Private structType in Cobalt 17. Crash on menu event 18. How do you sort out nilEvents 19. Re: encryption/decryption Palm Database 20. Re: Japanese 21. Is PORE a part of DS? 22. Re: Is PORE a part of DS? 23. Re: How do you sort out nilEvents 24. Re: Private structType in Cobalt 25. How to display local record listing from palm Applications ---------------------------------------------------------------------- Subject: Re: Flashing white between form switches From: Ben Combee <[EMAIL PROTECTED]> Date: Sun, 29 Feb 2004 02:03:31 -0600 X-Message-Number: 1 At 01:28 AM 2/29/2004, you wrote: >Hmm....So I've got an app that has mostly black screens being filled and >updated with bitmaps at various times and in various offscreen manners. >While switching between forms, I see a brief but distracting flash of >white. What is the best/correct way/sequence of calls to, say, >FrmDrawForm, or my EraseAllScreen() routine or whatever else that might >prevent this flashing? I'd rather not embed a full-screen bitmap or >something in the form, (though I guess an all-black one with compression >wouldn't be the end of the world).... > >My guess is there's a really simple way to keep things from flashing, but >it isn't obvious to me as yet, so I thought I'd just ask. Why not set the default background color to black when your program starts? Then the screen would be erased in black, and you'd not get a flash. -- Ben Combee Techwood Broadcasting Foundation, Austin Bureau Chief ---------------------------------------------------------------------- Subject: Re: Middle Density Fonts From: Ben Combee <[EMAIL PROTECTED]> Date: Sun, 29 Feb 2004 02:11:01 -0600 X-Message-Number: 2 At 11:12 PM 2/28/2004, you wrote: >I imagine that devices with 240*240 displays, use a 108 density font. Is >there any way to create one. PilRC does not seem to support it yet. No, PilRC doesn't support 1.5x density yet. It's a feature request; the code to add a 108-dpi member isn't too hard, but we really need to refactor that code and add in checking to make sure your metrics match between densities. -- Ben Combee Techwood Broadcasting Foundation, Austin Bureau Chief ---------------------------------------------------------------------- Subject: transparent colors From: "desa" <[EMAIL PROTECTED]> Date: Sun, 29 Feb 2004 02:43:27 -0600 X-Message-Number: 3 How do you set WinSetBackColorRGB to a transparent color? So for instance, if I drew text, only the letters would be drawn and not the back color. Thanks. ---------------------------------------------------------------------- Subject: Cobalt Simulator on Windows NT? From: Tilo Christ <[EMAIL PROTECTED]> Date: Sun, 29 Feb 2004 10:00:27 +0100 X-Message-Number: 4 Hi! Are there any plans to make the Cobalt Simulator compatible with Windows NT? It uses the GetConsoleWindow call that is only available in Windows 2000 and XP. Tilo ---------------------------------------------------------------------- Subject: RE: transparent colors From: "steve" <[EMAIL PROTECTED]> Date: Sun, 29 Feb 2004 10:32:03 +0100 X-Message-Number: 5 There is no transparent color, but there are blitting modes for text. Look in the compagnion Steve > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:bounce-palm-dev- > [EMAIL PROTECTED] On Behalf Of desa > Sent: Sunday, February 29, 2004 9:43 AM > To: Palm Developer Forum > Subject: transparent colors > > How do you set WinSetBackColorRGB to a transparent color? So for instance, > if I drew text, only the letters would be drawn and not the back color. > > Thanks. > > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, > please see http://www.palmos.com/dev/support/forums/ ---------------------------------------------------------------------- Subject: Re: [NEWBIE] Bluetooth Exchange Library ? From: Stephane Pinel <[EMAIL PROTECTED]> Date: Sun, 29 Feb 2004 11:59:53 +0100 X-Message-Number: 6 Le 29 f=E9vr. 04, =E0 07:36, Jonathan Niedfeldt a =E9crit : > Hi Stephane, > > The btXXX() functions give you the ability to interact directly with=20= > the > bluetooth capabilities of discovery etc. If you do not want to do=20 > that, you > can simply use the socket capabilities and do a network connection. > > The user would be responsible to connect up with whatever network=20 > capability > that they have for their Palm. > > It is also a much simplier interface to program for if you are only=20 > going to > "play" with networking. > > Thank you very much Jon ! It seems that using sockets capabilities will be just fine (and simpler=20= that dealing with low level BlueTooth routines). So whatever the user choose to connect=20 to the network (including Bluetooth) sockets will be able to work ? Sorry for these apparently basic questions, but I'm really newbie and=20 there are a lot of different docs on PalmSource. An other point is 'Cobalt': I saw several docs that refer to 'Cobalt',=20= but if I understand well, 'Cobalt' is something like Palm OS 6 ? Is it already released ?=20 Available for T3 ? Again, thank you very much. Stephane. ---------------------------------------------------------------------- Subject: Re: Backing up Cygwin installation? From: Florent Pillet <[EMAIL PROTECTED]> Date: Sun, 29 Feb 2004 13:22:21 +0100 X-Message-Number: 7 I did the same thing except that I didn't care changing back the mount=20= points since I don't use prc-tools on windows. But the problem I=20 encountered is that most of the time, Eclipse would fail launching=20 "make" for some obscure reason. Did you see something similar? On 28 f=E9vr. 04, at 11:18, Ralf Zimmermann wrote: > - My old installation of cygwin does not seem to be affected by the=20 > PODS install, > I can still use my old PRC-tools for Palm OS development > - PODS runs just fine, for 68k and Cobalt development > --=20 Florent Pillet, Code Segment [EMAIL PROTECTED] Developer tools and end-user products for Palm OS & Mac OS X ICQ: 117292463 http://perso.wanadoo.fr/fpillet ---------------------------------------------------------------------- Subject: Re: Backing up Cygwin installation? From: kcorey <[EMAIL PROTECTED]> Date: 29 Feb 2004 12:49:51 +0000 X-Message-Number: 8 On Sun, 2004-02-29 at 12:22, Florent Pillet wrote: > I did the same thing except that I didn't care changing back the mount > points since I don't use prc-tools on windows. But the problem I > encountered is that most of the time, Eclipse would fail launching > "make" for some obscure reason. > > Did you see something similar? I was seeing the same thing. When I started the bash shell, it couldn't find the 'ls' command and others. Trying to do a build from within eclipse would die with an error something like "no such target 'all'", despite it being clearly present in the makefile. Basically, to fix it I just did a reinstall of cygwin on top of that done by PODS, making sure to step through the cygwin setup interface and change all the 'keep' items to 'reinstall' items. Now PODS can build 68K files, and most everything on 68K building seems to be happy. Now to find a graceful way to import Falch.net projects... -Ken ---------------------------------------------------------------------- Subject: Re: Middle Density Fonts From: "Adrian Nicolaiev" <[EMAIL PROTECTED]> Date: Sun, 29 Feb 2004 10:02:26 -0300 X-Message-Number: 9 > No, PilRC doesn't support 1.5x density yet. It's a feature request; the > code to add a 108-dpi member isn't too hard, Meanwhile, you may use Palm OS Resource Editor and compile it using Palm OS Developer Suite. This an example of HiRes Bitmap Font (including 72/108/144 resolutions of letter "A") resource for PORE and PODS: http://www.niconnect.com/NSBasic/HiResFontWith108.xml http://www.niconnect.com/NSBasic/HiResFontWith108.txt > but we really need to refactor that code and add in checking to make sure your metrics match between > densities. PORE has a "validate resource" (right-button mouse click over resource) option that checks if your font (or any other resource) has some problem and validate it or not. HTH, Adrian Nicolaiev Visit Font Techniques for NSBasic - Cobalt PalmOS 6.0 Bitmap Font Compliant. http://www.niconnect.com/NSBasic/FontTechnique.html ---------------------------------------------------------------------- Subject: Base PRC and Overlay localization From: "Pierre Demeure" <[EMAIL PROTECTED]> Date: Sun, 29 Feb 2004 15:35:47 +0100 X-Message-Number: 10 Hi, I've made localized overlays using PRC2OVL for the creation of the overlay, and Constructor for the translations. Constructor opens the overlay file, I can translate and save, but when I hotsync the overlay file, it is still the base version of the prc which runs. The overlay is correctly loaded, but is not used. Any idea of what I could have missed ? The base program has for name Prog3.prc, and the ovelay is named Prog3_frFR.prc as stated in prc2ovl guide. But if I check the infos on the palm, the base program's name is Prog3.prec, and the overlay's name is completed by the version number (Prog3_3.10_frFR.prc) Is it possible that the overlay could not work if the name is not the same one than the name of the base (except the frFR extension) ? I'll appreciated all helps and ideas !!! ---------------------------------------------------------------------- Subject: Howto make Bitmap resource behave like "normal" buttons? From: Matthias Jordan <[EMAIL PROTECTED]> Date: Sun, 29 Feb 2004 18:21:08 +0100 X-Message-Number: 11 Hi, folks. In my app I have one button that has neither border nor label. I load a bitmap resource ontop of this button on creating the form. Now I'd like the bitmap button have the same color scheme like the buttons next to it that do have border and label. I'm using PilRC and couldn't find info on that neither in the documentation of PilRC nor by playing around with the bitmap's parameters. Is there any way to do it? Bye! Matthias -- Upcoming GPL'd PalmOS Japanese trainer: http://hotaru.sf.net ---------------------------------------------------------------------- Subject: InsPtEnable() gone in Cobalt, what can I use? From: Fangorn <[EMAIL PROTECTED]> Date: Sun, 29 Feb 2004 20:41:19 +0000 X-Message-Number: 12 Well the Insertion point functions have been nuked in Cobalt. :( What can I use instead? Fangorn ---------------------------------------------------------------------- Subject: FrmGetControlGroupSelection() returning a Byte prior to OS 3.5 :( From: Luc Le Blanc <[EMAIL PROTECTED]> Date: Sun, 29 Feb 2004 19:01:44 -0500 X-Message-Number: 13 A user running my application on a Palm IIIx with OS 3.1 reported an unusual bug. I reproduced it under POSE with a OS 3.0 debug ROM. When I call: if ( FrmGetObjectId( form, FrmGetControlGroupSelection( form, ... ) ) == ...) I get an "Invalid index" error. Decomposing the code, I tried: UInt16 i = FrmGetControlGroupSelection( form, ... ); and I get 316, for a form that has less than 100 objects. Reading the API reference, I see that this API returned a byte instead of a UInt16 prior to OS 3.5. Trying: UInt8 byte = FrmGetControlGroupSelection( form, ... ); I get byte = 60, a difference of 256... Why does the results get shifted by 8 bits like this? Is it possible to write such code that can run properly on both pre/post-3.5 OS without explicitly testing for the OS version? -- Luc Le Blanc ---------------------------------------------------------------------- Subject: Re: Backing up Cygwin installation? From: Ton van Overbeek <[EMAIL PROTECTED]> Date: Mon, 1 Mar 2004 02:59:42 +0100 X-Message-Number: 14 In article <[EMAIL PROTECTED]>, kcorey wrote: > On Sun, 2004-02-29 at 12:22, Florent Pillet wrote: >> I did the same thing except that I didn't care changing back the mount >> points since I don't use prc-tools on windows. But the problem I >> encountered is that most of the time, Eclipse would fail launching >> "make" for some obscure reason. >> >> Did you see something similar? > > I was seeing the same thing. > > When I started the bash shell, it couldn't find the 'ls' command and > others. Trying to do a build from within eclipse would die with an > error something like "no such target 'all'", despite it being clearly > present in the makefile. > > Basically, to fix it I just did a reinstall of cygwin on top of that > done by PODS, making sure to step through the cygwin setup interface and > change all the 'keep' items to 'reinstall' items. > > Now PODS can build 68K files, and most everything on 68K building seems > to be happy. > > Now to find a graceful way to import Falch.net projects... > Some additional information. When you do a custom installation of the Developer Suite the instalallation changes 2 things in your Cygwin settings: 1) It (re)defines the /PalmDev mount point to point to the sdk-5r3 and sdk-6 installed by PODS. Note that it is a text mount and not a binary mount since the include files in the PODS sdk's have DOS line endings. 2) It (re)defines the Path. This might explain why it does not find make and/or ls. Both are easy to fix afterwards. HTH Ton van Overbeek ---------------------------------------------------------------------- Subject: Language Support in Cobalt From: "LionScribe" <[EMAIL PROTECTED]> Date: Sun, 29 Feb 2004 22:05:47 -0500 X-Message-Number: 15 What about Language Support in Cobalt, is it going to be limited to the five Languages and the rest will be created by developers, or is it going to be part of the OS or created by PalmSource. LionScribe ---------------------------------------------------------------------- Subject: Private structType in Cobalt From: "LionScribe" <[EMAIL PROTECTED]> Date: Sun, 29 Feb 2004 22:12:43 -0500 X-Message-Number: 16 Why is PalmSource so intent in hiding the struct definition of all types (form, control, field, etc.) in the Cobalt release? Is it still going to change? Also, is PalmSource planning to release the Source Code for the Cobalt? LionScribe ---------------------------------------------------------------------- Subject: Crash on menu event From: "Jason Turner" <[EMAIL PROTECTED]> Date: Sun, 29 Feb 2004 22:33:03 -0500 (EST) X-Message-Number: 17 Hi, I've been working on the hi-res - palmos5 update to Patience and have run into a particularly frustrating bug that several users have pointed out to me. If the user tries to select any menuitem immediately after launching the application then a crash occurs. Building a debug version of the app doesn't seem to help, gdb does not seem to give any meaningful backtrace. However, if the user causes any event to occur prior to selecting a menuitem, the crash does not happen. I.e. tapping anywhere on the screen. I have set alerts to popup at certain points and have concluded that the mainform event handler gets called correctly, but the mnuEvent *seems* to be corrupt. I have tried pushing penup/pendown events onto the eventqueue to simulate a tap and that does not change anything. I have also tried making FrmSetFocus, WinSetWindow kind of calls to make sure that the form that I think should be active actually is. Does anyone have any ideas? I have left the code with it's original BSD style license, so if anyone is curious in looking at the source it's here: www.whensdinner.com/downloads/patience-3.0.2.zip Thanks, Jason Turner ---------------------------------------------------------------------- Subject: How do you sort out nilEvents From: "RVRoadie" <[EMAIL PROTECTED]> Date: Sun, 29 Feb 2004 21:52:01 -0600 X-Message-Number: 18 I am messing with an application for a Garmin iQue 3600. It will simulate a 'Christma Tree' for starting a drag race. Since I want satellite data while the lights are staging, I was trying to use the EvtGetEvent(, timeout) to control light timing. It works fine on the simulator, but the device is flooded with nilEvents from who knows what, so the timeout is useless. Do I have to manage my own system ticks, or is there some way to schedule timed events or at least determine the source of the nilEvents. Thanks for any assistance. ---------------------------------------------------------------------- Subject: Re: encryption/decryption Palm Database From: "Jefferson Samuel" <[EMAIL PROTECTED]> Date: Mon, 1 Mar 2004 10:31:44 +0530 X-Message-Number: 19 Thanks for your valuable inputs. I have pasted my skeleton code of newRecord function. Please tell me if I can do anything more to improve the speed. I think AES encryption algorithm executes fast, it the problem with my procedure. Appreciate your time. With regards Jeffy flag = newVil("ONE","TWO","THREE","FOUR","FIVE","SIX","SEVEN","EIGHT","NINE","TEN", "ELEVEN"); UInt16 newRecord(char *type,char *cate,char *cus1,char *cus2,char *cus3,char *cus4,char *cus5,char *cus6,char *cus7,char *cus8,char *note) { MemHandle newRecordH; char *precord; UInt16 cateoffset,cus1offset,cus2offset,cus3offset,cus4offset,cus5offset,cus6offset ,cus7offset,cus8offset,noteoffset; UInt16 newIndex; //To store char *ENcate,*ENcus1,*ENcus2,*ENcus3,*ENcus4,*ENcus5,*ENcus6,*ENcus7,*ENcus8,*ENn ote; // 1) and 2) (make a new chunk with the correct size) newRecordH = DmNewHandle(pvildb, DB_RECORD_SIZE); if (newRecordH == NULL) FrmAlert (DeviceFullAlert); // 3) Copy the data from the unpacked record to the packed one. precord =(char *)MemHandleLock(newRecordH); DmSet(precord,0,DB_RECORD_SIZE,0); cateoffset = DB_ID_START + StrLen(type) + 1; cus1offset = cateoffset + StrLen(cate) + 1; cus2offset = cus1offset + StrLen(cus1) + 1; cus3offset = cus2offset + StrLen(cus2) + 1; cus4offset = cus3offset + StrLen(cus3) + 1; cus5offset = cus4offset + StrLen(cus4) + 1; cus6offset = cus5offset + StrLen(cus5) + 1; cus7offset = cus6offset + StrLen(cus6) + 1; cus8offset = cus7offset + StrLen(cus7) + 1; noteoffset = cus8offset + StrLen(cus8) + 1; DmWrite(precord,DB_ID_START,type,StrLen(type)); DmWrite(precord,cateoffset,cate,StrLen(cate)); DmWrite(precord,cus1offset,cus1,StrLen(cus1)); DmWrite(precord,cus2offset,cus2,StrLen(cus2)); DmWrite(precord,cus3offset,cus3,StrLen(cus3)); DmWrite(precord,cus4offset,cus4,StrLen(cus4)); DmWrite(precord,cus5offset,cus5,StrLen(cus5)); DmWrite(precord,cus6offset,cus6,StrLen(cus6)); DmWrite(precord,cus7offset,cus7,StrLen(cus7)); DmWrite(precord,cus8offset,cus8,StrLen(cus8)); DmWrite(precord,noteoffset,note,StrLen(note)); /*********************** vilRecCatFindSortPosition Return where a record is or should be Useful to find or find where to insert a record. 1) All the record fields in the database are encrypted. I'm finding the sort position alphabetically with all the eleven columns. So I can't have any column decrypted that would help me in sorting. 2) This function loops through all the records in the database , decrypts each record (11 strings) and finds the sort position. ************************/ // Get the index newIndex = vilRecCatFindSortPosition(pvildb, precord,type); /*********************** 3) ENCRYPT function dosn't accept Char *. So that is why I use MemPtrNew,StrCopy and MemPtrFree. How can I do this simple? ************************/ ENcate = MemPtrNew(StrLen(cate) + 1); ENcus1 = MemPtrNew(StrLen(cus1) + 1); ENcus2 = MemPtrNew(StrLen(cus2) + 1); ENcus3 = MemPtrNew(StrLen(cus3) + 1); ENcus4 = MemPtrNew(StrLen(cus4) + 1); ENcus5 = MemPtrNew(StrLen(cus5) + 1); ENcus6 = MemPtrNew(StrLen(cus6) + 1); ENcus7 = MemPtrNew(StrLen(cus7) + 1); ENcus8 = MemPtrNew(StrLen(cus8) + 1); ENnote = MemPtrNew(StrLen(note) + 1); StrCopy(ENcate,cate); StrCopy(ENcus1,cus1); StrCopy(ENcus2,cus2); StrCopy(ENcus3,cus3); StrCopy(ENcus4,cus4); StrCopy(ENcus5,cus5); StrCopy(ENcus6,cus6); StrCopy(ENcus7,cus7); StrCopy(ENcus8,cus8); StrCopy(ENnote,note); /***ENCRYPT (Char* sInput,UInt32 iInputLen, Char* sKey, UInt32 iKeyLen) **/ ENCRYPT(ENcate,StrLen(ENcate),PVILPassword,StrLen(PVILPassword)); ENCRYPT(ENcus1,StrLen(ENcus1),PVILPassword,StrLen(PVILPassword)); ENCRYPT(ENcus2,StrLen(ENcus2),PVILPassword,StrLen(PVILPassword)); ENCRYPT(ENcus3,StrLen(ENcus3),PVILPassword,StrLen(PVILPassword)); ENCRYPT(ENcus4,StrLen(ENcus4),PVILPassword,StrLen(PVILPassword)); ENCRYPT(ENcus5,StrLen(ENcus5),PVILPassword,StrLen(PVILPassword)); ENCRYPT(ENcus6,StrLen(ENcus6),PVILPassword,StrLen(PVILPassword)); ENCRYPT(ENcus7,StrLen(ENcus7),PVILPassword,StrLen(PVILPassword)); ENCRYPT(ENcus8,StrLen(ENcus8),PVILPassword,StrLen(PVILPassword)); ENCRYPT(ENnote,StrLen(ENnote),PVILPassword,StrLen(PVILPassword)); DmWrite(precord,DB_ID_START,type,StrLen(type)); DmWrite(precord,cateoffset,ENcate,StrLen(ENcate)); DmWrite(precord,cus1offset,ENcus1,StrLen(ENcus1)); DmWrite(precord,cus2offset,ENcus2,StrLen(ENcus2)); DmWrite(precord,cus3offset,ENcus3,StrLen(ENcus3)); DmWrite(precord,cus4offset,ENcus4,StrLen(ENcus4)); DmWrite(precord,cus5offset,ENcus5,StrLen(ENcus5)); DmWrite(precord,cus6offset,ENcus6,StrLen(ENcus6)); DmWrite(precord,cus7offset,ENcus7,StrLen(ENcus7)); DmWrite(precord,cus8offset,ENcus8,StrLen(ENcus8)); DmWrite(precord,noteoffset,ENnote,StrLen(ENnote)); // 4) attach in place DmAttachRecord(pvildb, &newIndex, newRecordH, 0); MemHandleUnlock(newRecordH); MemPtrFree(ENcate); MemPtrFree(ENcus1); MemPtrFree(ENcus2); MemPtrFree(ENcus3); MemPtrFree(ENcus4); MemPtrFree(ENcus5); MemPtrFree(ENcus6); MemPtrFree(ENcus7); MemPtrFree(ENcus8); MemPtrFree(ENnote); return newIndex; } ---------------------------------------------------------------------- Subject: Re: Japanese From: Ken Krugler <[EMAIL PROTECTED]> Date: Sun, 29 Feb 2004 21:20:49 -0800 X-Message-Number: 20 >Could you please explain what do you mean by Japanese support installed? > >Acc. to my own experience Japanese emulator is not enough. Once I got >screenshots from our app taken on some Japanese Clie emulator by a Japanese >user. I was not able to display the same strings as he saw (I got just some >junk characters) despite using the same prc, the same emulator, the same >rom - the only difference was that I used English Windows. My conclusion was >that the emulator probably relies on some Windows services (maybe fonts) >that are available on Japanese systems only. I suppose that you refer to the >same thing. I'm guessing that the strings you're referring to are being displayed in a dialog by POSE - for example, if it's a fatal alert that POSE has intercepted. In that case, yes, the OS needs to have Japanese support installed. What this means varies by platform/version. In Mac OS 9 and earlier, you had to install the appropriate language kit. In Mac OS X, you have the option of installing the required fonts when you install the OS - it's not a separate product/package. On Windows 2000/XP I believe you only need to have an appropriate Japanese font installed, but I haven't had to do much configuration here - it's just worked for me in the past. One final note is that POSE has to do some special processing to pick the correct font to use when displaying text that comes from the ROM. It could be that this is broken in the Clie emulator. -- Ken -- Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 ---------------------------------------------------------------------- Subject: Is PORE a part of DS? From: "Dominique" <[EMAIL PROTECTED]> Date: Mon, 1 Mar 2004 00:31:50 -0500 X-Message-Number: 21 I saw a recent post where someone mentioned Palm OS Resource Editor (PORE). I can't find this on the DS installation, and I can't find a reference on PalmOS website, except for one sentence in one of the Cobalt PDFs. Does anyone have more info on this? Dominique ---------------------------------------------------------------------- Subject: Re: Is PORE a part of DS? From: Ben Combee <[EMAIL PROTECTED]> Date: Mon, 01 Mar 2004 00:00:32 -0600 X-Message-Number: 22 At 11:31 PM 2/29/2004, you wrote: >I saw a recent post where someone mentioned Palm OS Resource Editor (PORE). >I can't find this on the DS installation, and I can't find a reference on >PalmOS website, except for one sentence in one of the Cobalt PDFs. After you've installed the Palm OS Developer Suite, look in the C:\Program Files\PalmSource\Palm OS Developer Suite\PalmOSTools\Palm OS Resource Editor folder, or whatever the equivalent location is if you did a custom installation. -- Ben Combee Techwood Broadcasting Foundation, Austin Bureau Chief ---------------------------------------------------------------------- Subject: Re: How do you sort out nilEvents From: Ben Combee <[EMAIL PROTECTED]> Date: Mon, 01 Mar 2004 00:01:18 -0600 X-Message-Number: 23 At 09:52 PM 2/29/2004, you wrote: >I am messing with an application for a Garmin iQue 3600. It will simulate a >'Christma Tree' for starting a drag race. Since I want satellite data while >the lights are staging, I was trying to use the EvtGetEvent(, timeout) to >control light timing. It works fine on the simulator, but the device is >flooded with nilEvents from who knows what, so the timeout is useless. > >Do I have to manage my own system ticks, or is there some way to schedule >timed events or at least determine the source of the nilEvents. You can use nilEvents, but you need to check the system tick count when you get one to see if enough time has passed. The value given to EvtGetEvent is a maximum value of the time between events, not an exact time. -- Ben Combee Techwood Broadcasting Foundation, Austin Bureau Chief ---------------------------------------------------------------------- Subject: Re: Private structType in Cobalt From: Ben Combee <[EMAIL PROTECTED]> Date: Mon, 01 Mar 2004 00:04:32 -0600 X-Message-Number: 24 At 09:12 PM 2/29/2004, you wrote: >Why is PalmSource so intent in hiding the struct definition of all types >(form, control, field, etc.) in the Cobalt release? Is it still going to >change? I fully expect the in-memory structures for forms and their objects to change a lot in the future on Palm OS Cobalt. For example, PalmSource has indicated that there would be some kind of user interface refresh in a future release. To do that, it's likely that a lot of the internal state of a form would need to have a different format. -- Ben Combee Techwood Broadcasting Foundation, Austin Bureau Chief ---------------------------------------------------------------------- Subject: How to display local record listing from palm Applications From: =?iso-8859-1?q?Pinaki=20Roy?= <[EMAIL PROTECTED]> Date: Mon, 1 Mar 2004 07:23:18 +0000 (GMT) X-Message-Number: 25 hi, in my application i 'm supposed to display list of records from the selected local application/database from palm device -- my approach is as follows -> 1) using DmNumDatabases() i got the total no of database present. 2) then query and get the database id using DmGetDatabase(). 3) now passing that id and cardno(i'm putting zero here) to the DmDatabaseInfo() i 'm getting the necessary info of the database. 4)then once i got the required id comparing the database name , i'm using DmOpenDatabase() to open that and read the no of txt-records using DmNumResources(). 5) once i know th total no of records to display, allocate required mem to the char pointer to hold the name of the records 6) Query the database, lock record to handle and determine txt length and store the record-name to display. upto this it's working fine -- now the problem is to displaying the record-name -- here, i 'm using DmQueryRecord() to query the data inside the database -- and using the '\n' character i'm trying to get the record-name as follows - fileH = DmQueryRecord(ref_of_open_database,index) ; if(fileH) { pSrc = MemHandleLock(fileH); if(pSrc){ //Get the length of the records Name recordNmLength = (UInt)(StrChr( pSrc, '\n')- pSrc); StrNCopy(recordNm, pSrc, recordNmLength); LocalFileName[k] = (Char*)MemPtrNew(StrLen(recordNm)); MemSet(LocalrecordName[k],StrLen(recordNm),0); MemMove(LocalrecordName[k++],recordNm,StrLen(recordNm)); MemSet(recordNm,StrLen(recordNm),0); //Reset mem to reuse MemHandleUnlock(fileH ); } } it's working fine with say "MemoPad" for example i'm getting the 4 recordnames from it ie "Handheld Basics","Four ways to enter text" etc. but it's failing with other databases , say "AddressBook " or "mailBox" -- there '\n' is not working actually -- it's giving the length as the total length of the content , so it's coming around 60k or so and the char pointer, pSrc to DB record, is showing blank-- How can i solve this problem ?? is it because every database or application can chose its own way to store records and not all applications give "titles" or "recordnames" at all to their records?? if this is the case then what should be the approach to display the recordnames of, say, addressBook or mail Box(where i want to display name whose address/mail is stored in the address/mail box??) Thanx in Advance for any help --- Pinaki ________________________________________________________________________ Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more. Go to: http://in.insurance.yahoo.com/licspecial/index.html --- END OF DIGEST -- 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/
