TxtCharIsDigit problem

2000-05-27 Thread Andy Black
using a 2.0 rom it gives me an error stating that PalmOS routine #A2AB (IntlDispatch) does not exist in this version of the PalmOS. I am using SDK 3.5 and thought that it would be OK for OS 2.0 and higher. Any help/info is appreciated. Thanks, Andy -- Andy Black [EMAIL PROTECTED] Unix is user

Re: Newbie: Introduction to Palm Programming

2000-05-28 Thread Andy Black
ample code. I also got the book "Palm Programming: The Developer's Guide" by Neil Rhodes and Julie McKeehan. O'Reilly & Assoc. Inc. 1999. I think it is a pretty good book and helped me quite a bit. Hope this helps, Andy -- Andy Black [EMAIL PROTECTED] Unix is user fr

That dang FldInsert()

2000-06-14 Thread Andy Black
Hello All, I am working on a program and I want to have the user be able to enter numbers into an editable text field using an onscreen keyboard or using graffiti. The graffiti part works just fine but I cann't get my keyboard to work. Code is as follows: //from mainfrom event loop

Re: That dang FldInsert()

2000-06-15 Thread Andy Black
Thanks for the replies! I like your way of handling it much better. Never thought of doing it that way. Thanks again, Andy -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Enqueuing virtual keycodes

2000-06-25 Thread Andy Black
to handle these (chrDelete, etc...) differently than the rest of the keycodes? Thanks, Andy -- Andy Black [EMAIL PROTECTED] Unix is user friendly. It is just picky about who its friends are. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.

Palm Simulator App in CodeWarrior

2000-12-12 Thread Andy Black
es on MathLib. How do I get MathLib to compile into the simulator app? Thanks, Andy -- Andy Black [EMAIL PROTECTED] http://www.SpazTheCat.com Unix is user friendly. It is just picky about who its friends are. -- For information on using the Palm Developer Forums, or to unsubs

Re: Palm Simulator App in CodeWarrior

2000-12-13 Thread Andy Black
t; do I get MathLib to compile into the simulator app? > > Have you checked whether MathLib is built in to the ROM you are testing? > > > -- Andy Black [EMAIL PROTECTED] http://www.SpazTheCat.com Unix is user friendly. It is just picky about who its friends are. -- F

Glue functions not working in SDK 4.0?

2001-06-27 Thread Andy Black
Hello All, Has something broken with the PalmOS Glue functions in the 4.0 SDK? I am using the TxtGlueCharIsDigit macro and I am getting the following error in CodeWarrior: Error : undefined identifier '_DI' IVRateCalc.c line 398 ((TxtGlueCharAttr(strP [srcP]) & _DI) != 0) Well, I replaced t

Text Glue macros in SDK 4.0 again...

2001-06-28 Thread Andy Black
Hello, Part of my problem is fixed (thank you Ben), but I am still getting a linking error from TxtGlueCharIsDigit. Error as follows: Link Error : Spaz:Users:andy:Documents:IVRate Calc:Src:IVRateCalc.c: 'TxtGlueCharAttr' referenced from 'StringToDouble' is undefined. I have included the CharA

Re: Text Glue macros in SDK 4.0 again...

2001-06-28 Thread Andy Black
Doooh! That would help wouldn't it. Totally forgot about that. Thanks In article <54806@palm-dev-forum>, "Scott Johnson (Bellevue)" <[EMAIL PROTECTED]> wrote: > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Link Error : Spaz:Users:andy:Documents:IVRate Calc:Src:IVRateCalc.c: > > '

Menus item always highlighted

2001-07-03 Thread Andy Black
Hello All, I have a little problem with a program I am writing. Any menu selection I make from my drop down menu remains highlighted once it is selected. So, the next time you drop that menu down, that item is highlighted. I had this problem before and I can't for the life of me remember how I fi

Re: Menus item always highlighted

