Re: wrong calculation in codewarrior

2010-07-15 Thread Dave Carrigan
If you're porting code that assumes 32 bit ints then you probably want to change your compiler settings as Alan suggests. This is likely to cause problems if you're integrating it with code that assumes 16-bit ints. On Jul 15, 2010, at 5:57 PM, Alan Ingleby alan.ingl...@gmail.com wrote: As a

Re: wrong calculation in codewarrior

2010-07-14 Thread Dave Carrigan
16040 instead of 736936. Do you know why? Integer constants are probably being treated as 16-bit. When you multiply two 16-bit integers the result is a 16-bit integer, and you are overflowing. Make sure you use 32-bit integer constants: tmpY = 2008L * 367L; -- Dave Carrigan d...@rudedog.org

Re: Querying the Web from the Palm to check for updates

2010-05-26 Thread Dave Carrigan
is performed? Luc Le Blanc http://www.speleo.qc.ca/Auriga -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/ -- Dave Carrigan d...@rudedog.org Seattle, WA, USA -- For information on using the ACCESS

Re: C vs C++

2009-01-19 Thread Dave Carrigan
useful classes. C++ has significantly improved our development cycle; if you're comfortable with C++ and OOP you should use it. -- Dave Carrigan d...@rudedog.org Seattle, WA, USA -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access

Re: conduit debugging in xcode

2008-10-01 Thread Dave Carrigan
On Oct 1, 2008, at 7:19 PM, Bruce Fistel wrote: I'm trying ddd but without much luck. Have you ever tried this route? ddd is just a front-end for gdb, as is xcode, so neither is likely to work. -- Dave Carrigan [EMAIL PROTECTED] Seattle, WA, USA PGP.sig Description

Re: conduit debugging in xcode

2008-09-29 Thread Dave Carrigan
there are a significant number of people who use Missing Sync instead of Palm's hotsync manager, and they expect all conduits to work under Missing Sync. -- Dave Carrigan [EMAIL PROTECTED] Seattle, WA, USA -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http

Re: UIntxx question

2008-05-29 Thread Dave Carrigan
et al). Then, you have to ensure that you cast your variable to the proper type when you pass it to the function. -- Dave Carrigan ([EMAIL PROTECTED])| Yow! I'm in ATLANTIC CITY riding UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | in a comfortable ROLLING Seattle, WA, USA

Re: Set Text to Field

2008-05-29 Thread Dave Carrigan
)GetObjectPtr( frmP, field_id ) ; Handle h = FldGetTextHandle( fld ); FldSetTextHandle( fld, NULL ); if (h) MemHandleFree(h); h = MemHandleNew( StrLen(text) + 1 ); StrCopy( MemHandleLock( h ), text ); FldSetTextHandle( fld, h ); FldDrawField( fld ); } -- Dave Carrigan

Feature Manager vs. Preferences

2008-05-29 Thread Dave Carrigan
? -- Dave Carrigan ([EMAIL PROTECTED])| Yow! They collapsed like UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | nuns in the street... they had Seattle, WA, USA| no teen appeal! http://www.rudedog.org/ | -- For information on using

Re: Palm application in C++ using Code Warrior.

2008-05-29 Thread Dave Carrigan
need experts opinion. http://www.egroups.com/messagesearch/palm-dev-forum?query=c%2B%2B -- Dave Carrigan ([EMAIL PROTECTED])| Yow! Are we THERE yet? My MIND UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | is a SUBMARINE!! Seattle, WA, USA| http

Re: MemoPad Database clarification

2008-05-28 Thread Dave Carrigan
the field manager allocates memory in chunks when it needs to grow the field, which would result in wasted space in your database. -- Dave Carrigan ([EMAIL PROTECTED])| Yow! NOW, I'm supposed to UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | SCRAMBLE two, and HOLD th' Seattle, WA, USA

Re: [W] Multiple Threads under Codewarrior

2008-05-28 Thread Dave Carrigan
real event data: MyEventDataStruct* myPtr; MemMove(event.data.generic.datum, myPtr, sizeof(void*)); Extract it later with MyEventDataStruct** evtptr; MemMove(evtptr, event.data.generic.datum, sizeof(void*)); -- Dave Carrigan ([EMAIL PROTECTED])| Yow! Why is it that when you

