Re: Palm OS Programming FAQ

2002-09-24 Thread Warren Young
John Marshall wrote: Warren's reply when I pointed this out to him over a week ago was: Yes, my domain host has the site screwed up at the moment. You can do a Google search and read the cached version in the meantime. He doesn't actually explicitly say he's beating on the

Re: Is .prc affected by -g flag ?

2001-12-12 Thread Warren Young
John Marshall wrote: Everything you want to know about -g can be figured out from GCC's -g documentation and http://prc-tools.sf.net/cgi-bin/info/Using+a+debugger . Also Warren Young's FAQ has a useful section. And the FAQ is more useful now -- your post prompted an update to the article,

Re: MemHandleNew vs. C++ new

2001-12-05 Thread Warren Young
Jaime Villela wrote: Is there any benefit to rolling my own constructor as opposed to just creating a C++ class and using the default new method? MemPtrNew() will only allocate the memory for you. It won't call constructors for you like operator new will. If the objects you are creating

Re: FlpAToF acting strange

2001-12-05 Thread Warren Young
Carlo Mocci wrote: Any clue ? Do I have to initialize in some way the Float Manager ? There's an article in my FAQ which will help you get started with floating point under Palm OS. Your previous experience is mostly invalid under the Palm OS, unfortunately. -- = The Palm OS Programmer's

Re: Debugging with GDB !

2001-07-09 Thread Warren Young
is far superior to batch files. -- = Warren Young -- Maintainer of the Palm OS Programmer's FAQ at: = http://www.cyberport.com/~tangent/palm/faq/ = = ICBM Address: 36.8274040 N, 108.0204086 W, alt. 1714m -- For information on using the Palm Developer Forums, or to unsubscribe, please see http

Re: C++ FUD

2001-07-05 Thread Warren Young
on the Palm, leaving big fancy features for the PC side. -- = Warren Young -- Maintainer of the Palm OS Programmer's FAQ at: = http://www.cyberport.com/~tangent/palm/faq/ = = ICBM Address: 36.8274040 N, 108.0204086 W, alt. 1714m -- For information on using the Palm Developer Forums

Re: Debugging with GDB !

2001-07-05 Thread Warren Young
Peter wrote: It is giving error as dbprg No such File ro Directory Download the Hello, World! sample from the FAQ, build it, and see how your build commands differ from the way the sample is built. This will tell you why you don't get a .prc-less file from the linker. -- = Warren Young

Re: XML parser written in C ?

2001-07-05 Thread Warren Young
enough for your purposes. I don't know if either of these have been built or tested on Palm OS. You may run into problems related to Palm OS's memory limits. See FAQ item 1.8 for details. 1.9 is also useful, if you choose to try and build Xerces. -- = Warren Young -- Maintainer of the Palm OS

Re: problems with gcc/multi segment app

2001-05-15 Thread Warren Young
. The latter has problems because it can cause other jumps to become out of range, so you can only carry that solution so far before you have to add segments. -- = Warren Young -- Maintainer of the Palm OS Programmer's FAQ at: = http://www.cyberport.com/~tangent/palm/faq/ = = ICBM Address: 36.8274040

Re: Newbie w/big decision - PalmOS vs. WindowsCE

2001-03-20 Thread Warren Young
a modem synch handler to each phone line you set up for remote synchronizations. -- = Warren Young -- Maintainer of the Palm OS Programmer's FAQ at: = http://www.cyberport.com/~tangent/palm/faq/ = = ICBM Address: 36.8274040 N, 108.0204086 W, alt. 1714m -- For information on using the Palm

Re: Floating point numbers rounding off

2001-02-27 Thread Warren Young
version of pow() and sqrt(). If instead you use PRC-Tools' single-precision math library, you get 15.96 or something like that. -- = Warren Young -- Maintainer of the Palm OS Programmer's FAQ at: = http://www.cyberport.com/~tangent/palm/faq/ = = ICBM Address: 36.8274040 N, 108.0204086

Re: How do I create a 72 point font like CreateFontIndirect(lf) in Win32

2001-02-25 Thread Warren Young
an older device) provided by the OS, or create your own font and load it up as a resource. On the latter, I have no idea how to proceed, but there are many sample fonts floating around the Net. -- = Warren Young -- Maintainer of the Palm OS Programmer's FAQ at: = http://www.cyberport.com/~tangent

