Re: which one would be better - PRC or PDB?

2004-07-02 Thread Dave Carrigan
er from this dictionary application's perspective? PDB contains ordered records which would make it easier to access a specific record assuming you have an index to speed lookups. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-F

Re: checking if DB is in ROM

2004-06-25 Thread Dave Carrigan
eap flags for the heap ID with MemHeapFlags(). If the memHeapFlagReadOnly bit is set, the database is in ROM. -- 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 u

Re: Alternate shading of table rows

2004-05-21 Thread Dave Carrigan
o > while 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 [EM

Re: G++, multi-segment and templates

2004-05-07 Thread Dave Carrigan
#include "sections.h" class Foo { public: Foo() DATA_SECTION; ~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'

Re: Data Structure Question

2004-05-03 Thread Dave Carrigan
ber, one for the trailing NUL). Otherwise, you won't be able to use 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 Jo

Re: storing date for future use

2004-04-28 Thread Dave Carrigan
the value to false and received that strange error > message. The call 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 [EMAI

Re: gcc errors - relocation and stuff, please help

2004-04-23 Thread Dave Carrigan
is still a too-large code jump problem, so you need 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 Bo

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

2004-04-21 Thread Dave Carrigan
done is use a different type for each database, 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 listenin

Re: math funcitons

2004-04-19 Thread Dave Carrigan
can't use MathLib. -- 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 us

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

Re: Structure initialisation

2004-03-28 Thread Dave Carrigan
Palm just runs 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, p

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

2004-03-26 Thread Dave Carrigan
I get "Chunk over-locked..." after 15 runs starting > from 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

Re: Problem sending A Nested Structure Over The Network

2004-03-17 Thread Dave Carrigan
ture and send 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

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 PROTEC

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);

Re: problem using DmGetNextDatabaseByTypeCreator

2004-03-05 Thread Dave Carrigan
meter. DmSearchStateType search; 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

Re: Developer Suite - mirrors?

2004-02-27 Thread Dave Carrigan
mize the vmware 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-

Re: Help - Palm OS

2004-02-27 Thread Dave Carrigan
. 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:/

Re: Developer Suite - mirrors?

2004-02-27 Thread Dave Carrigan
I had 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-Ap

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

2004-02-19 Thread Dave Carrigan
shell 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 Carrig

Re: C++ templates and PRC Tools?

2004-02-02 Thread Dave Carrigan
rect, 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

Re: C++ templates and PRC Tools?

2004-02-02 Thread Dave Carrigan
as the intermediary 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 F

Re: Difference between Resource and Record

2004-01-30 Thread Dave Carrigan
I can address one or both of these > issues. Features may not solve this problem, but they're still easier 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] |

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

2004-01-15 Thread Dave Carrigan
Are you actually checking 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

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 P

Problem with ExgSetDefaultApplication and friends in OS 5

2003-12-16 Thread Dave Carrigan
app: memo Apps registered for type text/x-vCalendar: date; default app: date Apps registered for type text/x-vCard: addr; default app: addr Target app returned from ExgGetTargetApplication: lnch My question is WHY? What am I missing that I can't override the target app on a 5.x device? -- Da

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

2003-12-02 Thread Dave Carrigan
oms that support hi density screens. For that you need to test 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-M

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

2003-12-02 Thread Dave Carrigan
For development, use a PalmOS 4 rom such as the m515. You won't be able to test any tungsten features, 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

Re: Tell GDB not to break in PilotMain?

2003-11-04 Thread Dave Carrigan
either. At least, no more 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) --

Re: Palm Desktop question

2003-10-28 Thread Dave Carrigan
fortunately I can't since the Conduit SDK 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-

Re: Palm Desktop question

2003-10-27 Thread Dave Carrigan
y() and UmGetUserDirectory() to build the path to the user's directory. I wouldn't recommend trying to glean 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 UmGetU

Re: virtual destructor

2003-10-22 Thread Dave Carrigan
s > and this needs globals. > > HOW CAN YOU PROGRAM IN C++ 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

Re: Problem with T3 graffiti area and menus

2003-10-16 Thread Dave Carrigan
d I save the state 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://ww

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 be

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,