2001-07-04 Thread Andy Black
Thanks for the reply. I guess I never really noticed that behavior in other programs before. I thought it was just my bad code or something. It was driving me nuts. Thanks! In article <55372@palm-dev-forum>, "Scott Johnson (Bellevue)" <[EMAIL PROTECTED]> wrote: > > From: [EMAIL PROTECTED] [mail

Adding event to event queue & low memory

2001-07-04 Thread Andy Black
Hello again, I am trying to add an event to the event queue (I decided it was easier to do than rewrite the code in that part of my main form's event loop) and I keep getting an erro is POSE that my program is trying to access low memory. Is there a better way to add events? Code as follows: Ev

Re: Adding event to event queue & low memory

2001-07-05 Thread Andy Black
The original poster hit the nail on the head. I set the pControl value and it works just fine now. Thanks! Greatly appreciated! Andy In article <55437@palm-dev-forum>, Aaron Ardiri <[EMAIL PROTECTED]> wrote: > > > EventType myEvent; > > > > > > MemSet (&myEvent, sizeof(EventType)

Those darned databases

2001-07-24 Thread Andy Black
Hello All, I must be having a dumba@! attack this week but I just can't get this code to work. I keep getting a "Bad DBRef" error from debug roms in POSE. What the heck am I missing here?? TIA, Andy Code as follows: static DmOpenRef gDataBase; #define kDBName "Drugs-IVRT" #

Re: Those darned databases

2001-07-25 Thread Andy Black
>> > > If InitDrugs is defined in another file then the statically scoped variable > will be invisible. Static variables/procedures are only visible in their own > files. > > Peter > It is defined in the same source code file. But that is not where it is failing. I can't get the database to

Too the PRC tools users out there

2001-08-27 Thread Andy Black
Hello All, I was moving from CodeWarrior to PRC tools and was wondering what people were doing to visually layout their programs. I don't mind writing the resource files but it takes me forever to get the interface the way I want it. It would be nice if there was something out there similar to C

Re: Too the PRC tools users out there

2001-08-27 Thread Andy Black
Thanks for the reply. I mean laying out forms. I know I rambled a bit in my original post. I'm going from CW for the MacOS to PRC tools for MacOS X. Andy in article 61000@palm-dev-forum, David A. Desrosiers at [EMAIL PROTECTED] wrote on 8/27/01 7:13 PM: > > >> I was moving from CodeWarrior t

Weird math problem

2001-09-02 Thread Andy Black
Hello All, I am having a little problem that I just can't figure out. I have a program that pulls some values from several text fields and then does some calculations. One calculation is converting pounds to kilograms. I perform this conversion with the following code: double weight; //the value

Database woes

2000-07-19 Thread Andy Black
ew record. PackDrug resizes recordHdl as needed then writes everything to the database. PackDrug (&drug, recordHdl); DmReleaseRecord(gDataBase, index, true); } } -- Andy Black [EMAIL PROTECTED] Unix is user friendly. It is just picky about who its friends are. -- F

Re: Database woes

2000-07-21 Thread Andy Black
to Bookmark. > > > -- Andy Black [EMAIL PROTECTED] Unix is user friendly. It is just picky about who its friends are. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Database not closing????

2000-07-26 Thread Andy Black
abase (gDataBase) then I call FrmCloseAllForms (). Am I doing this all wrong? Oh, another strange thing about it is, this only happens in POSE with the 2.0 ROM. The 3.5 ROM doesn't give me this error. Any thoughts? Thanks, Andy -- Andy Black [EMAIL PROTECTED] Unix is user friendly. It is

Re: Database not closing????

2000-07-27 Thread Andy Black
Thanks! in article 18911@palm-dev-forum, Brian Mathis at [EMAIL PROTECTED] wrote on 7/27/00 4:58 AM: > > Andy Black wrote: >> Hello All, >> I have a strange/annoying little problem. When I install my app and run it, >> it creates a data base. However, whenever I exit m

Newbie list Problems

2000-07-30 Thread Andy Black
MemHandleUnlock (recordHdl); if (foundIt) { break; } } return recordNum; } Any help/input is greatly appreciated. Thanks, Andy -- Andy Black [EMAIL PROTECTED] Unix is user friendly. It is just picky about who its friends are. -- Fo

POSE and CW Pro on a Mac

2000-07-31 Thread Andy Black
Hello, I am using the CW Pro for Macintosh with PalmOS Development kit 3.5. Can I use POSE with CW Pro for debugging? I can't seem to get CW to make a connection to POSE. Any tips are apprectiated. TIA, -- Andy Black [EMAIL PROTECTED] Unix is user friendly. It is just picky about wh

Re: POSE and CW Pro on a Mac

2000-08-01 Thread Andy Black
, New > Style > > Select Launch Emulator from the Palm menu. POSE should launch. Tap > the Compile/Link/Debug button on the project window (the one with the > right arrow). Your project should compile, link, download, and start. > > Regards, > Steve Mann -- Andy Black [EMA

Re: Newbie list Problems

2000-08-01 Thread Andy Black
y); > > What if recordHdl is NULL? > > packedDrug = MemHandleLock (recordHdl); > > What if packedDrug is NULL? > > Hope that helps point you in the right direction. > > Regards, > Steve Mann -- Andy Black [EMAIL PROTECTED] Unix is user friendly. It is just picky about who its friends are. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