Re: Gracefull Exit !!

2008-05-28 Thread Dave Carrigan
and an ErrCatch after it. Then, do an ErrThrow whenever you run into a problem that prevents you from proceeding. -- Dave Carrigan ([EMAIL PROTECTED])| Yow! Is it clean in other UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | dimensions? Seattle, WA, USA| http

Re: Database question

2008-05-28 Thread Dave Carrigan
; a good optimizing compiler will easily figure out if it can overlay two variables on to a single memory location. -- Dave Carrigan ([EMAIL PROTECTED])| Yow! Could I have a drug UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | overdose? Seattle, WA, USA| http

Re: Creating Palm App

2008-05-28 Thread Dave Carrigan
. The CD has the complete set of tools for Linux (pilrc, poser, the gcc toolchain) on that CD, but they're out of date. You would be better off getting a newer set of tools (there are links at http://www.palmos.com/dev/). -- Dave Carrigan ([EMAIL PROTECTED])| Yow! Did I say I

Re: Let me be blunt

2008-05-28 Thread Dave Carrigan
most formats into PBM. Both tools are open source. -- Dave Carrigan ([EMAIL PROTECTED])| Yow! Half a mind is a terrible UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | thing to waste! Seattle, WA, USA| http://www.rudedog.org

Re: Resize of Array

2008-05-28 Thread Dave Carrigan
, newsize); /* Handlo out of memory condition if err != errNone */ array = MemHandleLock(array_h); -- Dave Carrigan ([EMAIL PROTECTED])| YOW! I can see 1987!! UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | PRESIDENT FORD is doing the Seattle, WA, USA| REMAKE

Re: scrolling a form

2008-05-28 Thread Dave Carrigan
. -- Dave Carrigan ([EMAIL PROTECTED])| YOW!! What should the entire UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | human race DO?? Consume a fifth Seattle, WA, USA| of CHIVAS REGAL, ski NUDE down http://www.rudedog.org/ | MT. EVEREST, and have

Re: Fatal Exception

2008-05-28 Thread Dave Carrigan
the default action is to beep on unhandled menu events. If I have a custom gadget, I set true on frmUpdateEvent, otherwise the default handler will call FrmDrawForm() and erase my gadget. If in doubt, leave handled as false. -- Dave Carrigan ([EMAIL PROTECTED])| Yow! It's a hole all the way

Re: Problem with Popup Trigger

2008-05-28 Thread Dave Carrigan
, otherwise, the OS will fail to set the new popup label for you. -- Dave Carrigan ([EMAIL PROTECTED])| YOW!! Up ahead! It's a DONUT UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | HUT!! Seattle, WA, USA| http://www.rudedog.org

Re: a very naive question...