Re: unsigned character problem

2003-10-04 Thread Dave Carrigan
Char* putHere = 0; >putHere = (Char*)(thisone + i ); 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-Fi

Re: Error in PilRC ??

2003-10-03 Thread Dave Carrigan
be in the form of #ifdef MAC_RESOURCES_H ... #endif Defining 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 Ca

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

2003-10-02 Thread Dave Carrigan
mited memory device. You 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

Re: Throw-away appId

2003-10-02 Thread Dave Carrigan
ven considering IDs whose 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 unsubscrib

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

2003-10-01 Thread Dave Carrigan
r MemPtrNew, but the ability 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 (Go

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

2003-10-01 Thread Dave Carrigan
255, depending on what the first character is in the string. If the string was "A bug", 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-Postgre

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

2003-09-29 Thread Dave Carrigan
s pretty much the best example there is, and it's very interesting 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

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

2003-09-23 Thread Dave Carrigan
quot;. Is there a > similar way to do so 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

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

2003-09-16 Thread Dave Carrigan
7;s prc-tools, what does your linker command look 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 (Thir

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/ | IC

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

Re: LstSetListChoices

2003-08-14 Thread Dave Carrigan
image after PL3/16x. What are you talking 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 info

Re: Palm Emulator

2003-08-14 Thread Dave Carrigan
real pointer to FldGetAttributes: FieldAttrType* fldAttr; fldAttr = MemPtrNew(sizeof(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 exp

Re: "Low Memory" - (Newbie Ques)

2003-08-14 Thread Dave Carrigan
you ask on any C forum, they'll have lots of suggestions. It's probably even in a FAQ somewhere. -- 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 listeni

Re: Bitmap offscreen window larger than 64KB?

2003-08-14 Thread Dave Carrigan
x27;re going to rely on that kind of unsupported 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://w

Re: Palm Emulator

2003-08-14 Thread Dave Carrigan
f bugs in your 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.o

Re: LstSetListChoices

2003-08-14 Thread Dave Carrigan
ontains the list is closed. Do the MemHandleFree when you handle frmCloseEvent, and don't forget to call LstSetListChoices 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-

Re: "Low Memory" - (Newbie Ques)

2003-08-14 Thread Dave Carrigan
e form. My guess is that it was 20, since your error message was "Application just read 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

Re: new and delete in Palm

2003-08-14 Thread Dave Carrigan
the PalmOS 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

Re: memory leak

2003-08-14 Thread Dave Carrigan
); >FrmEraseForm(frmP); >handled = true; >break; 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-P

Re: LstSetListChoices

2003-08-14 Thread Dave Carrigan
until 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 listen

Re: new and delete in Palm

2003-08-14 Thread Dave Carrigan
ck. It's perfectly safe to allocate long-lived pointers 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

Re: new and delete in Palm

2003-08-14 Thread Dave Carrigan
ould have to ask the PalmOS development team why they chose 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 (U

Re: new and delete in Palm

2003-08-14 Thread Dave Carrigan
lly get a chunk that the memory manager has decided it can 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 Carriga

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 = > >&

Re: Similar Utility to palmdump

2003-08-08 Thread Dave Carrigan
b,v $ use strict; use Palm::PDB; 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}); --

Re: LstSetListChoices

2003-08-08 Thread Dave Carrigan
SysFormPointerArrayToStrings). This is a memory leak because you'll never be able to free that pointer. You should be doing MemHandle h = SysFormPointerArrayToStrings(gPlateString, 6); gListString = (char**)MemHandleLock(h); ... MemHandleFree(h); -- Dave Carrigan Seattle, WA, US

Re: database creates, doesnt open, no error code

2003-08-03 Thread Dave Carrigan
ill compile in C, but it is very unlikely what a programmer wants: UInt32 x = "abcd"; // Assign something 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 do

Re: Alert from Resource in another ResDB

2003-07-29 Thread Dave Carrigan
source 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 th

Re: Becoming the launcher

2003-07-24 Thread Dave Carrigan
or, myCreatorID); Handle 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 Pal

Re: Avoid Exit a Program

