Re: Using Simulator to debug serial data

2008-01-29 Thread Luc Le Blanc
Edward Jones wrote: > have you ever got a Bluetooth adapter to > work with the Simulator? AFAIK the Simulator does not support Bluetooth at all. When I had to debug Bluetooth stuff in my app I just connected a real T3 to the CW 9.3 debugger with a serial cable (but I'm told it should work unde

Re: Palm OS Plumbing: Key and Pen flushes don't flush

2008-01-29 Thread Jonathan Carse
I've been at it all day, and nothing works. Here is my latest attempt: FormPtr tmp; tmp = FrmInitForm(frmPopup); FrmSetActiveForm(tmp); // So it will receive the pendowns FrmSetEventHandler(tmp, (FormEventHandlerPtr) frmPopupMsgEventH); // Since we won't be going through the EventLoop(), this is r

Re: Invalid card # error in Emulator

2008-01-29 Thread Juergen Wind
Hi guys, I fixed it. It was ( of course ;-) a stupid error. I used a non-existing database in my code :-( . Before I sound too stupid: It was in an error handling code, where the program couldn't find a needed DB and wanted to clean up. Some some code still wanted to use the non-existing d

Re: API to extract VFS filename from full path

2008-01-29 Thread Michal Seliga
Dean Gahlon wrote: [Charset UTF-8 unsupported, filtering to ASCII...] Luc Le Blanc wrote: > BTW, StrRchr doesn't exist. I have to write it too ;) should be StrChr, such exists It should *not* be StrChr; Aaron's initial suggestion was to do StrRChr(path, '/') to get the last '/' character. Us

Re: API to extract VFS filename from full path

2008-01-29 Thread Dean Gahlon
[Charset UTF-8 unsupported, filtering to ASCII...] > Luc Le Blanc wrote: > > BTW, StrRchr doesn't exist. I have to write it too ;) > > should be StrChr, such exists It should *not* be StrChr; Aaron's initial suggestion was to do StrRChr(path, '/') to get the last '/' character. Using StrChr woul

Re: API to extract VFS filename from full path

2008-01-29 Thread Luc Le Blanc
Michal Seliga wrote: > Luc Le Blanc wrote: > > BTW, StrRchr doesn't exist. I have to write it too ;) > should be StrChr, such exists No because you have to find the last / in the pathname, so you need to start from the end, hence StrRChr. Here's my (yet) untested code: Char *StrRChr( Char *str

Re: API to extract VFS filename from full path

2008-01-29 Thread Michal Seliga
Luc Le Blanc wrote: > BTW, StrRchr doesn't exist. I have to write it too ;) should be StrChr, such exists -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/

Re: API to extract VFS filename from full path

2008-01-29 Thread Luc Le Blanc
Aaron Ardiri wrote: > On Jan 29, 2008 6:00 PM, Luc Le Blanc <[EMAIL PROTECTED]> wrote: > > Is there an API to extract the VFS filename from a fully > > qualified name that includes the path? > filename = StrRChr(path, '/'); > if (filename != NULL) filename++; > basic string routines? not sure if

Re: Palm OS Plumbing: Key and Pen flushes don't flush

2008-01-29 Thread Lionscribe
The best thing to do it is to create a new form, which does not respond to any penDowns, show the form, and then do the long function. When done, post a frmCloseEvent, which should be handled after all the penDown events. Once you have this form, you can add a progress bar to it, as the previous

Re: Obfuscation

2008-01-29 Thread Aaron Ardiri
On Jan 28, 2008 11:12 PM, Jonathan Carse <[EMAIL PROTECTED]> wrote: > Does anyone have any reading material on the subject of security by > obfuscation with Palm binaries? yes. an old post on the topic (discussion a concept) http://www.mail-archive.com/palm-dev-forum@news.palmos.com/msg05201.html

Re: Obfuscation

2008-01-29 Thread Christopher Stamper
Wow, so that's how to hack-proof your code. I'm interested now in more info... On Jan 28, 2008 7:23 PM, Jonathan Carse <[EMAIL PROTECTED]> wrote: > Hmm... Interesting. > There is actually a lot to obfuscation, not just renaming functions. > For a simple example, you can take the line: > > x++; >

Re: API to extract VFS filename from full path

2008-01-29 Thread Aaron Ardiri
On Jan 29, 2008 6:00 PM, Luc Le Blanc <[EMAIL PROTECTED]> wrote: > Is there an API to extract the VFS filename from a fully qualified name that > includes the path? filename = StrRChr(path, '/'); if (filename != NULL) filename++; basic string routines? not sure if thats what your looking for; bu

WinSetCoordinateSystem

2008-01-29 Thread Diana Tang
I used WinSetCoordinateSystem(kCoordinatesDouble) in my program and it squished all my forms to the top left corner. I want to keep using 320 x 320. How do i expand all those forms? -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-co

Re: Resolution

2008-01-29 Thread Diana Tang
Oops...what i meant was the rcp file "Diana Tang" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I want to draw in the objects in the prc file with the 320 x 320 >resolution. I'm using a treo 680. I want to have a gadget that 320 pixels >wide...how would i do that? Can I just ch

Resolution

2008-01-29 Thread Diana Tang
I want to draw in the objects in the prc file with the 320 x 320 resolution. I'm using a treo 680. I want to have a gadget that 320 pixels wide...how would i do that? Can I just change all the values in the prc value by doubling everything. I believe standard values for the prc file is 160.

API to extract VFS filename from full path

2008-01-29 Thread Luc Le Blanc
Is there an API to extract the VFS filename from a fully qualified name that includes the path? Luc Le Blanc -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/

Re: Using Simulator to debug serial data

2008-01-29 Thread Edward Jones
Thanks for that, works a treat! Out of interest, (and I'm sorry that I am off topic in this forum ;)) have you ever got a Bluetooth adapter to work with the Simulator? I see a lot of posts about it on the Bluetooth forum but there doesn't seem to be one particular answer? Regards Edward Jones

Re: Strange problem returning a MemPtr

2008-01-29 Thread Dave Carrigan
On Jan 29, 2008, at 4:12 AM, Leandro Pelorosso wrote: > I found a work around, but I don't really like it. If, > instead of returing the pointer, I give its value to a > global pointer before leaving the function, I can > retrieve it correctly from outside. > > what do you think? I think there's

Re: Using Simulator to debug serial data

2008-01-29 Thread Regis St-Gelais
"Edward Jones" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > > Is it possible to use the Simulator to debug incoming serial data? Right Click on the simulator: Settings --> Communication --> Communication Ports... -- Regis St-Gelais www.laubrass.com -- For info

Re: Palm OS Plumbing: Key and Pen flushes don't flush

2008-01-29 Thread Roger Stringer
You have to give user feedback while doing your long operation, so the users won't think the unit has frozen and start tapping away at the screen. A long operation is anything that can take more than a few seconds! If something is going to take just a few seconds, but longer than a second, y

Re: Palm OS Plumbing: Key and Pen flushes don't flush

2008-01-29 Thread Robert Moynihan
I recall having a similar issue. I created a loop to eat the events, but it didn't always work. I never found a solution that worked 100%. Bob. That's a nice idea. However, it didn't seem to work: PerformLongOperation(); do { EvtGetEvent(&evt, 1); } while(evt.eType != nilEvent); I generate

Re: Strange problem returning a MemPtr

2008-01-29 Thread Leandro Pelorosso
Hi!, Thanks for the reply, my function returns a pointer to a char array, initially it returned a char*, but when I saw what happened I changed the type to MemPtr to see if that were the problem. To display the value of the pointer I use sprintf(_buffer,"%p", pointer) and then I show _buffer w

Using Simulator to debug serial data

2008-01-29 Thread Edward Jones
Is it possible to use the Simulator to debug incoming serial data? I would like to use the Simulator so that once connected to my development environment I can step through the code to see what is going on. Obviously if anyone has used a different method of debugging incoming serial data I woul