RE: Palm DBs security

2002-05-21 Thread Robert McKenzie
Pablo: Joe is correct in his facts but wrong in his conclusion. The default apps are all in ROM. If you load an application with the same creator id and a version number greater than (or equal to) that of a ROM application, the launcher will launch the one in RAM, NOT the one in ROM. This

RE: Palm m500 and m505

2002-05-21 Thread Robert McKenzie
Mesuspects that your 3 character type (in the call to OpenOrCreateDB) is the problem. Perhaps if you pad it out to an explicit 32-bit value... -bob mckenzie, palmsource pdx -Original Message- From: Salma Saad [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 21, 2002 9:37 AM To: Palm

Question: card installing

2002-05-17 Thread Robert O'Connor
that can be of assistance. Best wishes, Robert -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

RE: more low-level access and deleted files

2002-05-14 Thread Robert McKenzie
The chunk has MemHandleFree (or its equivalent) called on it, which disposes of its entries in the memory manager data structures and thus allows the memory to be reused. In the record's header info (which the data manager keeps), the record's chunk entry is then set to 0 (NULL). Additionally,

RE: Assistance with timestamps in database

2002-04-25 Thread Robert McKenzie
Use TimGetSeconds() to get the number of seconds past 1 Jan 1904. Use TimSecondsToDateTime to convert to a DateTime structure Use TimeToAscii and DateToAscii to convert to strings in your favorite format. Concatenate. See Chapter 29, TimeManager, in the PalmOS Reference for more details. -bob

RE: DmResizeRecord - can i assume the rec's data is untuched ?

2002-04-22 Thread Robert McKenzie
DmResizeRecord works just like MemHandleResize (indeed, both share code under the covers). If it can, current versions of the PalmOS will grow the record right where it lives and the record's data will remain completely untouched. However it may also create a brand new chunk to hold the data

RE: Palm PIM Source Code

2002-04-22 Thread Robert McKenzie
Check the sdk license. But, in short, yes, I think you can use it as long as you attribute it. There is some language you will need to add to your app -- in the help screen methinks. Dave Fedor and/or those more knowledgable than I can be more explicit. Or you can search the archives. -bob

RE: DmGetNextDatabaseByTypeCreator

2002-04-19 Thread Robert McKenzie
just a few random thoughts. DmGetNextDatabaseByTypeCreator takes a search state parameter, which it uses to record the state of its search and hence implement the next part of its name. Of course, it needs to know when it is starting the search, so it also takes a new Search parameter. Two

RE: DmGetNextDatabaseByTypeCreator

2002-04-19 Thread Robert McKenzie
My attention is drawn to that 's28' type value. You have specified 24 bits of a 32 bit value. I wonder what your particular compiler puts into the other 8 bits. You might try using NULL (which will match all types) and seeing what happens. -bob mckenzie, palmsource pdx. -Original

RE: Local Exchange Problem

2002-04-18 Thread Robert McKenzie
You are sending the data in the wrong format. Datebook does not accept data in its own internal data format, only in VCARD format. This because it is trying to be a good software citizen and use public standards for data exchange and not require other software to be aware of its internal data

RE: Urgent - Category problem

2002-04-11 Thread Robert McKenzie
yep, that covers it. I would bet serious money (maybe even five cents) that your problem lies elsewhere. The code you use to change the category looks airtight and independent investigation says that the records are in good shape after you do it. But when you go to display things, they are

RE: Urgent - Category problem

2002-04-10 Thread Robert McKenzie
You got me stumped. All seems well with this code. I do have a couple of suggestions, however. Can you exit the app after the update but prior to the display and use a database examination tool to walk the database and independently examine the state of its records after the update? In

RE: Urgent - Category problem

2002-04-10 Thread Robert McKenzie
It sounds like some data manager internals are getting clobbered. The chunk id is returnable by DmRecordInfo as the last parameter. DmQueryNextInCategory will return NULL (0) if there is no next record. I trust your loop looks for this and terminates in this case. You might call DmGetLastErr

RE: Handles and Pointers, oh my!

2002-04-05 Thread Robert McKenzie
It depends on where you got the memory that the pointer references. If it was originally from a handle, then MemPtrRecoverHandle (or some such similar function, I am shooting from memory here) will do your business for you. If it was NOT originally from a handle, then you cannot get a handle

RE: Reading from a Field

2002-04-05 Thread Robert McKenzie
Just a random thought here. DmNewRecord creates a new record and, possibly, changes the location (indexes) of existing records. Perhaps your main form is looking at the wrong record? -bob mckenzie, palmsource pdx -Original Message- From: Kathleen Aiello [mailto:[EMAIL PROTECTED]]

RE: Reading from a Field

2002-04-05 Thread Robert McKenzie
OK, second random thought. You clearly are describing one more memory location (and copy) than you need. That is, when you do the DmNewRecord, that reserves memory (and returns a handle to it), you can than MemHandleLock it and copy your field stuff (with DmWrite or DmStrCopy, or...) to it

RE: Syncing Address Book

2002-04-04 Thread Robert McKenzie
There is no api to do what you want. I would say that the easiest way to do this is to: (1) Replace the address book device app with one you write yourself, and (2) Replace the address book conduit with one you write yourself. (1) is needed to create a gui and/or method of specifying which

RE: Palm PDB Database Help

2002-04-02 Thread Robert McKenzie
Kade: You have a basic C misconception here. A DB record should (can only) contain that actual strings themselves, NOT pointers to them. -bob mckenzie, palmsource pdx. -Original Message- From: Kade P. Cole [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 7:35 AM To: Palm

RE: Palm PDB Database Help

2002-04-02 Thread Robert McKenzie
. The struct that I am using to access the DB record is the one with the pointers in it. Kade On 4/2/02 9:51 AM, Robert McKenzie [EMAIL PROTECTED] wrote: Kade: You have a basic C misconception here. A DB record should (can only) contain that actual strings themselves, NOT pointers to them

Re: PalmDev: Error: Signed .word overflow

2002-03-26 Thread Robert Williams
Kim Hock NG wrote: I had the same problem. Apparent, you code is trying to make a cross segment jump which DRAGONBALL cannot do and you need to do some kind of multiple segment multi gen program, modify some def files and cut out your code so that no global part can be in separate segment

PalmDev: Error: Signed .word overflow

2002-03-25 Thread Robert Williams
Is anyone here familiar with this problem? Please give me a hand. Using SDK-4.01 prc-tools-2.0.92-1 I'm getting lots of these Signed .word overflow errors when I add valid lines of code to various functions in a project. Here is one such instance obtained by uncommenting the following code

RE: MemoDB Structure

2002-03-22 Thread Robert McKenzie
True enough, Joe, but hardly informative. A MemoDB record is the simplest of the built-in pim applications. Each record is simply a null-terminated string. -bob mckenzie, palmsource pdx -Original Message- From: Joe [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 11:59 AM To:

RE: Application wake app

2002-03-19 Thread Robert McKenzie
No. -bob mckenzie, palmsource pdx -Original Message- From: Anton [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 6:26 AM To: Palm Developer Forum Subject: Re: Application wake app No, I mean the following situtation: User do something on his desktop computer and then clicks

RE: Desktop HotSync Program

2002-03-15 Thread Robert McKenzie
It is so hard to find out how to initiate a HotSync from the desktop because it is so hard to do so. It is so hard to do so because the existing architecture was set up presupposing that it will only be initiated from the device. Let me summarize the salient features of the existing

RE: Tables Databases

2002-03-13 Thread Robert McKenzie
I have done work with tables. And I also don't like the passing pointers to records that you unlock. Most unstable. Not recommended. You are setting the item style to a labelTableItem. Label table items do NOT have custom draw routines. The table's draw routine assumes that the pointer is

RE: application crashing on 1st run after sync...

2002-03-11 Thread Robert McKenzie
From the evidence you give, I would suspect that you are doing something wrong in your handling of both the reset and sync notification launch codes. Perhaps opening a database exclusively and not closing it again? A good practical way to test this hypothesis is to create a custom build of your

RE: Palm symbol set

2002-03-06 Thread Robert McKenzie
from the latest SDK. Librarian Severices Cheerfully Furnished By Robert McKenzie, PalmSource Portland ;) -Original Message- From: Adrian Pfisterer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 7:18 AM To: Palm Developer Forum Subject: Re: Palm symbol set My question has

RE: Memory Manager NULL Handle Error

2002-03-06 Thread Robert McKenzie
Ravi: There are three, logically separate, convenient sources of memory for a program on a PalmOS device: The stack (function locals), the dynamic heap (MemPtrNew and MemHandleNew), and the storage heap (DmNewRecord, DmNewHandle). The stack and dynamic heap are small, particularly on older

RE: Pack/Unpack (was: palm-dev-forum digest: February 24, 2002)

2002-03-04 Thread Robert McKenzie
Shailesh: As used by the built-in apps, Joe's answer is not quite correct. When unpacking, the built-in applications do not actually copy or move any data. Instead they lock the record containing the packed data, and fill in pointers to it in the unpacked structure. These pointers can then be

RE: ctlSelect v/s PopSelectEvent

2002-02-27 Thread Robert McKenzie
Dinesh- An alternative explanation is that you are returning handled==true on ALL control select events. The expected sequence of events when the user taps on a popup trigger are: 1. penDown (user presses on trigger) 2. ctlEnter (spawned by CtlHandleEvent when it gets penDown) 3.

RE: PrefGetAppPreferences beginner's question

2002-02-27 Thread Robert McKenzie
the final argument to PrefGetAppPreferences controls whether those preferences are backed up by the system to the desktop (true) or not (false). The current in current preferences is a reference to their normal usage by applications (most especially the PIM apps). In reality, preferences is

RE: PrefGetAppPreferences beginner's question

2002-02-27 Thread Robert McKenzie
with argument false (no backup). Correct? Robert McKenzie schrieb: the final argument to PrefGetAppPreferences controls whether those preferences are backed up by the system to the desktop (true) or not (false). --- snap -- For information on using the Palm Developer Forums

Re: Deciphering Memory Leak Log files?

2002-02-20 Thread Robert Purcell
this is pretty awesome! My hat off to Keith and the emulator team for coming up with this great feature! Keep up the good work! Thanks again to everyone, Robert Purcell, [EMAIL PROTECTED] BapSoft, http://www.bapsoft.com __ Do You Yahoo!? Yahoo

RE: PalmSim glitch

2002-02-19 Thread Robert McKenzie
Terry- A technique that WILL work is to have a global (or two, or three) associated with the form with which you remember your allocation(s) when you make them and then use to free the memory on form close. Such as: static void MyFormInit(void) { gPointer = NULL; gPointer =

RE: PalmSim glitch

2002-02-19 Thread Robert McKenzie
There are various little nooks and crannies in PalmOS that you can use to save things in. Most of them just save a UInt32. I would consider allocating a chunk of memory to hold all your lists and info and stuff, then storing the address of that chunk in your particular choice of nook and/or

Deciphering Memory Leak Log files?

2002-02-19 Thread Robert Purcell
of this information is not explained anywhere in the POSE documentation. I guess what I really need is an elementary, step-by-step explanation of how to use the log file information to pin-point the code causing the memory leak. Thanks! Robert Purcell, [EMAIL PROTECTED] BapSoft, http

RE: How to find the PopupType * given the popup trigger's id?

2002-02-18 Thread Robert McKenzie
Methinks you're trying to hold back the tide here. Whether it was a good decision or not, PalmOS simply doesn't consider a FrmPopupType to be an exposed-to-the-programmer object. It just simply is the program's responsibility to duplicate the connection between a trigger and its list. On the

RE: How to find the PopupType * given the popup trigger's id?

2002-02-18 Thread Robert McKenzie
trigger's id? Robert McKenzie wrote: Methinks you're trying to hold back the tide here. Whether it was a good decision or not, PalmOS simply doesn't consider a FrmPopupType to be an exposed-to-the-programmer object. But it is exposed to the programmer; what other purpose do the SDK docs serve

RE: Table resources

2002-02-14 Thread Robert McKenzie
You are setting all of your rows to be UNusable by the third line inside your for loop! -bob mckenzie, palmsource pdx -Original Message- From: Scott Mebberson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 8:21 PM To: Palm Developer Forum Subject: Table resources I

RE: lists and dynamic runtime lists

2002-02-13 Thread Robert McKenzie
A list draw callback function can get its data to draw from absolutely anywhere. In your case, all you need is a correspondence between the list index and the database record number. If the correspondence is not the identity correspondence, it is pretty simple to allocate and save (say in a

RE: Palm OS 5 and built-in apps database access

2002-02-12 Thread Robert McKenzie
As far as I know, the built in apps will not change with the first spin of OS 5. I have heard, however, that they WILL become native (and thus will change) **REAL SOON NOW**. As to what the story will be with respect to access, I don't know. -bob mckenzie, palmsource pdx -Original

RE: Table problem (compiler error)

2002-02-06 Thread Robert McKenzie
3.5.2. Does this mean that I cannot use this function? Thanks for the reply BTW... Robert McKenzie [EMAIL PROTECTED] wrote in message news:75794@palm-dev-forum... You are directly accessing a system internal (pt-items). This is a big naughty. I guarantee you that if you do this your code

RE: Table problem (compiler error)

2002-02-06 Thread Robert McKenzie
Oops. Here is the definitive word. Thanks, Jim! -bob mckenzie, palmsource pdx -Original Message- From: Jim Schram [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 1:23 AM To: Palm Developer Forum Subject: Re: Table problem (compiler error) At 5:18 PM +0200 2002/02/05,

RE: Table problem (compiler error)

2002-02-05 Thread Robert McKenzie
You are directly accessing a system internal (pt-items). This is a big naughty. I guarantee you that if you do this your code will not run on the next Palm OS. Please use the published APIs. In particular use: Int16 ColumnCount = TblGetNumberofColumns(pT); -bob mckenzie, palm portland.

RE: beaming and multi-segmented apps

2002-02-05 Thread Robert McKenzie
Well, not really. It just is. (No doubt it has to do with memory space issues, but...) I can, however, give you guidelines about segmenting that will work. The fail-safe guideline is: In response to a launch of your application, you may not, directly or indirectly, call any function outside

RE: i705 wireless access

2002-02-04 Thread Robert McKenzie
OS-wise, the i705 looks much like a Palm VII. In particular, it supports the InetLib for communication through its radio link. The Push technology is handled by the OS invisibly to the device applications. If something is pushed to the device, it is caught by the OS and turned over to the

RE: i705 wireless access

2002-02-04 Thread Robert McKenzie
On a VII, I would suspect that MultiMail just doesn't get its push stuff. -bob mckenzie, palm portland -Original Message- From: Brian Smith [mailto:[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 10:25 AM To: Palm Developer Forum Subject: RE: i705 wireless access On Mon, 4 Feb

RE: DmGetRecord failing

2002-02-04 Thread Robert McKenzie
Just a guess here, but I would suspect that you have a perfectly valid (non-deleted) record in your database without any handle associated with it (i.e., with a NULL handle). How can this happen, I hear you ask? Simple -- Just use DmAttachRecord with a NULL new handle! There **may** be other

Bitmap Animation - Clarification?

2002-02-01 Thread Robert Purcell
is never corrupted by animating the car bitmap. Is my understanding correct? Is it necessary to draw the background image (the road) each and EVERY time PRIOR to drawing the car bitmap image? Any thoughts/suggestions/corrections would be greatly appreciated! Thanks, Robert Purcell, [EMAIL

Re: Bitmap Animation - Clarification? (2)

2002-02-01 Thread Robert Purcell
, but I try my best to stay away from C++ whenever possible. :) Have you considered releasing a version of Razor in C? Obviously I hate to reinvent the wheel! Thank again for taking the time to help me! :) Robert Purcell, [EMAIL PROTECTED] BapSoft, http://www.bapsoft.com --- In [EMAIL

RE: !!Urgent - Global Find Problem

2002-01-30 Thread Robert McKenzie
There are two restrictions to code that executes in response to a find: (1) Globals are not available. (2) All code must be in Segment 1. You should additionally note that the find may run when your application is NOT running (then (1) really is enforced), OR when your app IS running (then (1)

RE: Pointers, arrays, and DmStrCopy

2002-01-29 Thread Robert McKenzie
This is a basic C programming question. Let me put on my CS101 hat and take a swing at it. char name[1]; is completely different from CharPtr name; and char* name. The later two are the same (assuming that CharPtr is typedef'd as char *, which earlier versions of Palm header files did). char

RE: Continuous Fatal Excpt on Install, fine on Pose others...

2002-01-29 Thread Robert McKenzie
To debug an app that fatal errors on install, you must identify the code that is executing on install and make it run -- in the same state -- under the debugger when the debugger loads the application. Normally this is code that runs in response to sync notification launch code. My standard

RE: How to Access the Control ID

2002-01-28 Thread Robert McKenzie
The control repeat event itself contains a (user defined) controlID field, hence : switch (event-data.ctlRepeat.controlID) { case MainKeyboardBackspaceRepeating: ...do something case MainKeyboardTabRepeating: ... ... is, and always has been, the right way to do this. Of course, it

RE: Trouble with selector triggers

2002-01-04 Thread Robert McKenzie
Todd: Dave's original comment still holds with this code. True you allocate memory with MemPtrNew and store a pointer to the newly allocated memory in startTime and endTime. But then you immediately set the startTime and endTime pointers to point to the current labels -- effectively rendering

Shortcut Menu Selection?

2001-12-20 Thread Robert Purcell
Hi Everyone, I'm trying to programmatically determine if the user selected a menu entry via a shortcut stroke or by directly selecting via the pull-down menus. I haven't been able to find any information on the topic. Does anyone know if this is possible? Thanks!! -Robert www.bapsoft.com

Shortcut Menu Selection (2)

2001-12-20 Thread Robert Purcell
starts drawing to the screen to give the OS time to remove the pop-up bar from the screen. This works perfectly, but I don't want this delay unless the user selects the menu option via shortcut 'U'. -Robert http://www.bapsoft.com (BapSoft) I suppose you could intercept vchrMenu and vchrCommand

Reducing Application Size...

2001-12-12 Thread Robert Purcell
developer's solutions to this problem. Thanks! Robert __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com -- For information on using

Re: Reducing Application Size...

2001-12-12 Thread Robert Purcell
Wow! Thanks for the great responses! I really do appreciate everyone's input about reducing application size. There were a lot of good gems of advice that I'm sure will help me squeeze my apps much tighter than they are currently. To answer Howard's question, I'm currently using Codewarrior

Re: FrmPopupForm not clearing

2001-12-12 Thread Robert Purcell
any valuable debug information. Hope that helps... :) -Robert __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com

RE: list in table cells question

2001-12-06 Thread Robert McKenzie
Bob's handy guide to rolling your own popup triggers in tables: I Initialization. You must initialize the table properly. Best is to set the item style as a customTableItem, set the item int to hold the selection (or -1 for no selection), set the item pointer to point to your list, and set a

Sprites (non-corrupting images)?

2001-12-06 Thread Robert Purcell
bitmap moves over it. This process is very slow on the Palm. I would think there should be an easier way to do this. There are many scrolling type games out there for the Palm that must do this. Any thoughts/suggestions would be greatly appreciated! Thanks, -Robert

RE: DmResizeRecord - strange error

2001-12-04 Thread Robert McKenzie
Philip: DmGetRecord does NOT lock the handle. Hence the MemHandleUnlock(handle) suggestion will result in a chunk not locked error. -bob mckenzie, palm pdx -Original Message- From: Philip Sheard [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 04, 2001 1:02 AM To: Palm Developer

RE: DmResizeRecord - strange error

2001-12-04 Thread Robert McKenzie
global, I was constantly modifying the first record. I found this by looking in memory and seeing it. I wasn't paying enough attention to it yesterday to catch that. Dan Robert McKenzie [EMAIL PROTECTED] wrote in message news:70063@palm-dev-forum... Dan: I see no errors in your pseudo code

RE: DmResizeRecord - strange error

2001-12-04 Thread Robert McKenzie
No, DmResizeRecord does not fail if the record is busy -- on any version of PalmOS. Following DmGetRecord with DmResizeRecord is perfectly kosher (thought it does strike me as a bit bizarre -- I would call DmResizeRecord and if it succeeded, then call DmGetRecord to mark it busy, but that is

RE: Reading From Tables

2001-11-30 Thread Robert McKenzie
Message- From: amit tipnis [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 29, 2001 2:28 PM To: Palm Developer Forum Subject: Reading From Tables Hi Robert, Thanks for the quick response and the tip. But you know, the first thing that I had tried was TblGetItemPtr ( ), and the SDK tells me

RE: Reading From Tables

2001-11-29 Thread Robert McKenzie
Just a shot here, but if the user has put no text into the field (or has backed it all out), the text handle returned by FldGetTextHandle will be NULL. Thus you should check for that. As a stylistic point, rather than using TblGrabFocus, you can use TblGetItemPtr for your particular row and

RE: Clear field

2001-11-27 Thread Robert McKenzie
1. Use FrmHideObject to erase the field from the display 2. Use FldGetTextHandle to retrieve the current text handle (possbily null). 3. Use FldSetTextHandle and give the field a null handle 4. If the handle returned in 2. is not null, use MemHandleFree to dispose of the memory. 5. If

RE: FrmSetTitle Usage

2001-11-27 Thread Robert McKenzie
Using FrmSetTitle will work, but your intuition that you should do more is quite correct. You have created a memory leak here. You should save your title pointer (easiest as a global) and dispose of the memory referenced on the form close event. You should also null this pointer on form open.

RE: FrmSetTitle Usage

2001-11-27 Thread Robert McKenzie
preference would be in favour of MemHandleResize. Ar Robert suggested, you keep a Memory Handle as non-automatic (i.e. static or global) and initialize it to zero. In UpdateTitle: if MemHandle is zero, do MemHandleNew, otherwise MemHandleResize. In both cases, you need FrmSetTitle, because the memory

RE: FrmSetTitle Usage

2001-11-27 Thread Robert McKenzie
I agree that FrmCopyTitle is a better solution. But there is more than one way to do this, and the alternatives are instructive. The technique of hiding the title, changing it, then showing it again is one that has more general applicability -- you can (and often should) do the same trick with

RE: FrmSetTitle Usage

2001-11-27 Thread Robert McKenzie
. In this case, you would need to call MemHandleUnlock and DmReleaseResource on form close. -bob mckenzie, palm pdx -Original Message- From: Andy Yeong [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 27, 2001 4:44 PM To: Palm Developer Forum Subject: Re: FrmSetTitle Usage Hi Robert, Robert

RE: Editing Fields

2001-11-26 Thread Robert McKenzie
Generally speaking, fields like/use handles not pointers. They lock the handle when the field has the focus (for editing), but otherwise it remains unlocked. They can also resize the handle, moving any memory after that given to the field down, so be careful. Or they can compact the field,

RE: Simple Stupid Question re: system date

2001-11-26 Thread Robert McKenzie
TimGetSeconds() returns the current date in seconds after 1904. See the Time Manager documentation in Part II, System Management section of the PalmOS Programmer's API Reference for additonal routines to convert various date/time representations. To have the user select a date a date, you

RE: SelectDay is blowing up...

2001-11-26 Thread Robert McKenzie
FrmCopyLabel is only used in SelectDay to copy a yearString. The yearString is allocated as 5 bytes on the stack and filled by a StrIToA from the year value that you pass in (as an Int16). I am guessing that your year is -1 or some other invalid value that doesn't convert to 4 decimal digits

RE: Newbie search database question

2001-11-26 Thread Robert McKenzie
1. keep the database sorted on your favorite field 2. use a binary search -bob mckenzie, palm pdx -Original Message- From: Tim [mailto:[EMAIL PROTECTED]] Sent: Monday, November 26, 2001 8:58 AM To: Palm Developer Forum Subject: Newbie search database question Hey all, I have a

RE: Unknown Variable Reset

2001-11-26 Thread Robert McKenzie
I'm not sure what might be going on with your UInt. If it is declared in a header which is included in multiple source files (one for Form1 and one for Form2, there could be two different (local) globals under the same name. I would check its address to verify/eliminate this possibility. A

RE: Table.c currentRow violated contraint.

2001-11-15 Thread Robert McKenzie
TblInsertRow does not actually **INCREASE** the number of rows in the table. Instead, the last row is tossed into the great bit bucket in the sky as the new row is inserted. In your case, the last row was the current row -- i.e. was selected. To suppress the error message, call

problems with MemHandleLock()...

2001-10-30 Thread Robert D. Matthews
make any sense. Thanks in advance, -Robert Robert Matthews [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

RE: Scrollbar example.

2001-10-23 Thread Robert McKenzie
You could also use a field. You have to handle some field events, but it is quite doable. I have multiple scrollable fields in my app, so have developed some utility routines that I use. Check them out: /*** *** **

RE: Deleting vs removing records - more

2001-10-23 Thread Robert McKenzie
DmNumRecordsInCategory() is what you want. It checks attributes and doesn't count deleted or (if mode is to not show private) private records. Use DmAllCategories with it. Be warned: it isn't very quick. -bob mckenzie -Original Message- From: Todd Cary [mailto:[EMAIL PROTECTED]]

RE: Problem calling FrmCustomAlert, returning via appStopEvent, t hen calling FrmCustomAlert again when handling appStopEvent

2001-10-22 Thread Robert McKenzie
I see two work-arounds. (1) Don't put up the original FrmCustomAlert -- use a regular (modal) form, launch it with FrmDoDialog, have your own form event handler, and trap (return handled == true on them) those annoying hardkey events. You could create your own MyCustomAlert to handle this if it

RE: Memory leaks with dynamic lists

2001-10-22 Thread Robert McKenzie
Well True, you are creating your list dynamically, but I (for one) would hardly call it a dynamic list. To answer your question -- if you create the list (LstNewList) on form open, I would trash your memory on form close. Don't forget to check whether or not you ever actually allocated the

RE: Datebook Problem

2001-10-05 Thread Robert McKenzie
This code looks fine to me -- a bit inefficient (no need to put the description and note on the heap, they could be left on the stack), a bit risky (whenever you use MemPtrNew or MemHandleNew or their brethern, you should check that the allocation didn't fail) but fine. The problem probably is

RE: Table checkbox question

2001-10-05 Thread Robert McKenzie
Catch the table select event and do your stuff there. Alternatively, you can save your changes on form close. -bob mckenzie -Original Message- From: Johnathan Smith [mailto:[EMAIL PROTECTED]] Sent: Friday, October 05, 2001 5:49 AM To: Palm Developer Forum Subject: Table checkbox

RE: problems creating bitmaps...

2001-10-05 Thread Robert D. Matthews
There should be a rule that says you shouldn't post to newsgroups after 9:00 pm... 2048 corresponds to the 11th bit which is right where the red value picks up. Nice to know that my code works... -Robert -Original Message- Subject: problems creating bitmaps... From: Robert Matthews

problems creating bitmaps...

2001-10-04 Thread Robert Matthews
++; } theLineP = theBitsP + 320; while( theBitsP theLineP ) { *theBitsP++ = *testP++; } } WinDrawBitmap( newBitmapP, 0, 0 ); } } Thanks in advance, -Robert

Converting 24 bit RGB values to 16 bit...

2001-10-03 Thread Robert D. Matthews
, -Robert -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

RE: LocalID vs DmOpenRef

2001-10-01 Thread Robert McKenzie
The Palm OS Programmer's API Reference defines DmOpenDatabase on page 594 (in Part II System Management, Section 28 Data and Resource Manager, subsection Data Manager Functions). This takes the LocalID and Card Number and returns a DmOpenRef. It also allows you to open the database with various

RE: Address Book Info

2001-10-01 Thread Robert McKenzie
You can certainly store contact information that your application collects in address book. There are (currently) two methods of doing this: accessing AddressDB directly, and using the exchange manager to send vCard data to the address book application (use the 'addr' creator id as the target of

RE: Outlines in tables

2001-10-01 Thread Robert McKenzie
I am not sure what you mean by put lines in on row breaks. If you mean draw lines in between rows, you can use custom draw proceedures to do this. If you mean to expand text cells to multiple lines when the user keys in a line-feed, it will do this automatically unless you take steps to prevent

RE: Address Book Info

2001-10-01 Thread Robert McKenzie
! Robert McKenzie [EMAIL PROTECTED] wrote in message news:63759@palm-dev-forum... You can certainly store contact information that your application collects in address book. There are (currently) two methods of doing this: accessing AddressDB directly, and using the exchange manager to send

Question on graphics...

2001-10-01 Thread Robert D. Matthews
for just about anything at this point. Thanks in advance... -Robert Robert Matthews [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

RE: Address Book Info

2001-10-01 Thread Robert McKenzie
tell me where to fin the vCard format? I've looked in the Palm documentation and two Palm books I have and none have that format listed. Robert McKenzie [EMAIL PROTECTED] wrote in message news:63780@palm-dev-forum... John- Beaming to another Palm is done via the Exchange Manager -- much like

Handango at 30% !!

2001-10-01 Thread Robert Purcell
for accepting customer's payments? Thanks! -Robert __ Do You Yahoo!? Listen to your Yahoo! Mail messages from any phone. http://phone.yahoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com

RE: form deletion

2001-09-24 Thread Robert McKenzie
Also of interest is where, precisely, in the call stack is the error happening. If you re-create the failure while the application is running under a debugger, you should be able to answer this question. Knowing which routing accesses an unallocated chunk might be a great indicator of which

RE: What are the maximum rows in a table resource?

2001-09-12 Thread Robert McKenzie
You really don't want to create tables with that many rows. Not very zen of Palm. A table is a GUI thing-a-ma-jobbie. As such, normally you only create as many rows as you can display. Then you load each table row with the data it needs. If, for example, you have a database with 1000 records

RE: just Display some text .?

2001-09-05 Thread Robert McKenzie
Text fields will also work quite well. You can set the field as non-editable in the resource. If the strings you wish to display are stored as resources (this is better for internationalization than having them embedded in the code), you will access them as handles anyway (DmGetResource returns

Off-Topic: PalmGear Financial Status?

2001-08-28 Thread Robert Purcell
else feel concerned that they may never see the hard-earned money for their product registrations? Sorry again for the off-topic subject and for speaking so negatively. Thanks everyone! -Robert __ Do You Yahoo!? Make international calls for as low

Oops! Perhaps I spoke too soon. :)

2001-08-28 Thread Robert Purcell
Hi Everyone, I may have spoke too soon with my last message. I just read Aaron's message from PGHQ. Maybe the situation isn't as bleak as I originally thought. Sorry for all the off-topic messages. I guess I'll shut-up for now and get back to developing! :) Thanks guys, -Robert

<    3   4   5   6   7   8   9   10   >