ARRRRGGGGGHHHHHH!!!!!!!!

2000-09-11 Thread Andy Black
ights. It will only become un-highlighted when I select another item in the Options Menu. Any thoughts? Thanks! Andy -- Andy Black [EMAIL PROTECTED] Unix is user friendly. It is just picky about who its friends are. -- For information on using the Palm Developer Forums, or to uns

Higher math functions

2000-09-25 Thread Andy Black
1 maybe 2 function calls. Thanks, Andy - Andy Blackhttp://www.SpazTheCat.com 25A5 DB07 3C9E B77E F3D4 205B 3E12 DD2E -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: Higher math functions

2000-09-25 Thread Andy Black
ECTED] wrote on 9/25/00 8:37 AM: > > write you own function ! > >> -Original Message- >> From: Andy Black [SMTP:[EMAIL PROTECTED]] >> Sent: 25 September 2000 13:26 >> To: Palm Developer Forum >> Subject: Higher math functions >> >> Hello a

Handling null pointers

2000-10-13 Thread Andy Black
ld (a null pointer) I want it to just continue on as if nothing every happened. But I can't find a function to make it just continue on its merry way. How do you handle a case like this? Thanks! Andy -- Andy Black [EMAIL PROTECTED] http://www.SpazTheCat.com Unix is user frien

Please critique my code

2000-10-21 Thread Andy Black
eciated. TIA, Andy -- Andy Black [EMAIL PROTECTED] http://www.SpazTheCat.com Unix is user friendly. It is just picky about who its friends are. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: Please critique my code

2000-10-21 Thread Andy Black
Does is make a difference if database.stringP is declared const Char*?? Thanks, Andy in article 27664@palm-dev-forum, Chris Tutty at [EMAIL PROTECTED] wrote on 10/21/00 11:23 AM: > > "Andy Black" <[EMAIL PROTECTED]> wrote >> I am having some problems getting te

Re: Please critique my code

2000-10-21 Thread Andy Black
ant it.. you do something > like this: > > ... > > Char *p = (Char *)MemHandleLock(handle); > ... use p > MemPtrUnlock(p); > ... > > the "handle" is what you should have stored somewhere. lock and unlock > it as you use it - then you wont have any problems. &g

Anyone still making programs compatable with OS 2.0?

2000-11-15 Thread Andy Black
my program also. What does everyone think? Is it worth worrying about OS 2.0 compatability?? Thanks, Andy -- Andy Black [EMAIL PROTECTED] http://www.SpazTheCat.com Unix is user friendly. It is just picky about who its friends are. -- For information on using the Palm

What am I doing wrong here!??

2000-11-26 Thread Andy Black
Hello All, I have a program that obtains numerical data from editable text fields and then does some calculations on them. If the fields are empty and I press "OK" to get the data from the form and then process it, I get the following error: "RxKinetics 1.0 has just read directly from memory mana

Re: What am I doing wrong here!??

2000-11-27 Thread Andy Black
er is not enough to > guarantee success. You have to check to make sure the length of the > text is > 0 before calling StrCopy. At least that's solved the > problem for me. > > It might be different if you start with FldGetTextHandle and then > lock it to get the pointer

Dumb list question

2002-04-10 Thread Andy Black
Hello, I have several static lists (defined in Constructor) and they are long enough that they go off of the screen. However, there are no scroll arrows being drawn in the top or bottom of the list. I thought the system handled these for you automagically? Do I need to handle drawing and implemen

Re: Dumb list question

2002-04-11 Thread Andy Black
I have my "visible" items in Constructor set to zero. Is that what you are talking about? On 4/10/02 10:17 PM, in article 83464@palm-dev-forum, "Matt Disher (TiBook)" <[EMAIL PROTECTED]> wrote: > > Just don't show as many items... > > If you have a list of 70 items but only have '5' visible th

Re: Dumb list question

2002-04-11 Thread Andy Black
On 4/11/02 12:49 AM, in article 83472@palm-dev-forum, "Steve Mann" <[EMAIL PROTECTED]> wrote: > >> I thought the system handled >> these for you automagically? Do I need to handle drawing and implementing >> those little scroll arrows? > > The system should. Are you defining the lists just usi

Re: Dumb list question

2002-04-11 Thread Andy Black
On 4/11/02 9:28 AM, in article 83494@palm-dev-forum, "Joe" <[EMAIL PROTECTED]> wrote: > > --- Andy Black <[EMAIL PROTECTED]> wrote: >> I have my "visible" items in Constructor set to zero. Is >> that what you are talking about? > > Try se