2008-05-28 Thread Dave Carrigan
- b) { // no overflow, safe to add } It gets a little more complicated if you're using signed ints. -- Dave Carrigan ([EMAIL PROTECTED])| Yow! Can you MAIL a BEAN CAKE? UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | Seattle, WA, USA| http

Re: Is it necessary to unlock ptr after calling FldGetTextPtr()?

2008-05-28 Thread Dave Carrigan
, resized and locked again, changing the pointer. So, you should only use the result from FldGetTextPtr() within the scope of a single event. -- Dave Carrigan ([EMAIL PROTECTED])| Yow! Hand me a pair of leather UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | pants and a CASIO keyboard

Re: OS 3.5.2

2008-05-28 Thread Dave Carrigan
with the debug roms. You get a ton of debug messages from pose. -- Dave Carrigan ([EMAIL PROTECTED])| Yow! LOOK!!! I'm WALKING in my UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | SLEEP again!! Seattle, WA, USA| http://www.rudedog.org

Re: C++ development under PalmOS

2008-05-28 Thread Dave Carrigan
on the size of the inlined function, and the number of times it is called. -- Dave Carrigan ([EMAIL PROTECTED])| Yow! I'm having fun HITCHHIKING UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | to CINCINNATI or FAR ROCKAWAY!! Seattle, WA, USA| http://www.rudedog.org

Re: App Preferences problem

2008-05-28 Thread Dave Carrigan
(). Each time you change a prefs structure, you should start passing a newer version number to PrefSetAppPreferences(). Then, when you get the prefs, you examine the version number that is returned and decide if you need to migrate the structure. -- Dave Carrigan ([EMAIL PROTECTED

Strange behavior with static arrays in g++

2008-05-28 Thread Dave Carrigan
The array contains 1036, 3592, 36354 If I declare the array as UInt16 ButtonIDs[3]; and then initialize the array in my frmOpenEvent, my code works fine. Is there anybody who has seen this before and can shed some light on it? -- Dave Carrigan ([EMAIL PROTECTED])| Yow! Now I need

Re: Update field's contents

2008-05-28 Thread Dave Carrigan
the field to show the new text FldDrawField (debugfldP); This should work, but if your field is multiple lines, you usually need to call FldRecalculateField() as well. -- Dave Carrigan ([EMAIL PROTECTED])| Yow! Is this the line for the UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | latest

Re: Palm OS bug report

2008-05-28 Thread Dave Carrigan
, but all event-specific unions have controlID as the first field, so this bug wouldn't actually hurt anything unless the layout of one of those two unions changed (very unlikely). It should be fixed for readibility's sake, though. -- Dave Carrigan ([EMAIL PROTECTED])| Yow! Fold, fold

Re: Copy Security

2008-05-28 Thread Dave Carrigan
# or any of the sort? I appreciate any comments. Close to 50% of the messages (and 90% of the flame wars) on this list have to do with software copy protection. Go search the archives. http://www.egroups.com/group/palm-dev-forum -- Dave Carrigan ([EMAIL PROTECTED])| Yow! Can I have

Re: Converting text for palm app (ex. converting chapters of a book)

2008-05-28 Thread Dave Carrigan
put a book as a lot of databases with a single record each. See my comment above about studying the PalmOS architecture. -- Dave Carrigan ([EMAIL PROTECTED])| Yow! Well, I'm INVISIBLE AGAIN.. UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | I might as well pay a visit to Seattle, WA, USA

Re: DB Creator ID Query

2008-05-28 Thread Dave Carrigan
* create databases using the creator ID of your application that you got from Palm. -- Dave Carrigan ([EMAIL PROTECTED])| Yow! If this is the DATING GAME UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | I want to know your FAVORITE Seattle, WA, USA| PLANET! Do I get

Re: installing an app without HotSync

2008-05-28 Thread Dave Carrigan
, completely bypassing the Hotsync manager. -- Dave Carrigan ([EMAIL PROTECTED])| Yow! Let's climb to the TOP of UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | that MOUNTAIN and think about Seattle, WA, USA| STRIP MINING!! http://www.rudedog.org

Re: rectangle type

2008-05-28 Thread Dave Carrigan
topLeft; PointType extent; } RectangleType; typedef RectangleType *RectanglePtr; -- Dave Carrigan ([EMAIL PROTECTED])| Yow! I'm an East Side TYPE.. UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | Seattle, WA, USA| http://www.rudedog.org

Re: Creating Databases Dynamically

2008-05-28 Thread Dave Carrigan
. Store the database names using the feature manager and access them with the Ftr* functions. 4. Create the databases with different data types, then search or open them using DmGetNextDatabaseByTypeCreator() or DmOpenDatabaseByTypeCreator(). -- Dave Carrigan ([EMAIL PROTECTED

Re: FAQ fodder: How do I implement registration / etc.

2008-05-28 Thread Dave Carrigan
. This is the lack of freedom I was referring to. This is a complete lie. If ESR was opposed to commercialization of OSS, then why does he sit on the VA Linux board? And name me one OSS license that explicitly forbids use of OSS code in a commercial product. FUD FUD FUD. -- Dave Carrigan ([EMAIL PROTECTED

Re: How to check if variable is memory pointer?

2008-05-28 Thread Dave Carrigan
to functions. Trying to work around your bugs by checking for validity is just compounding one error on top of existing errors. -- Dave Carrigan ([EMAIL PROTECTED])| Yow! I feel real SOPHISTICATED UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | being in FRANCE! Seattle, WA, USA

Re: Resource ID numbers

2008-05-28 Thread Dave Carrigan
resource file. -- Dave Carrigan ([EMAIL PROTECTED])| Yow! BARBARA STANWYCK makes me UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | nervous!! Seattle, WA, USA| http://www.rudedog.org/ | -- For information on using the ACCESS Developer

Re: Resource ID numbers

2008-05-28 Thread Dave Carrigan
of the resources defined there start at 1. -- Dave Carrigan ([EMAIL PROTECTED])| Yow! .. my NOSE is NUMB! UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | Seattle, WA, USA| http://www.rudedog.org/ | -- For information on using the ACCESS

Re: Accessing String Manager?

2008-05-28 Thread Dave Carrigan
the parameter is 0. That's because the string constant was changed in the second call, and will remain changed in subsequent calls. In any complex program, this could lead to extremely obscure bugs. -- Dave Carrigan ([EMAIL PROTECTED])| Yow! I hope the ``Eurythmics'' UNIX-Apache-Perl-Linux

Re: Is it possible to change text in menus dynamically?

2008-05-28 Thread Dave Carrigan
Ken Krugler [EMAIL PROTECTED] writes: Using MenuShowItem, MenuHideItem, and MenuAddItem, you can achieve some degree of dynamic text support. Yes, but you're restricted to 3.5 and higher with these functions, so make sure you know your customer base. -- Dave Carrigan ([EMAIL PROTECTED

Re: encryption query

2008-05-28 Thread Dave Carrigan
when you're done with it. -- Dave Carrigan ([EMAIL PROTECTED])| Yow! With this weapon I can UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | expose fictional characters and Seattle, WA, USA| bring about sweeping reforms!! http://www.rudedog.org

Re: FldSetTextPtr

2008-05-28 Thread Dave Carrigan
that you'll be limiting your target market if you remove PalmOS 1.0 support from your app. -- Dave Carrigan ([EMAIL PROTECTED])| Yow! NANCY!! Why is everything UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | RED?! Seattle, WA, USA| http://www.rudedog.org

Re: Piracy deterrant -- bad idea?

2008-05-28 Thread Dave Carrigan
that your app can only be used by Windows users? i.e., if it interfaces with other windows software, then maybe you could get away with this tight coupling of windows and palmos. But if not, then this particular deterrent is locking out a sizable portion of your potential customer base. -- Dave Carrigan

Re: strings and string lists

2008-05-28 Thread Dave Carrigan
-coded strings use up precious heap space; resource strings don't. Hard-coded strings are slightly easier to use than resource strings. I personally never use hard-coded strings in my apps. -- Dave Carrigan ([EMAIL PROTECTED])| Yow! I just remembered something UNIX-Apache-Perl-Linux

Re: ctlselectortrigger

2008-05-28 Thread Dave Carrigan
(). For anything else, you'll probably have to create a modal form with your custom fields, then call FrmDoDialog(). -- Dave Carrigan ([EMAIL PROTECTED])| Yow! I had pancake makeup for UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | brunch! Seattle, WA, USA

Re: Date select!

2008-05-28 Thread Dave Carrigan
, year, title); } when run the SelectDay function, It will generate a error message Form.c Line1272, object not in Form Why? How should I do? thanks! I believe that you have to initialize the month, day and year to legitimate values before passing them to SelectDay. -- Dave Carrigan

Re: FrmAlert() does save behind?

2008-05-28 Thread Dave Carrigan
, haven't tried yet on an actual device. I believe that pose deliberately disables save behind so that you can catch errors like this before they manifest themselves on your end user's Palm. -- Dave Carrigan ([EMAIL PROTECTED]) -- For information on using the ACCESS Developer Forums

Re: How I get table cells highlighted?

2008-05-28 Thread Dave Carrigan
catching tblEnterEvent and setting handled to true, this will happen. When you say that checkboxes aren't working, do you mean that you can't check the box with a tap? If so, you're almost certainly not letting the table manager handle tblEnterEvent. -- Dave Carrigan ([EMAIL PROTECTED])| Yow

Re: How to detect Control-X, Control-C, Control-V on the Palm Stowaway keyboard

2008-05-28 Thread Dave Carrigan
keys are probably sending a menuEvent with a menuID of sysEditMenu{Cut,Copy,Paste}Cmd. -- Dave Carrigan ([EMAIL PROTECTED])| Yow! I want to read my new poem UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | about pork brains and outer Seattle, WA, USA| space

Re: Creating Databases???

2008-05-28 Thread Dave Carrigan
and Integration -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/ -- Dave Carrigan ([EMAIL PROTECTED])| Yow! ANN JILLIAN'S HAIR makes UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | LONI

Re: Weird Pref problem

2008-05-21 Thread Dave Carrigan
On May 21, 2008, at 2:19 PM, Tam Hanna wrote: Anybody any ideas on what is going on here? Not without you providing the code you are using to read/write the prefs. -- Dave Carrigan [EMAIL PROTECTED] Seattle, WA, USA -- For information on using the ACCESS Developer Forums

Re: all code in other segmet , but text segmet is full

2008-02-08 Thread Dave Carrigan
to get clear of it? -- Dave Carrigan [EMAIL PROTECTED] Seattle, WA, USA PGP.sig Description: This is a digitally signed message part

Re: Strange problem returning a MemPtr

2008-01-29 Thread Dave Carrigan
a bug with your code, but we'll never be able to diagnose it without seeing the code. -- Dave Carrigan [EMAIL PROTECTED] Seattle, WA, USA PGP.sig Description: This is a digitally signed message part

Re: Wrong result from MemHandleSize?

2008-01-19 Thread Dave Carrigan
=3283 this is the correct value I can't comment on this because I don't know how the variable source got declared and assigned. It would be better if you could post a complete, compilable code snippet, including all variable declaration and initialization. -- Dave Carrigan [EMAIL PROTECTED

Re: multi sections and pointers

2008-01-14 Thread Dave Carrigan
exceed this 32k offset, because the compiler will essentially generate a double jump. For your purposes, code and data are completely unrelated. Why don't you stop overanalyzing this and just try some things to see what works. -- Dave Carrigan [EMAIL PROTECTED] Seattle, WA, USA PGP.sig

Re: Error message

2007-12-17 Thread Dave Carrigan
/forums/ -- Dave Carrigan [EMAIL PROTECTED] Seattle, WA, USA -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/

Re: 68k to ARM

2007-10-18 Thread Dave Carrigan
, which are ARM native code fragments called from your 68K app. Otherwise, since most of your app is usually system calls which are performed in native ARM, there are few good reasons to move your app from 68K to ARM. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudeog.org

Re: segmentation code

2007-09-25 Thread Dave Carrigan
to sysAppLaunchCmdSyncNotify This is because the section jump tables require globals, so any functions that will be called when globals are not available should not be put into a section. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudeog.org PGP.sig Description

Re: segmentation code

2007-09-24 Thread Dave Carrigan
. As Jonathan said: take a look at http://prc-tools.sourceforge.net/doc/ prc-tools_3.html#SEC17 , especially at 3.2.2 Breaking up an existing application. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudeog.org PGP.sig Description: This is a digitally signed message part

Re: How to programmatically launch another application on Palm 5?

2007-05-23 Thread Dave Carrigan
for the benefit of other operating systems that the exchange manager may be sending objects to, not for use by Palm OS itself (yes, I know I am simplifying things a bit)). -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudeog.org -- For information on using the ACCESS Developer Forums

Re: StrCat();

2006-11-24 Thread Dave Carrigan
in standard C, but you're dead wrong. That is invalid C. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudeog.org -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Algorithm for TxtCompare

2006-02-15 Thread Dave Carrigan
know that a string like AGE+12345 sorts after AGE-12345, whereas with StrCompareAscii the order is reversed. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL-Postfix -- For information on using

Re: multiple segments

2005-10-14 Thread Dave Carrigan
will refuse to compile any code that makes function call if the function hasn't been previously declared. If you follow those two basic guidelines then you'll never have your function calls jumping into the wrong section. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http

Re: Adding hi-res application icons - externally

2005-08-02 Thread Dave Carrigan
all of those applications have been ported to Windows. -- 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 PalmSource Developer Forums

Re: Deleting databases during their enumeration

2005-06-23 Thread Dave Carrigan
them: for (UInt16 i = ::DmNumDatabases(0); i 0; --i) { ::LocalId dbid(::DmGetDatabase(0, i-1)); ::DmDatabaseInfo(0, dbid, ); if (info-meets-criteria) { ::DmDeleteDatabase(0, dbid); } } -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ

Re: Iterating over a database

2005-05-25 Thread Dave Carrigan
is suspicious because deleting records will cause the index of subsequent records to be shifted. It should really loop from DmNumRecords()-1 down to zero. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS

Re: Does PODS support exceptions

2005-05-06 Thread Dave Carrigan
. You can put template instances into different sections, but if you instantiate a template with a lot of different types, it's still possible to fill up the template's section. I have not yet found a good way to put different instantiations of the same template into different sections. -- Dave

Re: How to handle start.prc execution manually?

2005-04-29 Thread Dave Carrigan
the same - what if meanwhile other databases have been created? Use the database name; it's unique to the 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 -- For information

NVFS on the Tungsten E2

2005-04-28 Thread Dave Carrigan
in the same behavior as with the T5, so none of those bugs got fixed. So, if you were thinking that the T|E2 is going to solve all your NVFS woes, think again; it's just getting worse. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux

Re: dereferencing pointer to incomplete type when trying to access pEvent-data.fldEnter.pField

2005-04-18 Thread Dave Carrigan
(some_opaque_struct*); // This will compile, why? void process1(some_opaque_struct* thestruct) { do_something(thestruct); } // This will not compile, why not? void process2(some_opaque_struct* thestruct) { do_something(thestruct + 1); } -- Dave Carrigan Seattle, WA, USA [EMAIL

Re: Is it possible to resize a form at runtime?

2005-03-18 Thread Dave Carrigan
code for supporting the dynamic input area (DIA) on the Tungsten T3 and T5. DIA support means resizing forms all the time, so it's a good place to look at how to resize forms in general. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl

Hotsyncing loses sortinfo block

2005-03-17 Thread Dave Carrigan
whinging about how my first ever solution that actually uses a sortinfo block appears to have been stillborn. -- 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: Newer and greater NVFS woes

2005-03-11 Thread Dave Carrigan
() ::DmCloseDatabase(db); break; } else { void* recp(::MemHandleLock(rec)); ::DmSet(recp, 0, size, 0); ::MemHandleUnlock(rec); ::DmReleaseRecord(db, recno, true); } } -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ

Re: Newer and greater NVFS woes

2005-03-11 Thread Dave Carrigan
started to get it, they would be quite frequent. Closing and reopening the database did not alleviate this. This supports my hypothesis that thrashing the cache eventually causes corruption. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl

Re: Newbie question

2005-03-11 Thread Dave Carrigan
.- What tools should I use for development You will need the CDK for the conduit and PODS or prc-tools or Codewarrior for the PDA development. dev.palmos.com is your friend. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux

Newer and greater NVFS woes

2005-03-10 Thread Dave Carrigan
. If you would like to see my test program and try to duplicate my results, send me private email. -- 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: Is there a fast way to get the number of databases of a given type?

2005-02-28 Thread Dave Carrigan
by DmDatabaseInfo. This is essentially what DmGetNextDatabaseByTypeCreator does. It's still O(n) though. -- 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: Perofming a lengthy operation on all databases of a given type

2005-02-28 Thread Dave Carrigan
On Sat, Feb 26, 2005 at 08:53:20PM -, Vesselin Bontchev wrote: The problem is, it doesn't seem to work. :-) You need to explain how it's failing exactly. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C

Re: Large (Multisegment) application and non-global launch codes

2005-02-02 Thread Dave Carrigan
that does this is in the crt directory and is in the public domain. I don't know if it's technically possible to do it without globals. -- 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: Hot Sync problems on T5 with large files

2005-01-25 Thread Dave Carrigan
(while holding down the page-up key). If you did it right, you should see a message: DEVELOPER'S BACKDOOR DlServer Wait Forever is ON Please let me know whether this helps you or not. I would like to have some more data points on this when I start bugging palmOne. -- Dave Carrigan

Re: 5-way Navigator Problem

2005-01-21 Thread Dave Carrigan
navigator, one for Treo 6xx/T5 and future devices and a different approach for older devices such as the T3 or the Zires. -- 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: How to start Palm App B from Palm App A --- and let App A quit permanently

2005-01-20 Thread Dave Carrigan
guarantee that, and in fact with the T5, we are royally fscked because of the insane braindeadedness of this Favorites/Applications fiasco. -- 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: How to start Palm App B from Palm App A --- and let App A quit permanently

2005-01-20 Thread Dave Carrigan
runs, but of course that a) doesn't prevent the user from going back to the wrong thing by running prefs, and b) doesn't address the Favorites bug at all. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS

Re: How to start Palm App B from Palm App A --- and let App A quit permanently

2005-01-20 Thread Dave Carrigan
On Thu, Jan 20, 2005 at 06:43:14PM +0100, Henk Jonas wrote: Dave Carrigan wrote: Some of the services my company offers include a custom, branded launcher as part of the program. Users are not supposed to ever see the built-in launcher. Unfortunately, due to palm{source,one} not even

Re: How to start Palm App B from Palm App A --- and let App A quit permanently

2005-01-18 Thread Dave Carrigan
App A?) Fix app B so it can't quit without setting this magical variable. A well-designed app has no way to quit without doing this, because the only way it can quit is if the user presses a hard key or taps the house button, both of which have the side-effect of setting this variable. -- Dave