2003-07-18 Thread Dave Carrigan
Studio In your event loop, look 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-Lin

Re: SortInfo block question

2003-03-13 Thread Dave Carrigan
fo(). 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 PROTECT

Re: VFS question

2003-01-28 Thread Dave Carrigan
unctions, but I don't 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:161669

Re: Unable to access serial port on emulator

2003-01-17 Thread Dave Carrigan
y. This is what I do: Set up socat's 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 --

Re: Multisegment wrestling...

2002-12-02 Thread Dave Carrigan
could possibly used 1 bytes of stack on a > machine that's supposed to have a 3.25K stack, etc). A map file will help you with this. -- Dave Carrigan ([EMAIL PROTECTED]) Seattle, WA, USA http://www.rudedog.org/ UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL

Re: PDB Formats & NULL terminated records

2002-10-29 Thread Dave Carrigan
hat contain 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++

Re: Converting to UIn16

2002-10-04 Thread Dave Carrigan
50% of the time, 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 Sea

Re: TxtSetNextChar

2002-09-27 Thread Dave Carrigan
ck. The best workaround is to always ensure that the size 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

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

2002-09-25 Thread Dave Carrigan
ally deleted from RAM 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). --

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

2002-09-23 Thread Dave Carrigan
is waiting, > launch POSE 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]

Re: DES algorythm?

2002-09-20 Thread Dave Carrigan
function 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

Re: Automated email responder for reg codes?

2002-09-17 Thread Dave Carrigan
y automated solution to > this problem. 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 usin

Re: Programmatically closing a dialog

2002-09-05 Thread Dave Carrigan
; watch in nilEvents to see 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] |

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

2002-08-26 Thread Dave Carrigan
2 Basically, you have to use a static method and the static method can call 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

Re: Launching an app from a card

2002-08-02 Thread Dave Carrigan
p set the bit itself after 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

Re: Launching an app from a card

2002-08-01 Thread Dave Carrigan
he hidden bit. But, we really need to know what you want to do before we can give you the best solution. -- 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

Re: scrollbar arrows not getting redrawn

2002-07-17 Thread Dave Carrigan
fter handling 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-Apach

Re: Using the builtin apps

2002-07-08 Thread Dave Carrigan
ll of the builtin apps, so your best bet is to check 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 unsubs

Re: VFS functions

2002-07-02 Thread Dave Carrigan
"/xyz.txt" ); > ... > > The VFSFileCreate 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-

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 Carr

Re: Multi Language support in single PRC

2002-06-24 Thread Dave Carrigan
ng lookup table, 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 Car

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

2002-06-18 Thread Dave Carrigan
a similar problem with the 1-2 version of the patch. I 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 Develop

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-Apach

Re: No FrmOpenEvent

2002-06-09 Thread Dave Carrigan
ll the form via FrmDoDialog, do: frmP = FrmInitForm(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 inform

Re: Rounding issue

2002-06-05 Thread Dave Carrigan
, which can result in inexact calculations. 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-My

Re: hardware failures

2002-06-03 Thread Dave Carrigan
o the > proper locations. 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/1633203&mode=thread&tid=100 -- Dave Carrigan ([EMAIL PR

Re: Saving the selected text from a field

2002-05-30 Thread Dave Carrigan
is. Here is how I would do it (untested 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])|

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

2002-05-28 Thread Dave Carrigan
a problem with your code. That's the whole point of using a debug rom; it simulates 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 ATLA

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(). -- Da

Re: Debugging multi-segment applications

2002-05-01 Thread Dave Carrigan
ent, so it can't set breakpoints on functions in different segments. 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 in

Re: converting int to string

2002-04-23 Thread Dave Carrigan
ling, specifically 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
esides on RAM but how can you get around 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

Re: String manipulations

2002-04-01 Thread Dave Carrigan
oesn't make my spider sense tingle: iDiff = cPos - 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/ |

Re: Installing/Deleting PRC

2002-03-26 Thread Dave Carrigan
f the new version has 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-

Re: Dynamically setting helpID for modal form

2002-03-25 Thread Dave Carrigan
when the tips button is tapped, before they pop up the ugly tips 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

<    1   2   3   4   >