re: Palm database don't want to synchronize

2005-01-13 Thread Jeff Wheeler
Our experience has been that the T5 and some other T models won't HotSync large files to internal memory. Large seems to be in the 2M or larger range. If your files are 2M or larger, I suspect this is the problem. The error we see most often in the log is 6410, connection lost. Google for

How to detect Graffiti 2 on T5?

2005-01-10 Thread Jeff Wheeler
I'm running this code from the PalmSource KB article How do I detect the presence of Graffiti 2 at runtime? if ((FtrGet('grft', 1110, value) == errNone) || (FtrGet('grf2', 1110, value) == errNone)) // Graffiti 2 is present On older OS4 and OS5 devices, this code works

class templates and segment 1 (CW9.3)

2004-06-17 Thread Jeff Wheeler
I'm having troubles associated with C++ template code filling segment 1 of my multi-segment app. I found this helpful article from Ben Combee: Templates, inlining, and why segment 1 fills up http://www.palmoswerks.com/stories/storyReader$16 Unfortunately, I must be missing something, as I've

Re: class templates and segment 1 (CW9.3)

2004-06-17 Thread Jeff Wheeler
On Thu, 17 Jun 2004 14:25:12 -0500, Ben Combee wrote: Did you turn off the Merge compiler glue into segment 1 switch in your 68K Linker pref panel? Even if that is odd, the templates will still be in segment 1 if you generate code for the templates due to calls to them by functions in

Re: class templates and segment 1 (CW9.3)

2004-06-17 Thread Jeff Wheeler
On Thu, 17 Jun 2004 16:15:58 -0500, Ben Combee wrote: The template class cSampleTemplateInt16; just forces the entire template to be instantiated at that location. The only way to disable the compiler from generating the code for the templates is to only include the template bodies in the

RE: Coding Standards

2003-08-14 Thread Jeff Wheeler
Jeff: 4. Tabs set to four spaces. Stuart: 4 space good, two space bad? This sounds like a religious war in the making. So I say 2 spaces for a tab and don't use tab characters. If you can cleanly fit your code into 80 columns that would also be nice (though I realize that is unlikely

RE: Coding Standards

2003-08-14 Thread Jeff Wheeler
In a previous post, Alan Ingleby wrote: What's the generally preferred way of structuring a switch statement? (This is mine...) void MyFunc(Char* buffer, UInt32 type) { switch(type) { case 1: StrCopy(buffer, One); break; case 2: StrCopy(buffer, Two);

RE: bus error building dynamic list

2003-06-14 Thread Jeff Wheeler
Your error isn't related to the lists at all, but rather to incorrect use of pointers and memory allocations. Your memory allocation is wrong or incomplete. You are allocating a block of memory and telling the compiler that it will contain an array of pointers to other characters, but then you

RE: bus error building dynamic list

2003-06-14 Thread Jeff Wheeler
Whoops, one more thing... Since you're going to give data to the list, if you use the stack method your declaration will need to be static since the data must exist for the life of the list. Jeff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff

RE: Not going to sleep..please help!

2003-06-06 Thread Jeff Wheeler
I don't have any specific advice for how your code is causing this behavior, but from your descriptions, it appears that you've recently added something unrelated that is resulting in the problem. Perhaps you are corrupting memory, perhaps you corrupt a program pointer and run rogue code, etc.

RE: Is there any way to redirect actual PDA screenshots to PC ????

2003-05-31 Thread Jeff Wheeler
Anamika Bhat previously wrote: my manager wants me to find a way such that , when I use my application on the PDA, those actions should be redirected to the PC so that the customers can see my actions on the actual PDA instead of the emulator. Sounds like a lot of pain for no gain. In

RE: non-techie terms to distinguish on-device memory from expansion cards

2003-05-29 Thread Jeff Wheeler
Hal Mueller wrote: What words have you found successful in helping your customers tell the difference between installing to main memory (the stuff built in to your PDA) from a VFS card? Can't call the removable stuff SD or Memory Stick because you'd be wrong most of the time. I don't

RE: MemHandle woes