Re: 5-way and 'fnav' (again)

2005-01-13 Thread Dave Carrigan
?). else if FtrGet(hsFtrCreator, hsFtrIDNavigationSupported) succeeds It supports the Treo600 navigator API endif endif endif If none of the FtrGets succeed, there is no navigator. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache

Re: Strange crashes on the handheld: Preferences.c, Line: 271, Pref DB Open Error

2004-12-15 Thread Dave Carrigan
looking for a workaround, because even though the devices in the program have lots of third-party software, the blame finger gets pointed at us because it's always in our conduit that the crash occurs. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX

Strange crashes on the handheld: Preferences.c, Line: 271, Pref DB Open Error

2004-12-15 Thread Dave Carrigan
volume) Then, potentially, the conduit will be calling more VFSFile* functions if it needs to install something, but it never gets that far because the handheld has already crashed on the VFSVolumeSize or VFSFileOpen function. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http

Re: few questions

2004-12-01 Thread Dave Carrigan
by the system theme colors? You might be able to do this with an owner-drawn list. Use LstSetDrawFunction. -- 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

Re: few questions

2004-12-01 Thread Dave Carrigan
are not declared publicly. -- 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 Dire Straits - Your Latest Trick (Brothers In Arms) -- For information

Re: Software Copy Protection - One More Time!

