RE: strange problem with penUpEvent

2000-09-01 Thread McMicken, Steven
If it's a button, you should be responding to a ctlSelectEvent for that button, which is generated by the Palm OS if a penDownEvent and a penUpEvent occur within the bounds of the control. Regards, Steve -Original Message- From: thomas [mailto:[EMAIL PROTECTED]] Sent: Friday, September

RE: weird C error with builtin macro

2000-08-16 Thread McMicken, Steven
Try using OffsetOf, and include PalmTypes.h. Regards, Steve -Original Message- From: Jason Partyka [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 16, 2000 2:54 PM To: Palm Developer Forum Subject: weird C error with builtin macro Hi, I'm trying to compile an application with the

RE: Palm VII dead after debug.

2000-08-16 Thread McMicken, Steven
Possibly, you're trying to access global variables when the Palm receives a sysAppLaunchCmdSystemReset. In your PilotMain, make sure that you have if (launchCode != sysAppLaunchCmdNormal) return 0; as your first statement or, a switch statement that handles the different launch codes. You can

RE: weird C error with builtin macro

2000-08-16 Thread McMicken, Steven
It's in the SDK for the 3.5 OS. The define that they use for the macro in that header is: #define OffsetOf(type, member) ((UInt32) (((type *) 0)-member)). You should download the latest SDK, it's available at: http://www.palmos.com/dev/tech/tools/ Regards, Steve -Original Message-

RE: Chunk Over Locked over on launch, Update

2000-08-15 Thread McMicken, Steven
-Original Message- From: Jason Simpkins [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 15, 2000 1:08 PM To: Palm Developer Forum Subject: Re: Chunk Over Locked over on launch, Update Yes, I miss typed, 10 times. I have gone over my code a billion (yes 1,000,000,000) times and

RE: Palm VII dead after debug.

2000-08-15 Thread McMicken, Steven
Possibly, you're trying to access global variables when the Palm receives a sysAppLaunchCmdSystemReset. In your PilotMain, make sure that you have if (launchCode != sysAppLaunchCmdNormal) return 0; as your first statement or, a switch statement that handles the different launch codes. You can

RE: Chunk Over Locked over on launch, Update

2000-08-15 Thread McMicken, Steven
Jason, Even though you have matched all of your MemHandleLock calls with a corresponding MemHandleUnlock call, your code may not be performing those calls because of the program logic. I haven't seen your code, but that's my guess. Check to make sure that you don't branch, or exit the form,

RE: Opening unknowed databases

2000-08-11 Thread McMicken, Steven
DmGetDatabase will return a local ID. You must pass it the database index. The index can range from 0 to DmNumDatabases -1. Regards, Steve -Original Message- From: Farzin Ashraghi [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 10, 2000 6:30 PM To: Palm Developer Forum Subject:

RE: No MemCopy?

2000-08-11 Thread McMicken, Steven
No, use MemMove instead, it actually works like MemCopy in that it doesn't erase the existing memory. It will also handle overlapping memory (in which case, it will overwrite some of the original memory). Regards, Steve -Original Message- From: Ralph Krausse [mailto:[EMAIL PROTECTED]]

RE: Database problem

2000-08-04 Thread McMicken, Steven
You must lock a database record to get a pointer to it. You need the pointer to write to the database. You lock a record by calling MemHandleLock with the record's handle. Each MemHandleLock call must be balanced by a MemHandleUnlock call. The records must also be released, generally using

RE: Link Error help needed

2000-08-03 Thread McMicken, Steven
Make sure that function 'MainFormHandleEvent' is not declared as static. You should also put a function prototype in the header file (MainForm.h) for the module (MainForm.c) that includes 'MainFormHandleEvent'. You must do this for any function that you call from outside the module (.c file)

RE: detecting if an app is installed

2000-07-27 Thread McMicken, Steven
Try using DmGetNextDatabaseByTypeCreator, using type 'appl' and the creator ID of the application you're searching for. It returns dmErrCantFind if it can't find the database. Regards, Steve -Original Message- From: Charles Rezsonya [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 27,

RE: detecting if an app is installed

2000-07-27 Thread McMicken, Steven
but then i found that it doesn't work with open dbs. anywaz, say i have a string "XX22", and i want to use that as the search pattern,... i would normally pass 'XX22' which is an int. how do i convert the string into the ' ' format? -Original Message----- From: McMicken, Ste

RE: Variables and Constructor

2000-07-25 Thread McMicken, Steven
You could just define the name as a constant in a header file, then you only have to make one change to the code. Barring that, you could step through all of the databases by index using DmGetDatabase, which will give you a local ID. Use the local ID to call DmDatabaseInfo, which will return a

RE: MemSet

2000-07-20 Thread McMicken, Steven
if you want to write ansi compatable code.. do this: #define memset(ptr,size,val) MemSet(ptr,val,size) This is already done for you in the unix_string.h header file. Regards, Steve -- For information on using the Palm Developer Forums, or to unsubscribe, please see

RE: Beginner programming - follow-on question

2000-07-18 Thread McMicken, Steven
It's online at: http://www.palm.com/devzone/docs/pptdg/TableOfContents.htm Neil's working on the second edition, you might want to wait until that comes out to buy it. Regards, Steve -Original Message- From: Richard Anderson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 18, 2000 8:45

RE: How can I stop the user from exiting the app?

2000-07-18 Thread McMicken, Steven
You can "cancel" any event by indicating that you have handled it. The system handles alerts and popups in separate loops outside your program. You must either provide your own handler for these situations, or you can intercept appStopEvents to prevent the user from exiting. Regards, Steve

RE: Problem using va_list,va_arg,va_end

2000-07-18 Thread McMicken, Steven
You should include the header files from the System\Unix include directory. The specific header that you want is "unix_stdarg.h" I've used it successfully in Palm OS 3.1. Regards, Steve -Original Message- From: Anne Srinivas [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 18, 2000 7:29

RE: Debug question

2000-07-18 Thread McMicken, Steven
I think it means that the value is not assigned. I would check the types for precord and hrecord, and make sure that you've allocated memory for hrecord. If that line of code is causing the crash, your problem is probably with the value being assigned to hrecord. That's my guess. Regards,

RE: MemSet

2000-07-18 Thread McMicken, Steven
If you're trying to set memory to zero, and your using the parameter order for 'memset', MemSet will act as though it is not doing anything, i.e., set zero bytes to a value equal to the number of bytes that you wanted to set. Regards, Steve -Original Message- From: DCU [mailto:[EMAIL

RE: The new Newbie to Palm question ...

2000-07-13 Thread McMicken, Steven
I'm pretty sure that you cannot pass a null string as an argument to StrCat. Does your program check for that? Other than that, somewhere in the "some code in between", you are not setting parameters up correctly for the if statements to evaluate to true. Regards, Steve -Original

RE: Databases in Palm.

2000-07-12 Thread McMicken, Steven
dmMaxRecordIndex is not a function. It is defined in DataMgr.h as a constant equal to 0x. It represents the highest record index you can have in a database. Regards, Steve -Original Message- From: Mr. Somnath Kulkarni [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 12, 2000 9:26

RE: Newbie to Palm question about using variable

2000-07-12 Thread McMicken, Steven
Your array should be of size 5 (4 characters plus the end of file character). Also, you cannot assign strings, use StrCopy. Hope that helps! Regards, Steve -Original Message- From: Patrick Ouellet [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 12, 2000 12:48 PM To: Palm Developer

RE: Find user directory

2000-07-12 Thread McMicken, Steven
I've used SyncReadUserId, which returns user information in the CUserIDInfo class. Then PltGetUserDirectory will give you the user's directory. Although I haven't used them, you could also possibly use the User Data APIs, but I think you need a user index, which you might be able to derive from

RE: StrIToA

2000-07-11 Thread McMicken, Steven
11, 2000 2:55 PM To: Palm Developer Forum Subject: Re: StrIToA "McMicken, Steven" wrote: Before using the pointer, you must allocate space for the string using MemPtrNew (LengthOfStringPlusOne) or by setting the pointer equal to a character array name, such as, char str[5]

RE: Constructor for Palm OS Bug

2000-07-11 Thread McMicken, Steven
To: Palm Developer Forum Subject: RE: Constructor for Palm OS Bug Dan, Could you send me your resource file so I can take a look at it? I'll be glad to report it if I can reproduce it. -hkmlt -Original Message- From: OBrien, Dan [mailto:[EMAIL PROTECTED]] Sent: Monday, July 10, 2000 8:0

RE: bits of string

2000-07-08 Thread McMicken, Steven
Should 0xEF actually be 0x7F? Regards, Steve -Original Message- From: Dave Lippincott [mailto:[EMAIL PROTECTED]] Sent: Friday, July 07, 2000 2:16 PM To: Palm Developer Forum Subject: Re: bits of string If you want to clear the bits... char *ClearFirstLastBits(char *TheString) {

RE: Emulator for hotsynch

2000-07-07 Thread McMicken, Steven
See KnowledgeBase article #1674. http://oasis.palm.com/dev/kb/article.cfm?id=1674 It tells you how to HotSync through the COM ports, or using a network HotSync. Regards, Steve -Original Message- From: "Löfving, Christer" [mailto:[EMAIL PROTECTED]] Sent: Friday, July 07, 2000 7:50 AM

RE: StrIToA

2000-07-06 Thread McMicken, Steven
The CharPtr points to a location in memory. When you set it equal to 0, you are pointing at location 0. Before using the pointer, you must allocate space for the string using MemPtrNew (LengthOfStringPlusOne) or by setting the pointer equal to a character array name, such as, char

RE: Field doesn't respond to input

2000-07-05 Thread McMicken, Steven
Look at the events that you are handling in your form handler. It could be that you are returning true on events, thus, not allowing the system to handle those events that the system needs to handle in order for your field to work. I'm sorry if that sounds like circular logic. Without code to

RE: Use the hard keys in an app

2000-06-29 Thread McMicken, Steven
Hard keys are returned as keyDownEvents. Chars.h will give your their values (vchrHard1 through 4). Handle these keyDownEvents in your handler before passing the event to the system. Return true if you don't want the system to handle the event at all. Regards, Steve -Original

RE: Unix ANSIC files to Palm 3.5

2000-06-29 Thread McMicken, Steven
Many of the Unix functions map to PalmOS functions. You can keep many of them, without rewriting code, by including the appropriate unix_.h files. You can find the files in the \Palm OS 3.5 Support\Incs\Core\System\Unix folder/directory. Regards, Steve -Original Message- From:

RE: Using VC++ debug Conduit Question? Please Help

2000-06-28 Thread McMicken, Steven
See KnowledgeBase article #1674. http://oasis.palm.com/dev/kb/article.cfm?id=1674 Regards, Steve -Original Message- From: Samuel Tu [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 28, 2000 1:44 PM To: Palm Developer Forum Subject: Using VC++ debug Conduit Question? Please Help Hi

RE: Using VC++ debug Conduit Question? Please Help

2000-06-28 Thread McMicken, Steven
I setup VC++ and debug the conduit when I press the hotsync button in POSE Sam -Original Message----- From: McMicken, Steven [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 28, 2000 2:04 PM To: 'Palm Developer Forum' Cc: '[EMAIL PROTECTED]' Subject: RE: Using VC++ debug Conduit Question? Please

RE: Linker Error: atoi referenced from QuestionForm() is undefine d? P lease help

2000-06-26 Thread McMicken, Steven
Why don't you use StrAToI? The Palm OS Reference says to "Use this function instead of the standard atoi routine." Regards, Steve -Original Message- From: Samuel Tu [mailto:[EMAIL PROTECTED]] Sent: Monday, June 26, 2000 5:28 PM To: Palm Developer Forum Subject: Linker Error: atoi

RE: DateTimeType vs. DateType

2000-06-21 Thread McMicken, Steven
DateType puts all of the date information in a 16-bit unsigned integer. Also, it only contains year, month, and day. DateTimeType breaks the hour, minute, second, etc. into individual 16-bit integers (more memory, but "easier" to deal with). To see the years since 1904 from a DataType

RE: FrmRemoveObject problem !!

2000-06-19 Thread McMicken, Steven
Must you remove objects? As a workaround, can you hide them with FrmHideObject? Regards, Steve -Original Message- From: Vikas Varshney [mailto:[EMAIL PROTECTED]] Sent: Monday, June 19, 2000 3:42 PM To: Palm Developer Forum Subject: FrmRemoveObject problem !! Hello, I am facing the

RE: Finding free RAM on device

2000-06-15 Thread McMicken, Steven
I use MemHeapFreeBytes to get the free memory and the largest free chunk. I haven't compared the return value from this call with the value from MemCardInfo. Just a thought, hope it helps! Regards, Steve -Original Message- From: Brian Mathis [mailto:[EMAIL PROTECTED]] Sent: Thursday,

RE: FrmRemoveObject !!!

2000-06-15 Thread McMicken, Steven
You might want to use FrmHideObject and FrmShowObject instead. If I read correctly, FrmRemoveObject may return a different pointer to your form, that might be causing your problems. Regards, Steve -Original Message- From: vikas varshney [mailto:[EMAIL PROTECTED]] Sent: Thursday, June

RE: Databases

2000-06-15 Thread McMicken, Steven
You could use *saved* or *unsaved* preferences. Look at the Preference Manager functions, particularly PrefSetAppPreferences. Just pass your structure to this function and the system will save it for you. Regards, Steve -Original Message- From: Ben Hamby [mailto:[EMAIL PROTECTED]]

RE: Strtok() : Help please

2000-06-14 Thread McMicken, Steven
Is Strtok your own function, or are you trying to use the C function? If it is the latter, Strtok is not defined in the Palm API, you will have to use those defined under the String Manager (see the reference manual), or create your own function. If it's your own code, please post the code.

RE: Database size limit

2000-06-09 Thread McMicken, Steven
You can have a large 4MB database. With that many records, though, it will take forever to HotSync. I have 4MB databases that HotSync in ten minutes or so, but they only have about 100 records. You also take an overhead hit. Each record will add eight bytes to your database header, so you're

RE: Will You please help me...

2000-06-08 Thread McMicken, Steven
It sounds like you need to get a book on C programming, Kernighan Ritchie's "The C Programming Language" is probably the best. But briefly, you should put function prototypes of those functions you want to call from another .c module in the header file. Then #include the header file in the

RE: FrmInitForm

2000-06-08 Thread McMicken, Steven
In response to frmLoadEvent, you should set your event handler using FrmSetEventHandler (if you have separate event handlers). In your form event handler, you should put the code below under the case of frmOpenEvent. Regards, Steve -Original Message- From: Ben Hamby [mailto:[EMAIL

RE: DmDeleteDatabase

2000-06-07 Thread McMicken, Steven
The parameters are card number (= 0) and the database ID (type LocalID). DmFindDatabase will return type LocalID. You should really get a copy of the Palm OS Reference, it comes with the SDK (in PDF format) and has information like this. You can also find the parameters in the header files.

RE: Number of Fields

2000-06-07 Thread McMicken, Steven
Do you mean "fields" or "records"? DmNumRecords will return the number of records when fed a DmOpenRef. If you want the number of fields, and it's your database, you should know what structure you are saving in each record and, thus, how to count them. Regards, Steve -Original

RE: Number of Fields

2000-06-07 Thread McMicken, Steven
have to tell it that there are 5 fields? Ex: is there someway i could do something like: Int NumOfFields = FunctionToCountFields(some kind of database ptr); or would I have to just say: Int NumOfFields = 5; "McMicken, Steven" [EMAIL PROTECTED] wrote in message news:13595@palm-dev-forum..

RE: API for version string

2000-06-02 Thread McMicken, Steven
I have used: MemHandle verH = DmGet1Resource( 'tver', appVersionAlternateID); to get the version that I enter in the Constructor. Regards, Steve -Original Message- From: Ralph Krausse [mailto:[EMAIL PROTECTED]] Sent: Friday, June 02, 2000 3:16 PM To: Palm Developer Forum

RE: Time and Date at Hotsync Time

2000-06-01 Thread McMicken, Steven
Try SyncWriteSysDateTime. I haven't tried it, the reference says it does work on HotSync versions prior to 2.2. Hope this helps! Regards, Steve -Original Message- From: Silvia Brunet [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 01, 2000 2:22 PM To: Palm Developer Forum Subject:

RE: Ok, I'm drawing a blank...

2000-05-31 Thread McMicken, Steven
In your event handler for the form, when a ctlSelectEvent occurs, if eventPtr-data.ctlSelect.controlID == foobutton, put an F in field1, if eventPtr-data.ctlSelect.controlID == barbutton, put a B in field1. Use the field functions to enter text in the fields. You should probably make the fields

RE: DmNumRecords w/ DmDeleteRecord

2000-05-31 Thread McMicken, Steven
Look at this thread: http://www.egroups.com/message/palm-dev-forum/27282?start=26334 Regards, Steve -Original Message- From: Sam Trimble [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 31, 2000 11:31 AM To: Palm Developer Forum Subject: DmNumRecords w/ DmDeleteRecord Hey, I'm using

RE: Ok, I'm drawing a blank...

2000-05-31 Thread McMicken, Steven
r whatever it may be). Regards, Kevin Mckee -Original Message- From: McMicken, Steven [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 31, 2000 10:21 AM To: Palm Developer Forum Cc: '[EMAIL PROTECTED]' Subject:RE: Ok, I'm drawing a blank... In your event handler fo

RE: FrmSetTitle FrmHideObject

2000-05-17 Thread McMicken, Steven
The title is an object, it's index is zero (0). I found this out by trial and error, Palm does not document it and, although FrmHideObject and FrmShowObject will work on the title using index 0, it officially does not. See this response from Palm and the associated thread:

RE: Business Card Beam Shortcut

2000-05-11 Thread McMicken, Steven
The address book code is in the Examples folder in the SDK download. Look at function AppHandleKeyDown in Address.c to see how they handle the hardware button. Regards, Steve -Original Message- From: Josh Aversa [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 11, 2000 9:23 AM To: Palm

RE: Events

2000-05-10 Thread McMicken, Steven
Do you want to actually create an event, or react to a condition? If it's a condition, you could use a global Boolean (or integer if you have more than two conditions). To create an event, you could use the System Event Manager routines. EventAddEventToQueue will add it to the event queue. You

RE: FrmCloseAllForms() problem

2000-04-20 Thread McMicken, Steven
Do not free all of your memory before closing. If your form handler does not intercept frmCloseEvent, FrmHandleEvent will be called. When called it tries to release memory for your form, which you've already released, so the handle is invalid. I don't know the details, but that is basically

RE: Arrays and Pointers issue - HELP!!

2000-04-20 Thread McMicken, Steven
Pass addresses for the first two parameters in the statement giving you problems: matchRec = alFindRecNum(keyElems[k], Values[j][k], Sizes[j][k], RecNums[k]); You were passing values, not pointers. I didn't look at the rest of your code, but you may want to check this throughout.

RE: sdk 3.5 and link error

2000-04-20 Thread McMicken, Steven
The readme file says something about opening the Fonts folder in the Windows subdirectory if you have problems with fonts. Simply open it and close it, then reboot. If I remember correctly. Regards, Steve -Original Message- From: Raymond Chan [mailto:[EMAIL PROTECTED]] Sent:

RE: Installing a PDB file takes a lot of time

2000-04-19 Thread McMicken, Steven
Two hours is excessive for 1 MB. Is there any way you can reduce the number of records? HotSync Manager must call a "Sync" function each time it accesses (or writes) a record, and this slows down the process. I sync 3.7 MB databases in ten to fifteen minutes, but they use about 900 4K records.

RE: Form Titles

2000-04-19 Thread McMicken, Steven
Bob, The Palm OS Reference says to use FrmHideObject and FrmShowObject (in certain cases) in the description of FrmSetTitle. FrmHideObject and FrmShowObject require an object index. I use zero for the title's index, and it works (so far), but I haven't been able to find it documented. Is this

RE: invalid uniqueID passed error?

2000-04-19 Thread McMicken, Steven
I believe that the first byte is the record attributes, the next three bytes form the unique ID, so you want to ignore it, but not necessarily to zero it out. These entries form part of the database header, eight bytes per record. The first four bytes are the record offset from the start of the

RE: Form Titles

2000-04-19 Thread McMicken, Steven
PROTECTED]] Sent: Wednesday, April 19, 2000 12:36 PM To: Palm Developer Forum Cc: Palm Developer Forum Subject: RE: Form Titles At 3:41 PM +0100 19-04-00, McMicken, Steven wrote: The Palm OS Reference says to use FrmHideObject and FrmShowObject (in certain cases) in the description of F

RE: unallocated chunk error

2000-04-19 Thread McMicken, Steven
Just a guess, but you are probably still unlocking something, that is being unlocked by the system now that you are returning false from your handler. Is DmResetDatabase your function? I cannot find it listed in the reference. Regards, Steve -Original Message- From: Jason Simpkins

RE: C oddity

2000-04-18 Thread McMicken, Steven
Define your set flags as constants. Then do compares using logical bitwise operators (e.g., (and), | (or), ~ (not), ^ (exclusive or) ). Regards, Steve -Original Message- From: DeAnna Davidson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 18, 2000 8:58 AM To: Palm Developer Forum

RE: FrmLoad missed

2000-04-18 Thread McMicken, Steven
If you are using a switch statement, make sure you have a break statement at the end of each case and that the brackets are properly aligned. If memory serves, the frmLoad should occur first and that is where you want to assign your event handler. That's my guess without seeing the code.

RE: UIAppShell reports unprotected DB question again

2000-04-18 Thread McMicken, Steven
Just a quick guess, but I would not return true when handling the appStopEvent. The system needs to handle this event, also. Regards, Steve -Original Message- From: Haagensen, Brandt [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 18, 2000 4:51 PM To: Palm Developer Forum Subject:

RE: Starter

2000-04-14 Thread McMicken, Steven
IMHO, the best book on the Palm OS API's is the Palm OS Reference. You can find a code repository at the Palm Developer's site: http://www.palm.com/devzone/ Regards, Steve -Original Message- From: Meir Rotfleisch [mailto:[EMAIL PROTECTED]] Sent: Friday, April 14, 2000 6:01 AM To: Palm

RE: FplFToA question

2000-04-14 Thread McMicken, Steven
What types are you passing as your parameters? Are they what the API expects? Regards, Steve -Original Message- From: Tim Astle [mailto:[EMAIL PROTECTED]] Sent: Friday, April 14, 2000 9:51 AM To: Palm Developer Forum Subject: FplFToA question I tried to use the Float Manager

RE: FplFToA question

2000-04-14 Thread McMicken, Steven
(); before and after the call, but it didn't work either. I later tried what was suggested here, but to no avail. (NewFloatMgr.h) http://www.developer.com/directories/palm/knowledgebase/1089.html Tim Astle McMicken, Steven [EMAIL PROTECTED] wrote in message news:8297@palm-dev

RE: Simple example needed

2000-04-13 Thread McMicken, Steven
Have you localized the problem to the GetValue function? The problem could be in the UnpackValue code. Are you allocating memory for the CharPtr in the program that calls GetValue? These are just guesses, without more code, I can't suggest much more. Regards, Steve -Original

RE: Need Hotsync 3.0.0, ASAP

2000-04-13 Thread McMicken, Steven
You could download CDK 3.0, which I believe has hotsync version 3.0. Download from this site: http://www.palm.com/devzone/cdkwin/cdkwin.html Regards, Steve -Original Message- From: Pete [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 13, 2000 10:10 AM To: Palm

RE: Simple example needed

2000-04-13 Thread McMicken, Steven
The index should be of type UInt16, the maximum index is dmMaxRecordIndex (= 0x). Another possible problem with DmGetRecord is not releasing the record to clear the busy bit before using DmGetRecord on it again. Look at the index you're passing, is it a signed variable? Hope this helps.

RE: Bewildered...

2000-04-13 Thread McMicken, Steven
Step through your program using the debugger. Check the value of UniqueID when you get to the VoidHand declaration. It sounds as though you are asking for a record index that does not exist (yet). How are you setting the value of UniqueID? Regards, Steve -Original Message- From:

RE: Code Warrior and debugging

2000-04-13 Thread McMicken, Steven
You put your Palm in console mode using shortcut 2, which is cursive l, period (dot dot), and 2. You'll have an easier time debugging using the emulator, though. On the menu, under Edit Preferences, choose Palm OS Emulator as your target in the Palm Connection. You probably want to check

RE: Total Newbie font question

2000-04-12 Thread McMicken, Steven
I think it's complaining about your use of 129 in place of enumerated type fontID. The fontID enumeration can be found in header file font.h. Try defining a variable of type fontID and assigning it a value of 129, or cast 129 in the function call to (fontID). Hope this helps. Regards, Steve

RE: POSE hosed (an app causes a bus error out of reset)

2000-04-07 Thread McMicken, Steven
The page up and page down keys on the keyboard act as the up-down button on the emulator. It works in HotSync to get the "Developer's Back Door." I usually have to try a couple of times to get it to work during reset. Hope this helps! Regards, Steve -Original Message- From: Tom

RE: ?Unable to DmDeleteDatabase - get MemoryMgr Free Handle error

2000-04-07 Thread McMicken, Steven
DmFindDatabase returns type LocalID, which I believe is defined as a DWord, not an int. Your problem may be there. Regards, Steve -Original Message- From: Al Macy [mailto:[EMAIL PROTECTED]] Sent: Friday, April 07, 2000 3:10 PM To: Palm Developer Forum Subject: ?Unable to

RE: Database tables?

2000-04-07 Thread McMicken, Steven
It depends on your application. You could actually use one database, but store the three sections in three different records of your database. Three databases is probably cleaner, though. Regards, Steve -Original Message- From: Timothy Astle [mailto:[EMAIL PROTECTED]] Sent: Friday,

RE: touchy memo pad records

2000-04-07 Thread McMicken, Steven
Just a guess, but are you calling DmReleaseRecord after you are done with a record? DmGetRecord returns a record and marks the record as busy. If you try to read again before the busy bit is cleared, you will get an error. Regards, Steve -Original Message- From: Stephen Bentley

RE: simple error, need help

2000-04-05 Thread McMicken, Steven
FWIW, MemHandleLock returns a Void *. Try casting your assignment to type PackedChemical *, e.g., PackedChemical *packedChemical = (PackedChemical *) MemHandleLock(h); Regards, Steve -Original Message- From: Nicholas Breau [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 05, 2000

RE: Saving program state

2000-03-29 Thread McMicken, Steven
Define a structure to hold the state of your app. Call PrefSetAppPreferences in your AppStop function. Keith Rollins had a good description about the difference between saved and unsaved preferences that you should refer to (they were sent on Sunday, March 26). Hope this helps! Regards,

RE: Random Number

2000-03-24 Thread McMicken, Steven
SysRandom (seed) will generate a random number from 0 to sysRandomMax. Hope this helps! Regards, Steve -Original Message- From: daniel john wheadon [mailto:[EMAIL PROTECTED]] Sent: Friday, March 24, 2000 4:42 PM To: Palm Developer Forum Subject: Random Number Is there a random

RE: Multiple Pilots

2000-03-24 Thread McMicken, Steven
Yes. HotSync Manager (HSM) will create a separate folder for each device that HotSync's with that particular computer. HSM also stores information on the Palm (I think, someone please correct me if I'm wrong) to track which PC the Palm last HotSync'd with. Just a note, HSM will do a slow sync

RE: dimmed breakpoints

2000-03-23 Thread McMicken, Steven
In your project settings, check the optimizations settings. For debugging, it should be none, or very low. If the optimizations are turned on, CW cannot stop on those lines that do not have a "-" in the left column. Regards, Steve -Original Message- From: Luca [mailto:[EMAIL

RE: Is there a bug in TxtCharIsDigit?

2000-03-23 Thread McMicken, Steven
lity topic. But, I looked for a option in CW R6 to enable that feature with no success. The error message appear when I try to build the application (F7 key). How can I enable International Feature Set? Regards Roberto "McMicken, Steven" wrote: TxtCharIsDigit requires the International

RE: how does ticks map to seconds

2000-03-22 Thread McMicken, Steven
Officially, I believe one tick is approximately one millisecond (it's different on the emulator and the actual device). You can use SysTicksPerSecond to find out the actual number and proceed based on the return value. Regards, Steve -Original Message- From: Sumit Gupta [mailto:[EMAIL

RE: Emulator: Failed to connect to remote

2000-03-22 Thread McMicken, Steven
In general, I've had to restart my computer to clear this up. Occasionally, restarting CW and the emulator will work. Toggling "Use TCP/IP sockets" is also effective sometimes. I don't know what the underlying cause is, though. If I did, I'm sure there's an easier, and more dependable, fix.

RE: PilotMain() problem

2000-03-21 Thread McMicken, Steven
Download SDK 3.5 and the documentation from http://www.palm.com/devzone/tools/sdk35.cgi. That should have just about everything you need! Regards, Steve -Original Message- From: gilfether, ryan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 21, 2000 10:10 AM To: Palm Developer Forum

RE: Comparing Strings (2)

2000-03-21 Thread McMicken, Steven
If I read correctly, StrNCaselessCompare compares out to n characters. You might try StrStr if you are trying to find a string within a string, but it's not caseless. Regards, Steve -Original Message- From: Nuno Basto [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 21, 2000 12:43 PM

Device Reset

2000-03-20 Thread McMicken, Steven
I posted this question before and have received minimal response. Perhaps I didn't amplify enough. Our customers use our application to look at, and record, control data on an automobile. On occasion, they give their Palm device to one of their customers (a vehicle owner) who is having a

RE: Help... How to get low-level system event

2000-03-16 Thread McMicken, Steven
EvtSysEventAvail looks for low-level events. Buttons return higher level events. Try EvtEventAvail, which returns true on any event. Regards, Steve -Original Message- From: Feng Wang [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 15, 2000 5:20 PM To: Palm Developer Forum Subject:

RE: Decryption during synchronization

2000-03-13 Thread McMicken, Steven
If you want a specialized conduit, you have to write a .dll that will work with HotSync Manager. The Conduit Development Kit (CDK) will get you started. http://www.palm.com/devzone/conduits.html Also, take a look at the Conduit Development Forum.

RE: Events vs. API functions

2000-03-12 Thread McMicken, Steven
Look in the reference manual under the "Event Reference" section. It describes all of the events and lists the functions that send the event. Regards, Steve -Original Message- From: Richard Hartman [mailto:[EMAIL PROTECTED]] Sent: Friday, March 10, 2000 8:20 PM To: Palm Developer

RE: Record-writing problem.

2000-03-10 Thread McMicken, Steven
MemSet will set a range of memory to a specific value. To allocate memory, you should use MemPtrNew (x) or MemHandleNew (x), where x is the amount of memory, in bytes, that you want. x should be of type unsigned long. Regards, Steve -Original Message- From: Michael Sendrove

RE: help with MemHandleNew

2000-03-09 Thread McMicken, Steven
Have you allocated memory to charRatio? If you don't assign memory to it with MemPtrNew, the memory that it points to can change without notice, since your program hasn't reserved it from the system. Regards, Steve -Original Message- From: Robert C. Thayer [mailto:[EMAIL PROTECTED]]

RE: Spawn

2000-03-09 Thread McMicken, Steven
Look at SysAppLaunch and SysUIAppSwitch. You supposedly use SysAppLaunch when you want control to return to your calling app. Use SysUIAppSwitch to close your app and start another app. I haven't gotten them to work for me, yet. Regards, Steve -Original Message- From: [EMAIL

RE: removing a database

2000-03-09 Thread McMicken, Steven
When you create the database, assign the creator id of the prc to the database. That will cause the database to be deleted with the application. Regards, Steve -Original Message- From: gcw [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 08, 2000 9:51 PM To: Palm Developer Forum

RE: How to set battery type

2000-03-09 Thread McMicken, Steven
You could try using PrefSetPreference with prefSysBatteryKind as the choice. I haven't looked up what values you can set it too. Regards, Steve -Original Message- From: McCollister, Mike [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 09, 2000 8:54 AM To: Palm Developer Forum Subject:

RE: how to pass compiler flags in codewarrior?

2000-03-09 Thread McMicken, Steven
It's a standard C header file (.h). You should enter the file name in the Prefix file box on the C/C++ Language Settings panel in your project settings. Regards, Steve -Original Message- From: Sumit Gupta [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 09, 2000 3:48 PM To: Palm

RE: labels

2000-03-07 Thread McMicken, Steven
Labels are controls. You probably want to use the CtlGetLabel and CtlSetLabel APIs. Regards, Steve -Original Message- From: Luca [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 07, 2000 3:09 PM To: Palm Developer Forum Subject: labels Could someone tell me to what class of UI

  1   2   >