2003-03-29 Thread Jeff Wheeler
You're right to be suspicious of your call to MemHandleFree(). You shouldn't call it on a handle received from DmQueryRecord(). DmQueryRecord() returns a MemHandle for a record that already exists in your database. It returns the handle that was originally obtained by DmNewRecord() (or some

RE: Question about penUpEvent sequence

2003-03-27 Thread Jeff Wheeler
John Gordon wrote: That is all working great by capturing the penUpEvent, except that I seem to be getting additional pen up events for all the menus and for the about box OK button. Jedi Ben Combee wrote: Easy fix: don't do anything for penUp if you've not seen an earlier penDownEvent.

RE: Exception handling when out of memory

2003-03-09 Thread Jeff Wheeler
Richard Coutts wrote: It's as though FrmDispatchEvent has it's own exception handler which exits the app before my catch gets a chance to handle the exception. Is that the case? No, I don't think so, but the effect is the same. I tried what you've tried -- that is, putting a try/catch

RE: Exception handling when out of memory

2003-03-08 Thread Jeff Wheeler
Richard Coutts wrote: What's the best way to detect and handle low or out of memory conditions? (The following is applicable to CodeWarrior. It may also apply to the other dev tools, but I don't have personal experience with them.) Turn on the C++ exception handling option, then use the C++

RE: Fatal Alert, Event.c Event queue full

2003-03-03 Thread Jeff Wheeler
Rahul Shukla wrote: On one or two screens i get this error as Fatal Alert, Event.c event queue full. Can any one help me in suggesting the remedy of this problem, or the potential cause of the same. Calling WinScrollRectangle() on a Handera 330 can generate this error. Jeff -- For

RE: Notify event

2003-03-03 Thread Jeff Wheeler
Chris Apers wrote: I'd like to know how to receive notification of inserted/removed memcard. I tried to put SysNotifyRegister on PilotMain but i don't receive the sysNotifyCardInsertedEvent/ sysNotifyCardRemovedEvent My guess is that you ARE in fact receiving these events, but not finding

RE: Insert notification

2003-02-26 Thread Jeff Wheeler
Chris APERS wrote: How can i intercept insert/remove event of memory card on palmos 4. I tried with sysNotifyCardInsertedEvent/sysNotifyCardRemovedEvent but it doens't seems to work I use sysNotifyVolumeMountedEvent and sysNotifyVolumeUnmountedEvent. Works great. Jeff -- For

RE: How to read a record of a pdb in a memory stick?

2003-02-18 Thread Jeff Wheeler
Alexandre Barreto wrote: I need to put some pdbs in a memory stick and my aplicantion must read a record in this pdbs how can i do that? If the particular handheld supports VFS (standard on OS4 and beyond), then you can use the VFS... functions to open, read, and write databases on external

RE: Handspring says delete third-party applications

2003-02-10 Thread Jeff Wheeler
FWIW, the complete sentence that ends the paragraph is: To maximize your power potential, delete any third-party software applications you don't need. The complete section in the e-mail is: snip Handheld Lessons: Extend Your (Battery) Life Want to make the most of your Handspring

RE: Two questions in CW8 !

2003-02-05 Thread Jeff Wheeler
Susan wrote: 2) Is there a function that can return the ASCII value of a char? Is this a trick question? ;^) Int16 GetAscii(Char c) { return (Int16) c; } However, since a character IS the ASCII value that represents that character, stored as an 8-bit number, you don't need a function

RE: Two questions in CW8 !

2003-02-05 Thread Jeff Wheeler
is administered out of China, so there's a chance she's asking about multi-byte characters. If so, I don't think there's a direct correspondence between individual WChars and Chars. Susan, what did you need ASCII for? -Ken On Wed, 2003-02-05 at 14:05, Jeff Wheeler wrote: Susan wrote: 2

RE: VFS Volume error

2003-01-29 Thread Jeff Wheeler
Nicholas Pleis wrote: I'm having some intermittent problems with VFS. Under certain conditions (that I have not been able to reproduce) I am receiving error code vfsErrVolumeBadRef from calls to VFSFileOpen(). ... Under certain circumstances (The closest I've come to reproducing it is

RE: VFS Volume error

2003-01-29 Thread Jeff Wheeler
Rodolphe Bréjaude wrote: Is it possible to create file with VFS on the Palm itself, not in the SD card? No, not that I know of. VFS provides access to a file system on storage cards, not what I call main memory. Jeff -- For information on using the Palm Developer Forums, or to