Hash table?

2002-05-02 Thread Andy Black
Hi All, I had a quick question. I want to write a program that does lookups against a rather large table. I need to find the value of the intersection of two items in the table. The data in the table will not be user editable but I will be updating it from time to time myself. Anyways, what's the

WiFi card documentation

2005-04-13 Thread Andy Black
Hi, Are there any documented APIs for accessing the PalmOne WiFi card? Not the stuff in NetLib. But actual hardware access for things like putting the card into promiscuous mode, etc... Thanks, Andy -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://

Variables not initialized

2004-12-19 Thread Andy Black
Hi, I have kind of a basic C question I guess. I have the following function: static Boolean PreferencesFormHandleEvent(EventPtr eventP) { Boolean handled = false; FormPtr frmP; ControlPtr controlP; ListPtr listP; double dose; Chartext

Re: Variables not initialized

2004-12-20 Thread Andy Black
Nope, they will be in scope for the function you see only. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

RE: Variables not initialized

2004-12-20 Thread Andy Black
The way I have it should be fine in CW. At least, that is how I have all my other Char's and double's defined. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Scroll Arrows don't display in list

2005-01-17 Thread Andy Black
Hi, I have a modal form that has a drop-down list on it and I am having some difficulty with it. The list is static and is defined in the resource in constructor (25 items). The problem is when I select the list, it expands but the scroll arrows are not automatically created at the bottom of th

re: Scroll Arrows don't display in list

2005-01-18 Thread Andy Black
Yeah, Set to zero. I don't want any items to display initially. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Handling large databases

2002-06-23 Thread Andy Black
Hi All, I am starting to write a program and the database will be very large. 3-4 Mb when it is finished. First, can I take my data from Exel and make a .pdb file out of it? Second, most of what the program will do is lookup the value at the intersection of a value along the horizontal axis with

What's up with my table??

2002-12-26 Thread Andy Black
Hi, I'm learning how to use tables in my applications and am having a little problem. Every row that does not contain an entry from my program's database contains a checkbox. I don't have any checkboxes in the table. Is there some initialization I need to be doing to ensure those rows without dat

Packing/unpacking a structure in a database

2003-01-06 Thread Andy Black
Hi, I have a structure that looks like this: typedef CE { UInt32 seconds; Char title[40]; Char code[20] Char credits[5]; Char note[200]; } CE; I want to "pack" my Char's into one long string. How do I handle the UInt32 in the packing function

Table drawing/C question/problem

2003-01-22 Thread Andy Black
Hi, In my program I have a table that I want to draw a note icon in a column if the record from my database has a note entry. However, every entry is drawing the note icon. From what I can tell my code should work. after I unpack the packedCE record into a ceRecord I have the following code:

Re: Table drawing/C question/problem

2003-01-23 Thread Andy Black
Thanks for the reply. I thought about for a while more last night and then it finally dawned on me. There are some things with C I still just don't get immediately. Andy On 1/23/03 4:23, in article 110224@palm-dev-forum, "Sean Charles" <[EMAIL PROTECTED]> wrote: > >> >> if (ceRecord.note != N

Re: What am I doing wrong here!??

2008-05-28 Thread Andy Black
not enough to > guarantee success. You have to check to make sure the length of the > text is > 0 before calling StrCopy. At least that's solved the > problem for me. > > It might be different if you start with FldGetTextHandle and then > lock it to get the pointer, but i

What am I doing wrong here!??

2008-05-28 Thread Andy Black
Hello All, I have a program that obtains numerical data from editable text fields and then does some calculations on them. If the fields are empty and I press "OK" to get the data from the form and then process it, I get the following error: "RxKinetics 1.0 has just read directly from memory manag

Anyone still making programs compatable with OS 2.0?

2008-05-28 Thread Andy Black
my program also. What does everyone think? Is it worth worrying about OS 2.0 compatability?? Thanks, Andy -- Andy Black [EMAIL PROTECTED] http://www.SpazTheCat.com Unix is user friendly. It is just picky about who its friends are. -- For information on using the ACCESS

Re: Please critique my code

2008-05-28 Thread Andy Black
. you do something > like this: > > ... > > Char *p = (Char *)MemHandleLock(handle); > ... use p > MemPtrUnlock(p); > ... > > the "handle" is what you should have stored somewhere. lock and unlock > it as you use it - then you wont have any problems. >

Re: Please critique my code

2008-05-28 Thread Andy Black
Does is make a difference if database.stringP is declared const Char*?? Thanks, Andy in article [EMAIL PROTECTED], Chris Tutty at [EMAIL PROTECTED] wrote on 10/21/00 11:23 AM: > > "Andy Black" <[EMAIL PROTECTED]> wrote >> I am having some problems getting text fro

Please critique my code

2008-05-28 Thread Andy Black
eciated. TIA, Andy -- Andy Black [EMAIL PROTECTED] http://www.SpazTheCat.com Unix is user friendly. It is just picky about who its friends are. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/

Re: Higher math functions

2008-05-28 Thread Andy Black
wrote on 9/25/00 8:37 AM: > > write you own function ! > >> -Original Message- >> From: Andy Black [SMTP:[EMAIL PROTECTED] >> Sent: 25 September 2000 13:26 >> To: Palm Developer Forum >> Subject: Higher math functions >> >> Hello all,

Higher math functions

2008-05-28 Thread Andy Black
maybe 2 function calls. Thanks, Andy - Andy Blackhttp://www.SpazTheCat.com 25A5 DB07 3C9E B77E F3D4 205B 3E12 DD2E -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/

ARRRRGGGGGHHHHHH!!!!!!!!

2008-05-28 Thread Andy Black
ts. It will only become un-highlighted when I select another item in the Options Menu. Any thoughts? Thanks! Andy -- Andy Black [EMAIL PROTECTED] Unix is user friendly. It is just picky about who its friends are. -- For information on using the ACCESS Developer Forums, or to unsubscribe, ple

Handling null pointers

2008-05-28 Thread Andy Black
null pointer) I want it to just continue on as if nothing every happened. But I can't find a function to make it just continue on its merry way. How do you handle a case like this? Thanks! Andy -- Andy Black [EMAIL PROTECTED] http://www.SpazTheCat.com Unix is user frien

Re: Newbie list Problems

2008-05-29 Thread Andy Black
t; > What if recordHdl is NULL? > > packedDrug = MemHandleLock (recordHdl); > > What if packedDrug is NULL? > > Hope that helps point you in the right direction. > > Regards, > Steve Mann -- Andy Black [EMAIL PROTECTED] Unix is user friendly. It is just picky about who its friends are. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/

Re: POSE and CW Pro on a Mac

2008-05-29 Thread Andy Black
> Style > > Select Launch Emulator from the Palm menu. POSE should launch. Tap > the Compile/Link/Debug button on the project window (the one with the > right arrow). Your project should compile, link, download, and start. > > Regards, > Steve Mann -- Andy Black [EMA

POSE and CW Pro on a Mac

2008-05-29 Thread Andy Black
Hello, I am using the CW Pro for Macintosh with PalmOS Development kit 3.5. Can I use POSE with CW Pro for debugging? I can't seem to get CW to make a connection to POSE. Any tips are apprectiated. TIA, -- Andy Black [EMAIL PROTECTED] Unix is user friendly. It is just picky about wh

Newbie list Problems

2008-05-29 Thread Andy Black
MemHandleUnlock (recordHdl); if (foundIt) { break; } } return recordNum; } Any help/input is greatly appreciated. Thanks, Andy -- Andy Black [EMAIL PROTECTED] Unix is user friendly. It is just picky about who its friends are. -- Fo

Re: Database not closing????

2008-05-29 Thread Andy Black
Thanks! in article [EMAIL PROTECTED], Brian Mathis at [EMAIL PROTECTED] wrote on 7/27/00 4:58 AM: > > Andy Black wrote: >> Hello All, >> I have a strange/annoying little problem. When I install my app and run it, >> it creates a data base. However, whenever I exit my

Database not closing????

2008-05-29 Thread Andy Black
abase (gDataBase) then I call FrmCloseAllForms (). Am I doing this all wrong? Oh, another strange thing about it is, this only happens in POSE with the 2.0 ROM. The 3.5 ROM doesn't give me this error. Any thoughts? Thanks, Andy -- Andy Black [EMAIL PROTECTED] Unix is user friendly. It is

Re: Database woes

2008-05-29 Thread Andy Black
to Bookmark. > > > -- Andy Black [EMAIL PROTECTED] Unix is user friendly. It is just picky about who its friends are. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/

Database woes

2008-05-29 Thread Andy Black
d. PackDrug resizes recordHdl as needed then writes everything to the database. PackDrug (&drug, recordHdl); DmReleaseRecord(gDataBase, index, true); } } -- Andy Black [EMAIL PROTECTED] Unix is user friendly. It is just picky about who its friends are. -- F