Re: Alternate shading of table rows

2004-05-21 Thread Dave Carrigan
the row does get filled properly, the borders separating each column is not being colored. Any ideas? Use TblSetColumnSpacing and TblSetColumnWidth to ensure that the columns use up the entire row with no space between them. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http

Re: G++, multi-segment and templates

2004-05-07 Thread Dave Carrigan
; ~Foo() DATA_SECTION; UInt32 GetValue() constDATA_SECTION_OFF; }; I use the *_OFF macros to easily move a method into the main section (usually for debugging). Also, inlines and sections don't mix at all. Don't do that. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED

Re: Data Structure Question

2004-05-03 Thread Dave Carrigan
any of the Str* functions. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to John Doe - My Offering (Meet John Doe) -- For information on using

Re: storing date for future use

2004-04-28 Thread Dave Carrigan
follows... any advice? PrefGetAppPreferences('mine', UInt16(1), pDateSet, sizeof(pDateSet), false); The 4th argument takes a pointer, not an integer. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS

Re: gcc errors - relocation and stuff, please help

2004-04-23 Thread Dave Carrigan
to split your code into more/smaller segments. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Bob Dylan - Desolation Row (Genuine Live 1966

Re: [newbie question] opening databases....chicken and egg?

2004-04-21 Thread Dave Carrigan
, then DmOpenDatabaseByTypeCreator would work as you were hoping. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Cracker - My Life Is Totally Boring Without You (Gentleman's

Re: math funcitons

2004-04-19 Thread Dave Carrigan
On Mon, Apr 19, 2004 at 02:36:03PM -0600, Eric Yun wrote: Many documents indicate that if I am using some MathLib functions, the users must install MathLib.prc. Is this correct? If this is true, it seems I have to write my own math functions What makes you say that? -- Dave Carrigan

Re: math funcitons

2004-04-19 Thread Dave Carrigan
. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Jim Carroll Band - Catholic Boy (Live, 1980-12-20) -- For information on using the Palm Developer Forums

Re: Structure initialisation

2004-03-28 Thread Dave Carrigan
the code that the C compiler generates. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL -- For information on using the Palm Developer Forums, or to unsubscribe, please see

Re: Records left locked... - not an easy case

2004-03-26 Thread Dave Carrigan
HotSync. I am not sure what is the corelation between these errors. Same thing. If you keep locking your appinfo block without unlocking it, you will eventually reach the lock limit. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux

Re: Problem sending A Nested Structure Over The Network

2004-03-17 Thread Dave Carrigan
the serialized stream. On the other side, you unserialize the stream and populate the structure. You will have to design the communication protocol so that both sides know what each byte in the stream means. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680

Re: Network Hotsync with Palm OS Emulator

2004-03-08 Thread Dave Carrigan
On Mon, Mar 08, 2004 at 08:18:35AM +, Thu Zar Thein wrote: I couldn't emulate Network Hotsync with Palm OS Emulator. Make sure network hotsync is enabled in the Setup dialog (right click the hotsync icon and choose setup). -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http

Re: problem using DmGetNextDatabaseByTypeCreator

2004-03-05 Thread Dave Carrigan
; UInt16 cardno; LocalID dbid; DmGetNextDatabaseByTypeCreator(true, 'calc', 'appl', true, cardno, dbid); -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently

Re: problem using DmGetNextDatabaseByTypeCreator

2004-03-05 Thread Dave Carrigan
On Fri, Mar 05, 2004 at 12:07:41PM -0300, Alexandre Luz Barreto wrote: Dave Carrigan wrote: DmSearchStateType search; UInt16 cardno; LocalID dbid; DmGetNextDatabaseByTypeCreator(true, 'calc', 'appl', true, cardno, dbid); Should be DmGetNextDatabaseByTypeCreator(search, 'appl', 'calc', true

Re: Developer Suite - mirrors?

2004-02-27 Thread Dave Carrigan
to expand the virtual disk to add the extra 670 megs to install it all =). I thought I heard you say once that you got a simulator running in Wine. Or was I imagining things? -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls

Re: Help - Palm OS

2004-02-27 Thread Dave Carrigan
to. In the latter case, the browser never sees the php code; it's interpreted by the server before the response is sent to the client. In the former case, this would surprise me. I've never heard of a PocketPC port for PHP. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ

Re: Developer Suite - mirrors?

2004-02-27 Thread Dave Carrigan
window, and just ssh in. I've been running vmware since 1999 (v. 1.0), and have happily paid for every upgrade since. And I'll pay for the 4.5 upgrade too. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C

Re: Palm OS Developer Suíte - Now Availab le ?

2004-02-19 Thread Dave Carrigan
script could ever do, without doing more work than is necessary. Make is a just a general-purpose system to manage production rules, and to dismiss it out of hand as being outdated or no longer necessary, is to completely miss the point of the tool. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED

Re: C++ templates and PRC Tools?

2004-02-02 Thread Dave Carrigan
for the generic cast and handles all the type casting duties. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL -- For information on using the Palm Developer Forums

Re: C++ templates and PRC Tools?

2004-02-02 Thread Dave Carrigan
, and it actually leads to another pitfall: the section that the template methods belong to can grow quite large quite fast. You're often better off putting a template class into its own section rather than sharing it with another section. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http

Re: Difference between Resource and Record

2004-01-30 Thread Dave Carrigan
to use than a temp database. We would need to see the code you're using to store the bitmap to see why it's corrupted. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave

Re: problem using SysGetROMToken.. i can't get the serial# in some devices(m125,zire

2004-01-15 Thread Dave Carrigan
the results of the call to SysGetROMToken? The docs clearly say: If this function returns an error, or if the returned pointer to the buffer is NULL, or if the first byte of the text buffer is 0xFF, then no serial number is available. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED

Re: Reprogramming the home key

2004-01-12 Thread Dave Carrigan
On Sun, Jan 11, 2004 at 08:35:59PM -, Karl R. B. Jones wrote: Could someone tell me how to re-program the 'home' button on the silkscreen. I want to replace the lancher with my own program. Read the docs on PrefSetPreference(). -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http

Problem with ExgSetDefaultApplication and friends in OS 5

2003-12-16 Thread Dave Carrigan
override the target app on a 5.x device? -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Saw Doctors - £25 (If This Is Rock And Roll, I Want My Old

Re: Pilot-Link and Tungsten T2 with USB-Cradle

2003-12-02 Thread Dave Carrigan
, but there aren't very many right now unless you're doing graphic intensive stuff. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to David Bowie - Star (The Rise

Re: Pilot-Link and Tungsten T2 with USB-Cradle

2003-12-02 Thread Dave Carrigan
on the actual device or using the tungsten simulator (windows only :-() -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Cowboy Mouth - Crazy 'Bout Ya

Re: Tell GDB not to break in PilotMain?

2003-11-04 Thread Dave Carrigan
bitter than me... :-) -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Tom Robinson - Coldharbour Lane (Cabaret '79) -- For information on using

Re: Palm Desktop question

2003-10-28 Thread Dave Carrigan
doesn't work together with the development environment I'm using. What development environment are you using? -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL -- For information

Re: Palm Desktop question

2003-10-27 Thread Dave Carrigan
the active user from the Palm Desktop, as I suspect this would confuse a lot of users. Instead, your app should probably enumerate the list of users using UmGetUserCount and GmGetUserName, and allow your user to select a Palm username from inside your app. -- Dave Carrigan Seattle, WA, USA [EMAIL

Re: virtual destructor

2003-10-22 Thread Dave Carrigan
++ IN THOSE CONDITIONS ??? Don't use objects and new/delete when you don't have globals. Realistically, you won't be doing much when you don't have globals, so you don't really need a lot of C++ there. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX

Re: Problem with T3 graffiti area and menus

2003-10-16 Thread Dave Carrigan
of graffiti and then restore it on winEnterEvent. This issue was just discussed - and solved - yesterday on this very forum. Doesn't anybody read the archives any more? See http://tinyurl.com/r5yq -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680

Problems with DIA on T|3

2003-10-15 Thread Dave Carrigan
. If I launch the app when the screen is landscape/collapsed, then posting another window will always cause the app to revert to landscape/collapsed. This will be very disconcerting for my users, so I hope there's something I'm missing to fix this problem. -- Dave Carrigan Seattle, WA, USA [EMAIL

Re: Problems with DIA on T|3

2003-10-15 Thread Dave Carrigan
On Wed, Oct 15, 2003 at 04:19:15PM -0500, Hildinger, Robert wrote: Dave Carrigan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm having a strange issue with the dynamic input area on the T|3. I don't believe this is expected behavior - it should be fixable. After ripping

Re: unsigned character problem

2003-10-04 Thread Dave Carrigan
); Exactly what kind of problem are you encountering? I.e., what are you expecting, and what are your actual results? -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL

Re: Error in PilRC ??

2003-10-03 Thread Dave Carrigan
it to be an empty value or defining it to be a numeric value won't affect that conditional. Ben is correct that it would be better that pilrc handles empty defines, but in the meantime, this is as good a workaround as any. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http

Re: Throw-away appId

2003-10-02 Thread Dave Carrigan
bytes have the high bit set. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL -- For information on using the Palm Developer Forums, or to unsubscribe, please see http

Re: Is this the only way of reading the data from databases(stream/re cord)???

2003-10-02 Thread Dave Carrigan
especially don't want to do this if all you're planning to do is copy data from a file stream into the allocated memory. Instead, change the architecture of your application so that it uses standard databases instead of streams, so that you can access the data directly with a pointer. -- Dave Carrigan

Re: Allocating memory for Char strings - MemPtrNew(StrLen(charsP))?

2003-10-01 Thread Dave Carrigan
, then it would allocate 65 bytes (ascii A == 65). -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Lords of the New Church - My Kingdom Come

Re: Allocating memory for Char strings - MemPtrNew(StrLen(charsP))?

2003-10-01 Thread Dave Carrigan
to resize handles is not one of them. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Red Rockers - Dreams Fade Away (Good As Gold

Re: Breaking the 32K barrier for codes which handle non-sysAppLaunchCmdNormalLaunch

2003-09-29 Thread Dave Carrigan
reading even if you don't actually need it for anything. You're specifically interested in dreloc.c. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL -- For information on using

Re: How to Generate Link Map with PRC-Tools?

2003-09-23 Thread Dave Carrigan
with PRC-TOOLS? Add these flags to your link command: -Wl,-Map -Wl,myapp.map -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL -- For information on using the Palm Developer

Re: MemPtrNew for a class doesn't call the contructor

2003-09-16 Thread Dave Carrigan
On Tue, Sep 16, 2003 at 12:54:49PM -0500, Eric Potter wrote: Is there a was to get MemPtrNew to call the contructor when you craete a new class? Use the new operator; that's what it's for. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX

Re: MemPtrNew for a class doesn't call the contructor

2003-09-16 Thread Dave Carrigan
like. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Teenage Fanclub - Song to the Cynic (Thirteen) -- For information on using the Palm Developer

Re: new and delete in Palm

2003-08-14 Thread Dave Carrigan
have. The 64K limitation I think is an arbitrary choice. If I recall correctly, the chunk header allows up to 16M chunks, but they limit it to 64K because the hotsync protocol only supports up to 64K record sizes. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ

Re: new and delete in Palm

2003-08-14 Thread Dave Carrigan
that number. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Neil Young - Helpless (Unplugged) -- For information on using the Palm Developer Forums

Re: new and delete in Palm

2003-08-14 Thread Dave Carrigan
with new. The only thing is that it can cause memory fragmentation (this is generally true in any OS, but on small-memory systems it can be more of a problem). However, the same thing can be said if you allocate a handle and lock it for the length of the program. -- Dave Carrigan Seattle, WA, USA

Re: memory leak

2003-08-14 Thread Dave Carrigan
; Don't set handled to true; it prevents PalmOS from doing some of its own cleanup. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Crosby, Stills

Re: new and delete in Palm

2003-08-14 Thread Dave Carrigan
API? If the compiler you're using is C++, then you can use new and delete. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL -- For information on using the Palm Developer Forums

Re: LstSetListChoices

2003-08-14 Thread Dave Carrigan
with a null pointer just to be on the extra safe side. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Jason and the Scorchers - Harvest Moon (Fervor

Re: LstSetListChoices

2003-08-14 Thread Dave Carrigan
there is no chance that the list will be popped up. Also, you don't need the LstDrawList call. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Jason

Re: Palm Emulator

2003-08-14 Thread Dave Carrigan
code that may not cause problems the device you happen to have right now, but might cause problems on other devices or other versions of PalmOS. A well-written app will not trigger any errors from the emulator. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ

Re: Low Memory - (Newbie Ques)

2003-08-14 Thread Dave Carrigan
from memory location 0x14, and 0x14 == 20. You should get a good book on C and programming with C pointers. If the people on the C forum had read your code more carefully, they would have seen the problem as well. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http

Re: Bitmap offscreen window larger than 64KB?

2003-08-14 Thread Dave Carrigan
behavior, you might as well bypass BmpCreate and call MemChunkNew directly. Neither method is likely to be guaranteed to work under later versions of PalmOS, but at least the latter is cleaner. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl

Re: Low Memory - (Newbie Ques)

2003-08-14 Thread Dave Carrigan
. It was so close to the metal that it makes C look like Visual Basic. However, it did teach me what a pointer was, so when I started learning C I already understood them. I think if you ask on any C forum, they'll have lots of suggestions. It's probably even in a FAQ somewhere. -- Dave Carrigan

Re: Palm Emulator

2003-08-14 Thread Dave Carrigan
(FieldAttrType)); FldGetAttributes(fldP, fldAttr); ... MemPtrFree(fldAttr); Hint: don't do it this way, but it might give you some insight on what was wrong with your code. Also, find a good book on C that explains pass by reference via pointers vs. pass by value. -- Dave Carrigan Seattle, WA, USA

Re: LstSetListChoices

2003-08-14 Thread Dave Carrigan
about? That's simply not true for any C compiler I've ever seen. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL -- For information on using the Palm Developer Forums

Re: MemHandleResize

2003-08-14 Thread Dave Carrigan
On Fri, Aug 08, 2003 at 12:50:21PM -0300, rguevara wrote: more clean: i can resize one handle what was assignaded with DmGetRecord() ? Don't use MemHandleResize, use DmResizeRecord. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl

Re: LstSetListChoices

2003-08-11 Thread Dave Carrigan
On Fri, Aug 08, 2003 at 03:41:24PM -0400, bullshark wrote: On Fri, 8 Aug 2003 09:51:28 -0700, Dave Carrigan [EMAIL PROTECTED] wrote: On Fri, Aug 08, 2003 at 12:26:13PM -0400, bullshark wrote: static char* gPlateString = PL3/16x\0PL1/4x\0PL5/16x\0PL3/8x\0PL1/2x\0PL5/8x\0; It's still

Re: Similar Utility to palmdump

2003-08-09 Thread Dave Carrigan
; use Palm::Raw; use Data::Dumper; Palm::PDB::RegisterPDBHandlers(Palm::Raw, ); Palm::PDB::RegisterPRCHandlers(Palm::Raw, ); my $pdb = Palm::PDB-new; $pdb-Load($ARGV[0]); print Dumper($pdb-{records}); -- Dave Carrigan Seattle

Re: LstSetListChoices

2003-08-08 Thread Dave Carrigan
that pointer. You should be doing MemHandle h = SysFormPointerArrayToStrings(gPlateString, 6); gListString = (char**)MemHandleLock(h); ... MemHandleFree(h); -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP

Re: database creates, doesnt open, no error code

2003-08-03 Thread Dave Carrigan
to x; the value is compiler dependent. In C++ this won't even compile without a cast, and EVERY time you need to cast anything that isn't a pointer, you should be doing some serious introspection as to whether your code is correct. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http

Re: Alert from Resource in another ResDB

2003-07-29 Thread Dave Carrigan
databases. As long as your resource database is open, FrmAlert will find the alert resource. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL -- For information on using the Palm

Re: Becoming the launcher

2003-07-24 Thread Dave Carrigan
the sysAppLaunchCmdSystemReset launch code to do it at system reset. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL -- For information on using the Palm Developer Forums

Re: Avoid Exit a Program

2003-07-18 Thread Dave Carrigan
for keyDownEvents when the character is one of vchrHard1, vchrHard2, calcChr, findChr, etc. If you get such an event, do not pass it to SysHandleEvent(). -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS

Re: SortInfo block question

2003-03-13 Thread Dave Carrigan
(). These steps are correct. I think this is correct, but I am a little concerned because doesn't MemHandleNew give me a handle to the dynamic heap? Your concern is well-founded. That's why you should use DmNewHandle(). -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ

Re: VFS question

2003-01-28 Thread Dave Carrigan
see a function to list or search files with a specific extension, for exemple.?? You have to write your own. VFSDirEntryEnumerate() would be a good starting point. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP

Re: Unable to access serial port on emulator

2003-01-17 Thread Dave Carrigan
pty's: socat PTY,link=/tmp/host-pty PTY,link=/tmp/pose-pty On the pose side, set up the serial port to be /tmp/pose-pty On the host side, set the serial port of the host software to be /tmp/host-pty. I.e., pilot-xfer -p /tmp/host-pty -l -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED

Re: PDB Formats NULL terminated records

2002-10-29 Thread Dave Carrigan
string data often terminate their records with NUL. This is a side effect of working with NUL-terminated strings, not a requirement of the OS. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS

Re: Converting to UIn16

2002-10-04 Thread Dave Carrigan
, depending on the length of the string that precedes the two-byte integer. The best way to get a UInt16 back from a location that is not necessarily aligned on an even boundary is UInt16 dest; Char* source MemMove(dest, source, sizeof(dest)); -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED

Re: TxtSetNextChar

2002-09-27 Thread Dave Carrigan
of your input block always a multiple of 8, probably by padding it with NULs. Also note that StrLen will not correctly determine the size of the block if you have multibyte characters, so you'll have to use some other method to determine how many bytes a string occupies. -- Dave Carrigan Seattle

Re: How do I programatically launch another application on a SD card?

2002-09-25 Thread Dave Carrigan
once it's finished running (which is the only other thing the launcher does that you can't do). There's no good way to do that. In fact, even the launcher doesn't always do it right (for example, if you do a reset while inside the copied app). -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED

Re: How to streamline debugging w/ PRC-Tools?

2002-09-23 Thread Dave Carrigan
with the -run_app option. You might want to look at putting some of that stuff in a .gdbinit file. Certainly the target palmos command can be put there. There are probably other things you can do from inside gdb. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ

Re: DES algorythm?

2002-09-20 Thread Dave Carrigan
that will encode all the blocks in your plaintext. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL -- For information on using the Palm Developer Forums, or to unsubscribe, please

Re: Automated email responder for reg codes?

2002-09-17 Thread Dave Carrigan
. Use cron to run the program as often as you want. man cron -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL -- For information on using the Palm Developer Forums

Re: Programmatically closing a dialog

2002-09-05 Thread Dave Carrigan
if the time limit has passed, but what code do I use to close the dialog - do I call a function or create an event? After the time limit expires, use CtlHitControl to simulate hitting a button on the dialog. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ

Re: Fw: C++ class methods as callback functions

2002-08-26 Thread Dave Carrigan
the class method after somehow acquiring the pointer to the appropriate object. You will have to decide on the mechanism to use to allow the static method find that pointer. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux

Re: Launching an app from a card

2002-08-02 Thread Dave Carrigan
it starts running. Only works for PalmOS 4.0+, but then almost all VFS support is 4.0+ anyway. I don't know for sure if it will work, but it's worth a try. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS

Re: Launching an app from a card

2002-08-01 Thread Dave Carrigan
and launch it, and the next time your app runs, it should check for the existence of the other app and delete it. If you don't want the user to see the app in the launcher, set the hidden bit. But, we really need to know what you want to do before we can give you the best solution. -- Dave

Re: scrollbar arrows not getting redrawn

2002-07-17 Thread Dave Carrigan
the sclRepeatEvent. This will cause problems. Second, is it possible that you're setting the clip rectangle in the handler and forgetting to reset it before leaving the handler? -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C

Re: Using the builtin apps

2002-07-08 Thread Dave Carrigan
there. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support

Re: VFS functions

2002-07-02 Thread Dave Carrigan
always fails. What Am I missing here ? The magic number returned in the err variable probably provides a valuable clue. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave

Re: Finding the names of apps in the Palm Device

2002-06-30 Thread Dave Carrigan
On Fri, 2002-06-28 at 21:15, Dave Lippincott wrote: DmGetNextDatabaseByTypeCreator and use type 'appl' Its documented in the OS reference Or even better, SysCreateDataBaseList(), since it looks like it was custom written for application launcher type problems. -- Dave Carrigan Seattle, WA

Re: Multi Language support in single PRC

2002-06-24 Thread Dave Carrigan
, indexed on language. My problem is the strings used in the recource file, such as help strings, button text, window titles, menu text etc. You can't do it in a single .prc, but you can do it with an overlay. Read the docs on the overlay manager. -- Dave Carrigan Seattle, WA, USA [EMAIL

Re: New version of multi-segment GDB patch: Works with PalmOS 5 Simulator

2002-06-18 Thread Dave Carrigan
reverted to the 1-1 version. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL -- For information on using the Palm Developer Forums, or to unsubscribe, please see http

Re: semi-newbie questions about POSE and FldDrawField

2002-06-10 Thread Dave Carrigan
On Sun, 2002-06-09 at 21:06, Craig Belson wrote: FldSetTextPtr(tempfieldptr,tempcd.artistname); FldDrawField(tempfieldptr); You need a call to FldRecalculateField. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl

Re: No FrmOpenEvent

2002-06-09 Thread Dave Carrigan
(FrmTypesForm); my_initialization_stuff(frmP); FrmDoDialog(frmP); -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL -- For information on using the Palm Developer Forums

Re: Rounding issue

2002-06-05 Thread Dave Carrigan
. If you're planning to represent currency and require exact decimals, you should use integers. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL -- For information on using

Re: hardware failures

2002-06-03 Thread Dave Carrigan
. Recalibrating the stylus only temproarly corrects the problem. This happens straight out of the box with no additional software installed. http://ask.slashdot.org/article.pl?sid=02/05/31/1633203mode=threadtid=100 -- Dave Carrigan ([EMAIL PROTECTED]) Seattle, WA, USA http://www.rudedog.org

Re: Saving the selected text from a field

2002-05-30 Thread Dave Carrigan
code with no error checking): UInt16 s,e; Char* text; FldGetSelection(field, s, e); text = MemPtrNew(e - s + 1); StrNCopy(text, FldGetTextPtr(field) + s, e - s); text[e - s] = '\0'; -- Dave Carrigan ([EMAIL PROTECTED])| Yow! HOW could a GLASS be UNIX-Apache-Perl-Linux-Firewalls

Re: How to make a bip

2002-05-28 Thread Dave Carrigan
[EMAIL PROTECTED] [EMAIL PROTECTED] writes: Is it possible to make a single sound like bip. If you can live with one of the existing system sounds (i.e., the little beep it plays when you tap on a control), then you could use SndPlaySystemSound(). -- Dave Carrigan ([EMAIL PROTECTED

Re: Save Behind Modal Option Doesn't Work with POSE and 4.1 ROMs

2002-05-28 Thread Dave Carrigan
less-than-perfect conditions that you might not be able to simulate otherwise, so that you ensure that you are correctly handling them. -- Dave Carrigan ([EMAIL PROTECTED])| Yow! I'm in ATLANTIC CITY riding UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | in a comfortable ROLLING Seattle

Re: Debugging multi-segment applications

2002-05-01 Thread Dave Carrigan
. There's a patch available; see these archives or the prc-tools archives on Sourceforge. 4. I moved a function out of the first segment and it doesn't seem to be called at all? Can't help without more information. -- Dave Carrigan ([EMAIL PROTECTED])| Yow! Xerox your lunch and file

Re: converting int to string

2002-04-23 Thread Dave Carrigan
the difference between char *x; char x[20]; -- Dave Carrigan ([EMAIL PROTECTED])| Yow! I've got to get these SNACK UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | CAKES to NEWARK by DAWN!! Seattle, WA, USA| http://www.rudedog.org

Re: beaming

2002-04-02 Thread Dave Carrigan
that? Store it in flash memory, assuming that the device has enough free flash memory. -- Dave Carrigan ([EMAIL PROTECTED])| Yow! Mr and Mrs PED, can I UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | borrow 26.7% of the RAYON Seattle, WA, USA| TEXTILE production

Re: String manipulations

2002-04-01 Thread Dave Carrigan
- cString; -- Dave Carrigan ([EMAIL PROTECTED])| Yow! My haircut is totally UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | traditional! Seattle, WA, USA| http://www.rudedog.org/ | -- For information on using the Palm Developer Forums

Re: Installing/Deleting PRC

2002-03-26 Thread Dave Carrigan
the same creator id, and you don't have any extra data in databases that needs to be deleted, then you should just be able to install the new version over top of the old one. -- Dave Carrigan ([EMAIL PROTECTED])| Yow! The appreciation of the UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS

Re: Dynamically setting helpID for modal form

2002-03-25 Thread Dave Carrigan
dialog. However, for your specific problem, I think that FrmGlueSetHelpID() will work for you. -- Dave Carrigan ([EMAIL PROTECTED])| Yow! Can you MAIL a BEAN CAKE? UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | Seattle, WA, USA| http://www.rudedog.org

Re: DmGetNextDatabaseByTypeCreator and VFS

2002-03-18 Thread Dave Carrigan
. -- Dave Carrigan ([EMAIL PROTECTED])| Yow! Vote for ME -- I'm UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | well-tapered, half-cocked, Seattle, WA, USA| ill-conceived and TAX-DEFERRED! http://www.rudedog.org/ | -- For information

Re: VFSFileGetDBRecord

2002-03-13 Thread Dave Carrigan
passing some strange pointers to the function. I use VFSFileGetDBRecord all the time; this works for me: MemHandle h; Err err = VFSFileGetDBRecord(filehandle, ndx, h, NULL, NULL); // do stuff MemHandleFree(h); -- Dave Carrigan ([EMAIL PROTECTED])| Yow! Life is a POPULARITY UNIX

Re: Bitmap type in Palm database

2002-03-12 Thread Dave Carrigan
to handle setting up the pointers in the UnpackedTestDBRecordType so that they point to the proper bytes in the TestDBRecordType's data member. -- Dave Carrigan ([EMAIL PROTECTED])| Yow! With this weapon I can UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | expose fictional characters

<    1   2   3   4   >