RE: Hi-res+ Slikscreen area

2003-01-28 Thread Jeff Wheeler
Chris Apers wrote: How can i change the silkscreen area on hi-res+ devices ? I'm not quite sure what you're looking for, but if you want to replace the software silkscreen with your own rendition, the Sony SDK version 5 documentation provides some details. This SDK is a free download from the

RE: Hi-res+ Slikscreen area

2003-01-28 Thread Jeff Wheeler
Jeff wrote: if you want to replace the software silkscreen with your own rendition, the Sony SDK version 5 documentation provides some details. Chris replied: Yes, there is nothing about how to change/set the virtual silkscreen. I haven't done it, but I'd start by looking at

RE: PrefGetAppPreferences() overflows stack, Handspring 3.1 ROM

2003-01-28 Thread Jeff Wheeler
Ben Combee wrote: When you are handling a non-global launch code, you are using the stack that the program that was running established. Palm OS only sets up a new stack for you when your program becomes the primary app, not for sublaunches. Because of this, you really can't count on

RE: Clie SDK problem

2003-01-27 Thread Jeff Wheeler
Watson wrote: I downloaded SDK 3.0 from us.sonypdadev.com but found that it only contained include files but no libraries. I wonder if it should work? I'm using prc-tools with cygwin. Sounds like you have the right thing. You'll use the headers to get definitions of Sony specific data

PrefGetAppPreferences() overflows stack, Handspring 3.1 ROM

2003-01-27 Thread Jeff Wheeler
I'm having a problem that appears to be unique to the Handspring 3.1 ROM as included in the Visor. My app responds to sysAppLaunchCmdSystemReset by reading the preferences, resetting some values, and storing the preferences. The preferences are read into a structure that resides as a local

MemPtrSetOwner

2003-01-27 Thread Jeff Wheeler
Keith Rollin wrote: First, when you use SysUIAppSwitch (which AppCallWithCommand calls), you should pass a self-contained chunk of memory to the other app, not one with embedded pointers. So, for this struct, it would be better to just define it as a chunk of memory with two

RE: MemPtrSetOwner

2003-01-27 Thread Jeff Wheeler
The problem is that the inner block is leaked. The OS doesn't know anything about it. Cool. So, it's not really a problem at all (with OS5 or anything else); the two apps that are communicating with each other via the allocated memory just need to understand how to delete memory to avoid

RE: MemPtrSetOwner

2003-01-27 Thread Jeff Wheeler
At the moment, it's not a problem, or can be solved as you suggest. In the future, I think it will be a problem. In future OSes, the separation between applications may be more strict, such that the OS may be required to copy the data pointed to in the call to SysUIAppSwitch from one

RE: How tall is a list

2003-01-24 Thread Jeff Wheeler
Ed Greenberg wrote: The question was in items. The solution for me, as suggested by Aaron Ardiri was to divide the height of the list in pixels by the font height. Why not just call LstGetVisibleItems() to find out how many items are visible in the list? This seems more reliable than

RE: How tall is a list

2003-01-24 Thread Jeff Wheeler
This doesn't take into account the list which has less entries than it's height can hold. The problem is solved though. Of course, there's something to be said for a solution that already works! For others that may not have it done, though, and are asking the same question you asked, the

RE: class constructor

2003-01-22 Thread Jeff Wheeler
Chris Apers wrote: class firstClass { public: firstClass(a, b); .. (vars declaration) ( functions declaration) } class nextClass : public firstClass { public: nextClass(a, b); . (vars declaration) ( functions declaration) } and i want to

RE: Clie Soft Silkscreen Advice Solicited

2003-01-21 Thread Jeff Wheeler
A few weeks ago I sought advice on the strategy for handling resizing when the virtual graffiti was resized (i.e. shown or hidden). My specific question related to determining how to redraw/reposition after an Alert or any OS-related popup (such as the Find dialog) has been displayed. I didn't

RE: Tabbed windows