Re: I broke debugging somehow, gdb, Pose

2001-02-25 Thread Warren Young
? If so, promoting the bind() failure to a popup warning would be annoying, without some additional infrastructure like a semaphore that the first copy of POSE creates, and subsequent copies check to see if another copy of POSE is running. -- = Warren Young -- Maintainer of the Palm OS Programmer's

Re: StrCat problem

2001-02-18 Thread Warren Young
Steve Mann wrote: I guess I wasn't very clear. My point was that NULL is not a void pointer as Warren Young pedantically asserts. It's merely zero. $ cat bang.c #include stdlib.h void bang(void) { char c = NULL; } $ m68k-palmos-gcc -c bang.c bang.c: In function `bang': bang.c:5

Re: urgent:String to Float

2001-02-17 Thread Warren Young
ajitnk wrote: how do i convert a floating point number stored in a String(char*) to value of data type "float". Urgent: Read the FAQ. -- = Warren Young -- Maintainer of the Palm OS Programmer's FAQ at: = http://www.cyberport.com/~tangent/palm/faq/ = = ICBM Address: 36

Re: StrCat problem

2001-02-17 Thread Warren Young
a void pointer in C, not a character. /pedantic -- = Warren Young -- Maintainer of the Palm OS Programmer's FAQ at: = http://www.cyberport.com/~tangent/palm/faq/ = = ICBM Address: 36.8274040 N, 108.0204086 W, alt. 1714m -- For information on using the Palm Developer Forums, or to unsubscribe, please see h

Re: C and C++?

2001-02-17 Thread Warren Young
program design issue. This isn't the right forum for those sorts of questions. For my take on the C vs. C++ debate with respect to Palm OS programming, see item 1.7 in the FAQ. You may also find the "C/C++ Portability Guide" article helpful. -- = Warren Young -- Maintainer of the Palm OS P

Re: Progress dialog box?

2001-02-14 Thread Warren Young
to figure it out, it would dwarf the effort Palm would need to expend on improving the explanation. If someone wants to write a simple code sample that shows how to do this, I'll put it in the FAQ, with attribution. -- = Warren Young -- Maintainer of the Palm OS Programmer's FAQ at: = http

Re: Compiler error when using MathLib

2001-02-14 Thread Warren Young
ed library. The linker was complaining because MathLib.h alone doesn't give you all you need to call into MathLib. -- = Warren Young -- Maintainer of the Palm OS Programmer's FAQ at: = http://www.cyberport.com/~tangent/palm/faq/ = = ICBM Address: 36.8274040 N, 108.0204086 W, alt. 1714m -- For informatio

Re: How big can an app be?

2001-02-13 Thread Warren Young
Casey Smith wrote: I know the resource limit is 64K, but how many resources can I create that are 64K each? I seem to be running into a limit somewhere? See item 1.6 in my FAQ. There are _many_ limits to beware of. -- = Warren Young -- Maintainer of the Palm OS Programmer's FAQ

Re: Compression

2001-02-08 Thread Warren Young
SVBN MURTHY wrote: zs.zalloc = (alloc_func)0; Are you sure you're not supposed to set this data member to a "malloc" type function? Having never used ZLib myself, that's just a guess. -- = Warren Young -- Maintainer of the Palm OS Programmer's FAQ at:

Re: Formatting UInt32 with commas

2001-02-06 Thread Warren Young
4 digits, sometimes after only 2, depending on rules I've forgotten. I seem to remember a column in CUJ by PJ Plauger on i18n that covered this. -- = Warren Young -- Maintainer of the Palm OS Programmer's FAQ at: = http://www.cyberport.com/~tangent/palm/faq/ = = ICBM Address: 36.8274040 N

I broke debugging somehow, gdb, Pose