2004-11-23 Thread Dave Carrigan
software. It won't. -- 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 Pop Will Eat Itself - England's Finest (The Looks or The Lifestyle

Re: Software Copy Protection - One More Time!

2004-11-23 Thread Dave Carrigan
of Windows XP on the Internet free for the download. The same applies to any version of Microsoft's software, all the way back to DOS 1.0. Yet Microsoft still seems to be making money. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl

Re: T5 Simulator navigator issues

2004-11-12 Thread Dave Carrigan
somewhere? The API for the Treo 600, 650 and T5 is different than for the other devices with the 5-way navigators. -- 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: palm database records question

2004-11-11 Thread Dave Carrigan
= description + StrLen(description) + 1; Now you don't have to copy the data around, but you can still use the strings with the various PalmOS string APIs. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS

Re: Accessing Members of a String List?

2004-11-08 Thread Dave Carrigan
; MemMove(count, prefix + StrLen(prefix) + 1, sizeof(UInt16)); Char** strings = new Char*[count]; Char* tmp = prefix + StrLen(prefix) + 1 + sizeof(UInt16); for (Int16 i = 0; i count; ++i) { strings[i] = tmp; tmp += StrLen(tmp) + 1; } -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED

Re: new developper needs assistance.. design question

2004-11-08 Thread Dave Carrigan
would use the CDK's InstallAide API to actually install the pdb. If you go the pure conduit approach, the SyncManager API is what you would use. You would basically delete the old database, create a new database, open it and append records to it. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED

Re: Is there any facilities like assert() in Palm OS?

2004-08-10 Thread Dave Carrigan
On Tue, Aug 10, 2004 at 03:01:20PM -0500, Jennifer Fell wrote: Is there any facilities like assert() in Palm OS? ErrFatalDisplayIf() and friends. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS

Re: C++ virtual methods with prc-tools

2004-08-06 Thread Dave Carrigan
class in one section and the subclass in a different section, and it works. Are you doing any inlining? Inlined code with multiple sections has caused me problems similar to that. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux

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

2004-07-02 Thread Dave Carrigan
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-Firewalls-LDAP-C-C++-DNS

Re: checking if DB is in ROM

2004-06-25 Thread Dave Carrigan
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 using the Palm

  1   2   3   4   >