2003-01-16 Thread Jeff Wheeler
Matthew Bevan wrote: Another alternative (what I'm using in an upcoming application) is to have a series of buttons w/ square borders along the top of the dialog... the current tab button being drawn selected. Is this a regular button resource? How does one cause it to be drawn

RE: Codewarrior v9 and #ifdef DEBUG

2003-01-14 Thread Jeff Wheeler
Bill Andreozzi wrote: I've searched all the help docs as well as all the IDE settings, it's not obvious (to me) how to turn this preprocessor definition on for my debug builds? There's probably a smarter way, but this is what I do in one of my common headers: #if __option(a6frames) #define

RE: Tungsten Navigator Buttons

2003-01-13 Thread Jeff Wheeler
Paul Tidwell wrote: but I cannot find documentation on how to process the Tungsten navigator buttons. I had the same problem until somewhere here helped me out. You need the 5-Way Navigator SDK. As I recall, this SDK is not part of the public tools available for general download. Instead,

RE: Newbie: Whats up with PalmOS Databases

2003-01-11 Thread Jeff Wheeler
Joe Biron wrote: I was a bit disappointed with the PalmOS Companion documents. No big-picture overview. Can anyone recommend a good resource? - Palm OS Programming for Dummies (Liz O'Hara, John Schettino) It's out of print and was written before OS4. However, I found it to be a great

RE: Distinguishing Pen UpEvents.

2003-01-07 Thread Jeff Wheeler
Matt Disher wrote: I'm suffering a small brain fart. I have a game that works off of PenEvents, pend up events to be exact, figuring out the location of the tap and acting on it, etc. My problem lies with the menus, when a menu item is chosen, I act on the menuEvent and return true, but I

RE: Memory Stick and databases

2003-01-02 Thread Jeff Wheeler
Alexandre Barreto asked: How can i open a database in a memory stick? I'm not sure about all Clie's, but the newer ones have VFS support in the OS. You'll use VFS to access files and databases on a memory stick. Look at VFSFileOpen() and associated functions. (Older Sony devices may have a

RE: About Events for some standard buttons on Palm handheld?

2002-12-31 Thread Jeff Wheeler
Tapping a button on a form causes a ctlSelectEvent. The ID of the control is included in the event parameters. case ctlSelectEvent: { // Indicates that a control on the page has been selected. // This could be a button press or some other action. //

Clie Soft Silkscreen Advice Solicited

2002-12-31 Thread Jeff Wheeler
I'm working on adding support for the tall screens on some of the Sony devices. These are the ones with the software silkscreen / graffiti area. I am capturing the sysNotifyDisplayChangeEvent, verifying that my app is the running app, and then issuing a frmUpdateEvent upon which I reposition

RE: About Events for some standard buttons on Palm handheld?

2002-12-31 Thread Jeff Wheeler
://makeashorterlink.com/?L25634CE2 - Original Message - From: Jeff Wheeler [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Cc: 'Su Duy Trinh' [EMAIL PROTECTED] Sent: Tuesday, December 31, 2002 9:05 AM Subject: RE: About Events for some standard buttons on Palm handheld? Tapping a button

Question re 320 x 480 screens

2002-12-30 Thread Jeff Wheeler
What is the general strategy for repositioning controls on a form when the Sony software silkscreen area is shown or hidden? I am using the following method, but am not having success. I'm using CW9 and the Sony 5.0 SDK (which is not the version included with CW9) and testing on an NX60. In

RE: Question re 320 x 480 screens

2002-12-30 Thread Jeff Wheeler
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Jeff Wheeler Sent: Monday, December 30, 2002 3:57 PM To: Palm Developer Forum Subject: Question re 320 x 480 screens What is the general strategy for repositioning controls on a form when the Sony software silkscreen area is shown

RE: a conceptual question re penDownEvent/penUpEvent

2002-12-27 Thread Jeff Wheeler
Is this conceptually possible to do? I don't know, but here's how I handle something similar. On a penDownEvent, I check the point against the bounds that I'm interested in. If it's in bounds, start a loop and poll the pen status until the pen is up again. I also track the position, and if it

catching exceptions from operator new

2002-12-15 Thread Jeff Wheeler
CodeWarrior 8 Palm OS 5 SDK I'm working on an app that is written largely in C. I use MemPtrNew() and MemHandleNew() and religiously check the return value. The project uses some shared code, from another developer, that is written in C++. So, in the project settings, I have turned on the C++

WinSetCoordinateSystem, WinScaleRectangle

2002-12-10 Thread Jeff Wheeler
I'm trying to do something very simple, but haven't figured out the key to make it work. What I want to do is shift an arbitrary rectangular area on the screen to the right by exactly one pixel, regardless of screen density. I have code that works on the low resolution devices, but on the

RE: WinSetCoordinateSystem, WinScaleRectangle

2002-12-10 Thread Jeff Wheeler
Arg. Never mind. The code does work. I had had been using FrmAlert() after WinSetCoordinateSystem() in order to monitor the results, and FrmAlert() must reset the screen mode. Once I moved it out of the block, all was well. Sorry for the extra noise. Jeff -- For information on using the

RE: WinSetCoordinateSystem, WinScaleRectangle

2002-12-10 Thread Jeff Wheeler
Mark Wildon wrote: Have you looked at the Palm Reporter? No, but I will! This particular test was on an actual device, though, with a release build. Jeff -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

RE: pop-up list

2002-12-09 Thread Jeff Wheeler
Christy wrote: Here is my code for popSelect event. Could you please help me to identify where the problem is: [snippit removed] Don't change the string returned by CtlGetLabel(). In other words, don't do this: Char * lblP; lblP = (Char*)CtlGetLabel(ctlP); StrCopy(lblP,

RE: Detecting hardware button press on Tungsten

2002-12-04 Thread Jeff Wheeler
Amit Solanki wrote: I also want that SDK (5-way navigator), but I could not find it. Can please tell me the exact link? 1. http://www.palmsource.com/developers/ 2. Select Login from the Developer Program menu to login to the resource pavilion. You'll need to be a member of Palm's developer

Detecting hardware button press on Tungsten

2002-12-03 Thread Jeff Wheeler
I'm having a hard time finding documentation on how to detect button presses from the five way navigator on the Tungsten devices. Up and Down give pageUpChr and pageDownChr, but left, right and the center button all give a keyDownEvent character of 0x0503. What is the appropriate way to detect a

App Icon is shifted down in OS 2

2001-11-30 Thread Jeff Wheeler
I've noticed that when using the OS 2 ROM image (palmos20-en-pro-dbg) in POSE, my app's icon in the launcher is shifted down by about 4-6 pixels. That is, it isn't centered; the bottom part of my app's icon is chopped off by my application's name. I'm using an application icon family so that I

Ellipses on menu selections

2001-11-28 Thread Jeff Wheeler
I'm trying to figure out the standard convention for when to add the ... to the end of a menu item. I didn't find the answer in the Programmer's Companion nor the archives. Nor have I discerned the pattern in the built-in apps. Some apps appear to add ellipses to the menu when it will result

Re: Application Crash

2001-09-25 Thread Jeff Wheeler
How do i allocate space for the variable 'title'... static Char title[32];// or some logical size Do i have to initialize the variable titile... Copy the title that you want displayed into this variable. StrCopy(title, MyTitle); HTH, Jeff -- For information on using the

Re: Alarms, Alarms and Alarms

2001-09-25 Thread Jeff Wheeler
Will I been working on this all weekend and I cant find anything I have a project in CW7 that does nothing but sets a alarm in 10 sec. Will in 10 secs my palm blows up and I dont know why. When an alarm goes off, there are two different events that are sent to an application. Have you added

Re: Favorite Palm Programming book: looking for an intermediate book for CW

2001-09-17 Thread Jeff Wheeler
What is your favorite palm programming book? I concur with the recommendation for Palm OS Programming Bible by Lonnon Foster. Advanced Palm Programming by Steve Mann (who frequents this list), is also good, if you happen to be doing one of the advanced things that he discusses in his book.

Re: Field Focus Question

2001-08-23 Thread Jeff Wheeler
Rob Cochran [EMAIL PROTECTED] wrote in message news:60562@palm-dev-forum... Is there an event that occurs when a Field loses focus? I would like to be able to update some other controls after a user enters a 2-digit number into a field. Not that I know of. The Palm OS SDK Reference contains

Re: How can I get the FieldID from a FieldPtr?

2001-08-20 Thread Jeff Wheeler
Carl Dippel [EMAIL PROTECTED] wrote in message news:60187@palm-dev-forum... How can I get the FieldID from a FieldPtr? -Carl FieldType * pField = whatever Uint16 FieldID = pField-id; I haven't found an accessor function for this. If you happen to know the index of the field, you can use

What was before TxtCharIsSpace() ?

2001-08-20 Thread Jeff Wheeler
I'm working on something that loops over characters in a string, and need functions such as _isdigit and _isspace. The Txt module supplies TxtCharIsSpace(WChar ch), etc., but this isn't available on the older devices. The Glue library supplies equivalent functions that support 1 byte and 2 byte

Re: Turning on the lights

2001-08-16 Thread Jeff Wheeler
switch (eventP-eType) { case ctlSelectEvent: UInt16 ctrlID = eventP-data.ctlSelect.controlID; ControlPtr ctrlPtr= eventP-data.ctlSelect.pControl; if (ctrlID == MainAboutButton) { snip } if (ctrlID == MainClearButton) { snip } case menuEvent: return

Re: Emulator and Skins

2001-08-13 Thread Jeff Wheeler
Well, just to beat the other end of the dead horse, I'd still like to know how the confusion arose. The standard skins have been called things like Standard-English and Standard- Japanese for a long time. So long that I don't even remember if they ever had names like Palm III or Palm V.

Re: Emulator and Skins

2001-08-09 Thread Jeff Wheeler
However, I don't see the skins options as I did with POSE 3.0. As an example: ROM: Palm OS 3.5-en-colordbg.rom Device: Palm IIIc Skin: Generic and Standard-English RAM: 8192K This all looks correct to me. What do you think is wrong? What's wrong is that I don't get any skin selections

Re: Emulator and Skins

2001-08-09 Thread Jeff Wheeler
Have you tried the Standard-English skin? Surely the standard skin for a IIIc would look like a IIIc, right? Brian Mathis Uh red faced, yep, you're right. *Sigh*. Sorry for the wild-goose chase. Jeff -- For information on using the Palm Developer Forums, or to unsubscribe, please see

Re: The archives work! But...

2001-08-08 Thread Jeff Wheeler
If you mean that there should be an article in the KB that describes using the archives, that might be a good idea (although the archives are described on the page where you find out about the forums). I was thinking more about links to the archives on the KB search page. Didn't find what you

Re: Emulator and Skins

2001-08-08 Thread Jeff Wheeler
I've not been able to get skins to work since installing POSE 3.1. Since I don't need them (generic works fine), I just shrugged it off. But, since the topic is open... here's the details. * I'm running Windows 98 * POSE is at C:\Program Files\Metrowerks\CodeWarrior for Palm OS Platform

Re: pack unpack

2001-08-08 Thread Jeff Wheeler
can neone give me the exact reasons why packing and unpacking are used from the earlier mails i got ideas about the usefullness of packing, but can neone emphasize on unpacking also ? This reminds me of an old joke about a certain compression algorithm named DEL. Compression was great

Re: PDB example?

2001-08-07 Thread Jeff Wheeler
can anyone referr me to a good example of creating and using a database (pdb)? Try a book on Palm programming. I found both of these helpful. Palm OS Programming For Dummies O'Hara and Schettino ISBN 0-7645-0563-7 Palm OS Programming Bible Lonnon Foster ISBN 0764546767 Some recent posts

Re: Newbie learning Palm OS

2001-08-07 Thread Jeff Wheeler
Todd Cary [EMAIL PROTECTED] wrote: I am learning the Palm OS via Pocket Studio, the Pascal version of the Palm development environment. So, far everything is working well. I have a Wine list DB with the appropriate editing form. However, I now want to add the features that make the Palm

The archives work! But...

2001-08-07 Thread Jeff Wheeler
I needed a way to detect when the text in a field changed (since fldChangedEvent doesn't really do that, despite its name!), and quickly found some ideas by searching the archives for fldChangedEvent. (For those interested who still don't know, the archives can be found and searched at

Re: MultiSegment

2001-08-01 Thread Jeff Wheeler
Nesselhauf, John [EMAIL PROTECTED] wrote: How do you convert a project to Multisegment? I found this article, titled Segmenting an Application, to be very helpful: http://oasis.palm.com/dev/kb/papers/1469.cfm I use CW 7, and changing from a single segment to a multi-segment was quite simple.

Re: MultiSegment

2001-08-01 Thread Jeff Wheeler
Jeff Wheeler: also found that I had to put my .rsrc in the first segment in order to avoid runtime problems. This might be unique to my application, or it might be a general requirement. Scott Johnson: What problems? Sounds like something else is going on, since resources and code

Re: C++ and GNU vs. CW

2001-07-31 Thread Jeff Wheeler
Does anyone have any recommendations GNU vs. CW for C++ development? No. (Just kidding.) I use CW, but haven't tried GNU. Also, what are the trade offs going form C to C++ in terms of runtime proformance and code size? Many years ago, I went to a C++ presentation by Bjarne Stroustrup.

Re: Need global data advice

2001-07-27 Thread Jeff Wheeler
For constant data, you can have it stored easliy in the code segment if you're using CodeWarrior as your compiler. You need to add the line #pragma pcrelconstdata on ... Woo hoo, this is what I'm looking for, I think. I ran across this article,

Need global data advice

2001-07-26 Thread Jeff Wheeler
I'm needing to work on a feature that needs about 3K of constant global data, and needs to work on devices back to OS 2.0 1Meg devices. Further, I'd like to build a .lib with this feature so that I can link it into other programs. The Palm OS Programmer's Companion has Table 6.1 on page 158.

Re: Handling Multiple databases

2001-07-25 Thread Jeff Wheeler
Vang, Vang (V.) [EMAIL PROTECTED] wrote in message news:57753@palm-dev-forum... I am creating a file manager and here is the problem I am facing. Can my application handle multiple databases with same creatorID and Type? Yes. It sounds like you want to enumerate the databases using

Re: trapping frmCloseEvent cause memory leak

2001-07-18 Thread Jeff Wheeler
that trapping frmCloseEvent and not letting the OS handle it, causes a memory leak. Is anyone familiar with this? Yes. Do your own clean-up, then return false to allow the OS to perform its cleanup. The SDK says: If an application doesn't intercept this event, the routine FrmHandleEvent

Re: StrCopy bug?

2001-07-11 Thread Jeff Wheeler
str[i] = (char*)MemPtrNew(StrLen(ptr-qual)); Here's one possible problem. I've observed that StrLen() does not count the byte required for the terminating NULL. So, if your string is test then StrLen() returns 4, not 5. StrCopy() will copy the terminating NULL, so the resulting string needs

Re: Memory Management question

2001-07-11 Thread Jeff Wheeler
char ** memptr; memptr = (char**)MemPtrNew(sizeof(char*) * items); memptr[n] = (char *)MemPtrNew(StrLen(Some String) + 1); MemPtrFree(memptr); Does this statement code free up all the memory that was allocated for the array of strings? Yes, it frees the memory allocated for the array of

Right justified button text

2001-07-11 Thread Jeff Wheeler
Is there an easy way to make the text of a button be right-justified, or is the best way to do this via a gadget? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: TxtCharIsDigit()

2001-07-09 Thread Jeff Wheeler
Can somebody tell me why I'm getting this error: undefined identifier '_DI' ((TxtCharAttr(text[i])_DI) !=0) when I compile code containing a line: (TxtCharIsDigit(text[i]) Becuase the symbol _DI isn't defined. When this happens, just include the header that defines _DI before including

Re: Whoever thought up c++ should be shot!!!

2001-06-22 Thread Jeff Wheeler
How do you define the fields in a database? Do you use records? A Palm database doesn't have fields. A record in a Palm database is simply a binary stream of data of some known size. You read the data and decide what it means. Typically, the data is read into a structure (or class), but

Re: OT: m500 - Win NT 4 and USB

2001-06-22 Thread Jeff Wheeler
We also make our own hardware in a Palm V modem casing, this now needs changing. Our product is an industrial product and we need to know when to make the Vx to m500 transition. This is not as simple as it looks, as there are all sorts of availability problems, such as getting the surface

Re: Database Fields Don't mix

2001-06-22 Thread Jeff Wheeler
DmWrite(newRecordPtr,0,newRecord,sizeof(newRecord)); You're saving pointers to characters instead of character strings in your database. Try writing the strings themselves. Obviously, as soon as you unlock the text handle for the field, the pointer to that data isn't valid anymore. Once you

Re: Please answer my two error questions.

2001-06-21 Thread Jeff Wheeler
These are actually all VERY easy to find and fix. All you need to do is take a moment and look at the what the error message says. Read the error message, look at the function declaration, and compare that to how you are using it. For example: Error: illegal implicit conversion from

Re: One more error! Fatal Exception.

2001-06-21 Thread Jeff Wheeler
So what am I doing wrong here? You're apparently not using the debugger to find out which function call is crashing. Once you know that, you'll have a good hint about what you can do to fix it. Jeff -- For information on using the Palm Developer Forums, or to unsubscribe, please see

Re: OT: m500 - Win NT 4 and USB

2001-06-21 Thread Jeff Wheeler
... if I buy an m500, I will have to buy a seperate serial cradle to use it with NT 4. Surely this is the biggest mistake Palm has ever made, given that NT 4 is currently the standard OS in buisness. I think you exaggerate the problem, for the following reasons: 1. No one likes NT 4 anyway g,

Re: Why won't some of my buttons work?

2001-06-15 Thread Jeff Wheeler
No, I have a case in front of the MainUpdateOkButton. Yes, you do have a case later in your switch, but look again and you'll see what DeAnna means. Pay particular attention to the top of your switch. switch (eventP-data.ctlSelect.controlID) {

Re: Better algorythm for drawing?

2001-06-15 Thread Jeff Wheeler
... how do I make a longer thick line? Thanks! Well, I'm assuming you've read the SDK and there isn't a function that does this. (I don't know if there is or not.) So, let's assume that you have read the available documentation and searched the archives and knowledge base, and there isn't

Re: Why won't some of my buttons work?

2001-06-15 Thread Jeff Wheeler
Ok, I got rid of the if statement and the case but my AddNewSaveButton still doesn't FrmAlert(SaveAlert); Instead, it takes the role of the MainAddNewButton and goes to a new form. Here's something interesting: case AddNewSaveButton: ... case

Re: Recipe Code (Was: Hey! How do you add options to a pop up trigger?)

2001-06-15 Thread Jeff Wheeler
(I will happily consider requests...) -David Fedor I'd find it useful to have these published in a pdf file in some sort of organized (i.e. book) format. Maybe I'm old fashionned, but I like being able to refer to an open book while I'm working. Thanks for your consideration! Jeff --

Re: How do you make a list id for a popup trigger?

2001-06-14 Thread Jeff Wheeler
In the Code Warrior Constructor, how do you make a List Id for the pop up trigger. Thanks! Add a list to your form. Uncheck the useable box. Use that list ID with your trigger. HTH Jeff -- For information on using the Palm Developer Forums, or to unsubscribe, please see

Re: Hey! How do you add options to a pop up trigger?

2001-06-14 Thread Jeff Wheeler
I'm in the process of writing some recipe-style sample code for situations like this, and happen to have already done one on popup lists. David, where do you expect this recipe-style sample code to be available when it has been completed and checked? TIA, Jeff -- For information on using

Re: Using Categories's Functions

2001-06-12 Thread Jeff Wheeler
I'm developing an application that using categories implementation and I am facing some problems. Please help me. The problems are as below: 1. How to initialize the categories' list? So that, the 'Unfiled' is always at the List. Use CategoryInitialize() to initialize your list of

Re: Memory leaks

2001-06-11 Thread Jeff Wheeler
I get memory leak errors even when I have reduced the code down to a small stub. I have several global data structures declared using 'static'. Does any one know if global data gets moved around by the Palm OS. I get the memory leak errors when I enter and immediately exit the application...

Re: Doubt in integration of 2 applications

2001-06-11 Thread Jeff Wheeler
card no (Specs says it should be 0) db id, How to get the value of the same, They say it is ID of the new application. I wish to know is it the creator id that we specify in codewarrior or something else. No, dbID is not the creator ID. Use DmGetNextDatabaseByTypeCreator() to get the

  1   2   >