2001-02-04 Thread Warren Young
Somehow in the last few months, I managed to break something which now prevents me from debugging with Pose and gdb. (I'm fuzzy on this since the last time I used the debugger was in October sometime.) I've tried everything: searching the archives, reinstalling PRC-Tools, upgrading to pose

Re: strings to floats

2001-02-03 Thread Warren Young
Nicolas Raitman wrote: Saldo = FlpAToF("30.3"); Read The Fine Manual. It tells you that FplAToF() only accepts numbers in scientific notation. That is, "3.03E1" would work. If you want a routine that isn't quite so picky, see the "floating point" articl

Re: Formatting UInt32 with commas

2001-02-03 Thread Warren Young
? There's a "commafier" in Snippets: www.snippets.org -- = Warren Young -- Maintainer of the Palm OS Programmer's FAQ at: = http://www.cyberport.com/~tangent/palm/faq/ = = ICBM Address: 36.8274040 N, 108.0204086 W, alt. 1714m -- For information on using the Palm Developer Forums, or to uns

Re: Compression using ZLib

2001-02-03 Thread Warren Young
built ZLib shared library you could use. -- = Warren Young -- Maintainer of the Palm OS Programmer's FAQ at: = http://www.cyberport.com/~tangent/palm/faq/ = = ICBM Address: 36.8274040 N, 108.0204086 W, alt. 1714m -- For information on using the Palm Developer Forums, or to unsubscribe, please

Re: Reducing Size of PRC

2001-01-25 Thread Warren Young
). But this is fixed overhead, and the compression is 55-60% for most apps. Another problem is that RunZip doesn't work on OS 3.1 or older. It requires the "runnable database" feature which was added in 3.2, IIRC. -- = Warren Young -- Maintainer of the Palm OS Programmer's FAQ at: = http://www.cyb

Re: Reducing Size of PRC

2001-01-24 Thread Warren Young
and function inlining, which makes the program bigger.) If you gave more details, I'm sure we could come up with even more useful advice... -- = Warren Young -- Maintainer of the Palm OS Programmer's FAQ at: = http://www.cyberport.com/~tangent/palm/faq/ = = ICBM Address: 36.8274040 N, 108.0204086

Palm OS Programmer's FAQ updates

2001-01-22 Thread Warren Young
functions in a Palm program. 2001.01.02 Added a question on getting the Palm user name. This summary excludes typo fixes and updates to the Resources section. -- = Warren Young, maintainer of the Palm OS Programmer's FAQ at: = http://www.cyberport.com/~tangent/palm/faq

Re: X-Master: successor to Hackmaster

2001-01-22 Thread Warren Young
sufficiently happy with the program, they won't go and write their own version. If the developers accept patches, there won't be a need to fork it at all. -- = Warren Young -- Maintainer of the Palm OS Programmer's FAQ at: = http://www.cyberport.com/~tangent/palm/faq/ = = ICBM Address: 36.8274040 N

Re: X-Master: successor to Hackmaste

2001-01-22 Thread Warren Young
But if you must change the terminology, my vote is for "mods". -- = Warren Young -- Maintainer of the Palm OS Programmer's FAQ at: = http://www.cyberport.com/~tangent/palm/faq/ = = ICBM Address: 36.8274040 N, 108.0204086 W, alt. 1714m -- For information on using the Palm Developer Forums,

Re: C++ Standard Library for Palm ?

2001-01-18 Thread Warren Young
g your programs huge on a device designed to be as small as reasonably possible, just to save a bit of time in development. We're not developing for PCs or WinCE devices here. This is a Palm we're talking about here. -- = Warren Young -- Maintainer of the Palm OS Programmer's FAQ at: = http://www.cyberpo

Re: That Forum FAQ

2001-01-15 Thread Warren Young
FAQ items as they navigate to their immediate goal. -- = Warren Young -- Maintainer of the Palm OS Programmer's FAQ at: = http://www.cyberport.com/~tangent/palm/faq/ = = ICBM Address: 36.8274040 N, 108.0204086 W, alt. 1714m -- For information on using the Palm Developer Forums, or to unsubscri

Re: C++ Standard Library for Palm ?

2001-01-15 Thread Warren Young
y complete argument against using STL in Palm OS programming. -- = Warren Young -- Maintainer of the Palm OS Programmer's FAQ at: = http://www.cyberport.com/~tangent/palm/faq/ = = ICBM Address: 36.8274040 N, 108.0204086 W, alt. 1714m -- For information on using the Palm Developer Forums, or to u

Re: VISOR ROM

2001-01-07 Thread Warren Young
it. -- = Warren Young -- Maintainer of the Palm OS Programmer's FAQ at: = http://www.cyberport.com/~tangent/palm/faq/ = = ICBM Address: 36.8274040 N, 108.0204086 W, alt. 1714m -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech