Emulator fast - Real PDA slow

2003-06-26 Thread Giorgos Sarris
Hi to all, Using CW9 and C++. I'm making a game with animation. I have set EvtGetEvent(&event, 0); at the AppEventLoop and it runs really nicely on the Emulator (eg Handspring Platinum) but when I install the game on the real PALM Handspring Platinum the Speed SLOWS DOWN to HALF!!! I cant figure

Creating font families w/o Constructor

2003-06-26 Thread Daryl Huff
I'm using the falch.net development tools and in general I'm pretty happy. However, I'd like to use some custom font families that will contain both high and low density elements. I know about xFont for creating the fonts, and I can use the fonts created in my resource file. Is there any way

Re: Emul68K: Error Message

2003-06-26 Thread Daniel Seifert
Am Fre, 2003-06-27 um 01.39 schrieb John Wilund: Hi, > Does anyone know what's wrong with my code if I get this Error Message (@ a TT): > > Fatal Alert > Emul68KMain.c, Line:108, > divide by zero at address > 007B908C > > I've seen many Error Messages before but never this one!!! > > It happen

Re: PalmSim.exe crash on frmCloseEvent

2003-06-26 Thread Chris Tutty
From: "David Beers" <[EMAIL PROTECTED]> > I receive a fatal PalmSim.exe Application Error (instruction at 0x0x8881a8 > referenced memory at 0x) every time my application tries to pass a > frmCloseEvent for a particular form to FrmDispatchEvent. (Other > I've been using the PalmSim a lot thi

Re: Multiple forms handled by one .c

2003-06-26 Thread Chris Tutty
From: "Steven Fisher" <[EMAIL PROTECTED]> > A coworker and I are having a bit of an argument over whether or not > multiple forms should be handled by a single source file. I'm a big fan > of considering .c files to be objects, and trying to use an > object-oriented approach to developing forms.

Re: POL question

2003-06-26 Thread Nick
OK. That's exactly what I was looking for but the only place I have a form map macro is in the CMyApplication.h file (derived from CPalmApp). None of my other form classes have this map and they seem to work as expected using GotoForm(SomeFormID). I based my new form classes on existing form cla

Re: POL question

2003-06-26 Thread Mark F . Rodriguez
Nick, Make sure you include the Form ID and your derived form in MyApp.h. It should look something like this... // Your includes #include "CMainFrm.h" #include "CFrm2.h"// your new form // Form map BEGIN_FORM_MAP() FORM_MAP_ENTRY(MainForm, CMainFrm) FORM_MAP_ENTRY(Form2, CFor

Re: Question on a routine

2003-06-26 Thread DongDong
Thanks. "James" <[EMAIL PROTECTED]> ??? news:[EMAIL PROTECTED] ???... > > DongDong wrote: > > > > Why could author assume the base address equal to zero? As most C > > programmer know, memory should be allocated by system. The pointer > > shouldn't be assigned an absolute address, even address 0x

POL question

2003-06-26 Thread Nick
I have CW9.1 and POL 4.04.00. I have been working on an application for several months and all is working good. I recently added a new form to the application and attempted to call it from another form's OnButton handler using GotoForm. However, I keep geeting an error: "MyApp.h, Line 37, CPal

Re: Armlet optimization

2003-06-26 Thread Ben Combee
At 12:00 PM 6/26/2003, Jan Slodicka wrote: Sorry - I missed the 2nd question. Actually I don't know whether it is Thumb or ARM code - I can't find any place where CW would allow to specify this. #pragma thumb off will turn off Thumb code generation, making ARM code the default for that file. We

Emul68K: Error Message

2003-06-26 Thread John Wilund
Hi, Does anyone know what's wrong with my code if I get this Error Message (@ a TT): Fatal Alert Emul68KMain.c, Line:108, divide by zero at address 007B908C I've seen many Error Messages before but never this one!!! It happens the first time I Fill the screen with text in DoubleDensityMode.

Re: Question on a routine

2003-06-26 Thread James
DongDong wrote: > > Why could author assume the base address equal to zero? As most C > programmer know, memory should be allocated by system. The pointer > shouldn't be assigned an absolute address, even address 0x. > > Is the address zero under Palm OS free to use? I'm confused. > Welcome

Re: Newbie Need Help !! Creating a test file (Hello World)

2003-06-26 Thread Alan Jay Weiner
My example is somewhat old, but should still compile fine and work... http://www.ajw.com/ scroll down to May 1998"Hello World" Then click on "EasyPrint" There's links in there for various source files, and there's links at the end of the page to the full project in both CodeWarrio

Libraries

2003-06-26 Thread Paul Johnson
Hi. What are the commands to make gcc build a static library instead of a prc please ? Is there an easy way to make falch take these options and just get on with it ? Thanks... Regards, Paul Johnson Applewood House www.applewoodhouse.com -- For information on using the Palm Developer Forum

A plea for prc-tool help

2003-06-26 Thread Rick Reynolds
Does anyone on this list have a development setup that can rebuild the prc-tools for the cygwin platform? I'm quite frustrated with the lack of multi-segment app debugging support in the current release. I've applied all the latest patches from Ton Overbeek, but I still don't have a clean, consis

Re: Armlet optimization

2003-06-26 Thread Jan Slodicka
Sorry - you're right with the armlet forum. I know exactly where the app spends its time - the 2 functions that are of importance eat about 75% of the time. (Profiled at the desktop, but must be true - at least roughly - for the HH, too.) Both functions are modified by the optimization. I know ab

Re: Armlet optimization

2003-06-26 Thread Ron Nicholson
Why don't you ask in the PalmOS Armlet forum? The subject might already have been discussed there. http://www.escribe.com/computing/poaf/index.html On Thu, 26 Jun 2003 09:51:06, Jan Slodicka writes: >I checked it now. I picked up a random function and counted # of asm >instructions. It is rea

Re: Armlet optimization

2003-06-26 Thread Jan Slodicka
Sorry - I missed the 2nd question. Actually I don't know whether it is Thumb or ARM code - I can't find any place where CW would allow to specify this. Jan Slodicka - Original Message - From: "Ben Combee" <[EMAIL PROTECTED]> > >I am using CW9 and I tried to test the influence of global op

Re: Armlet optimization

2003-06-26 Thread Jan Slodicka
I checked it now. I picked up a random function and counted # of asm instructions. It is really so that the optimized code was shorter by some 14%. I just wonder why this does not show up in the final product speed. (My experience from the past says that speed optimization always brings measurable

Re: VFS and long file names...

2003-06-26 Thread David Fedor
As I was particularly annoyed by some vfsErrFileGeneric error while enumerating files in the root folder of a card, I finished digging into FAT structure and root directory structure. It seems that when you use more than 25 LFN entries in one directory (this number seems quite exact: one less and i

Re: Emulator reports invalid Program Counter

2003-06-26 Thread rudolfpolzer2000
> With debug ROM, the emulator reports that > the program counter becomes invalid at the > end of the function... I have found the error: there was a funtion call in between ... SysStringByIndex(Resxy, index, text, 40); ... and 'text' was shorter than 40 bytes: that distroyed the stack so t

Re: Question on a routine

2003-06-26 Thread DongDong
you are right. Maybe I always bear in mind that a pointer variable must be assigned address of another variable or memory allocated by the system. My mind is more clear now. Thanks a lot! "Keith Rollin" <[EMAIL PROTECTED]> ??? news:[EMAIL PROTECTED] ???... > From: DongDong [mailto:[EMAIL PROTEC

Re: Question on a routine

2003-06-26 Thread DongDong
Thank you very much. I have more understanding now. <[EMAIL PROTECTED]> ??? news:[EMAIL PROTECTED] ???... > > "recordDBEntry" refers to the memory that is being written to. "*packed" is > not written to. "packed" is written to but it isn't a memory chunk, of > course. > > Looking at my copy of

RE: Question on a routine

2003-06-26 Thread Keith Rollin
> From: DongDong [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 26, 2003 8:44 AM > To: Palm Developer Forum > Subject: Re: Question on a routine > > Why could author assume the base address equal to zero? As > most C programmer > know, memory should be allocated by system. The pointer shouldn't

RE: Question on a routine

2003-06-26 Thread Keith Rollin
> From: Brian Smith [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 26, 2003 8:00 AM > To: Palm Developer Forum > Subject: RE: Question on a routine > > On Thu, 26 Jun 2003 [EMAIL PROTECTED] wrote: > > > Then the expression: > > > > &packed->status > > > > is the offset of the "status" membe

Re: Question on a routine

2003-06-26 Thread DongDong
<[EMAIL PROTECTED]> ??? news:[EMAIL PROTECTED] ???... > > Yes, I remember staring at that code myself. It's kind of grungy. > > In: > > LibPackedDBRecord *packed=0; > > "packed" is simply a pointer (32-bits for Palm platform) so this just > initializes it to zero. Typically, you would say it as:

RE: Question on a routine

2003-06-26 Thread dennis
"recordDBEntry" refers to the memory that is being written to. "*packed" is not written to. "packed" is written to but it isn't a memory chunk, of course. Looking at my copy of "Palm OS Programming Bible" I see PackRecord() being called from LibNewRecord() in another example. The code looks lik

Re: Question on a routine

2003-06-26 Thread DongDong
But every memory chunk should be locked before use. There is no code to lock that memory chunk. How can it be used? <[EMAIL PROTECTED]> ??? news:[EMAIL PROTECTED] ???... > > Yes, I remember staring at that code myself. It's kind of grungy. > > In: > > LibPackedDBRecord *packed=0; > > "packed" is

RE: Question on a routine

2003-06-26 Thread Brian Smith
On Thu, 26 Jun 2003 [EMAIL PROTECTED] wrote: > Then the expression: > > &packed->status > > is the offset of the "status" member from the base address of a > LibPackedDBRecord. Note that &packed->status does not reference the > value of "status" but only yields the offset of "status". DmWr

RE: Question on a routine

2003-06-26 Thread dennis
Yes, I remember staring at that code myself. It's kind of grungy. In: LibPackedDBRecord *packed=0; "packed" is simply a pointer (32-bits for Palm platform) so this just initializes it to zero. Typically, you would say it as: LibPackedDBRecord *packed=NULL; but the author (I t

Simple way to backup files on the Card?

2003-06-26 Thread Richard Coutts
I recently added Card support to my App and noticed that the Palm Desktop does not automatically backup the files on the expansion card the way it does for databases in RAM -- is there a quick and dirty way to backup the Card? I'm concerned about the scenario where a user looses his or her handhel

Question on a routine

2003-06-26 Thread DongDong
I'm reading the book "Palm OS Programming Bible" Chatper 10. I met some question on the following routine. I've studied it again and again but I don't know what missed. Here is the question: (A) 'packed' is declared as pointer to LibPackedDBRecord. Why it can be used after just initialization to z

RE: Multiple forms handled by one .c

2003-06-26 Thread Roger Stringer
Subject: Multiple forms handled by one .c From: Steven Fisher <[EMAIL PROTECTED]> A coworker and I are having a bit of an argument over whether or not multiple forms should be handled by a single source file. I'm a big fan of considering .c files to be objects, and trying to use an object-oriented

RE: Multi-section apps

2003-06-26 Thread davidmo
I tried setting my make file for multi sections as described in some of the posts. When running make, I get the following: AppAdmin: In function 'start': crt0.c:35: multiple definition of 'start' /usr/m68k-palmos/lib/crt0.o:crt0.c:35: first defined here AppAdmin: In function '_GccRelocateData': d

Codewarrior questions

2003-06-26 Thread wt
Hi I'm using CW9 and very happy with it. However, there are a few strange things that the IDE does which confuses me a little bit. I'm sure its just something stupid, but the documentation is so comprehensive that I just can not seem to find the answer to this problem. When I initially install

Tricky Things about WinDrawLine

2003-06-26 Thread Andrew
HI All, In order to simulate a mouse drag event on Palm, the application has been design to use pen drag to resize a table's width. To achieve that, the problem is that we currently use 'WinDrawLine' to draw a vertical line, then use the pen to drag it horizontally. The background suppose to be s

Custom Key mapping for Palm OS

2003-06-26 Thread Victor .
Does anyone know how to do custom key mapping for Palm OS? e.g I want to remap letter 'A' to letter 'T' or even to other non roman character. Thank you. Victor __ Do You Yahoo!? Send free SMS from your PC! http://sg.sms.yahoo.com -- For informa

Re: I need a list with normal ScrollBar

2003-06-26 Thread Ralf Krauss
Thank You, I take a table with scrollbar... Ralf "Dan Patrutiu" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > > You won't change the default list behaviour (that is, showing the two > scroll buttons) by setting the hasScrollBar flag. If you need a list with a > normal