PalmOS 3.5.* listboxes have no respect
Palmos 3.5.* listboxes don't seem to respect the hasScrollBar flag, or clipping regions. The end result: The listboxes draw the little scroll up/down indicators, (that don't work) when you have the hasScrollBar flag on. Worse still, the up/down indicators are draw all over the place, because they don't respect clipping regions. You can bybass the clipping region bug by writing your own LstDrawList(..) function, but (non-working) scroll up/down indicators are still drawn by during select events, through the call to FrmDispatchEvent(..) Is there any way to convince PalmOS not to draw scroll up/down indicators? -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
16-bit Colour & Prism/Future PalmOS
I've got a few questions about the 16 bit colour on the prism, and the future of PalmOS. Perhaps someone knows the answers? - On the new visor prism devices, what is the gain of using a Direct Colour bitmap? Is the only feature of using a direct colour bitmap the ability to specify a transparent colour index? - Suppose you specify a 16-bit colour bitmap, without using direct colour. Will the OS assume that you are using a 5:6:5 rgb bit distribution in all future PalmOSs? (It behaves this way on the Visor Prism) -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Debugger for armlets ?
Hi all, We develop applications for Palm with prc-tools and we'd like to start making armlets. In prc-tools for windows, there is a arm-palmos-*.exe for almost every m68k-palmos-*.exe, but there is no arm-palmos-gdb.exe. Does that mean we can't debug armlets with gdb ? If not, is there other palm debuggers working with armlets ? Thank you, Francis Picard -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Problems with dmHdrAttrRecyclable.
Hi, I have some problems using the dmHdrAttrRecyclable database attribute. When I set that bit to the currently executing database, I get a Free Handle error on the Palm OS 5 simulator (or a crash on a device), after the execution of my database completed (exits from PilotMain). An interesting point is that if I switch to another application (with SysUIAppSwitch()) rather that just exiting normally, everything works fine and my database is deleted. I've seen many messages on this forum regarding this topic, some suggesting this way of using that attribute doesn't work http://www.escribe.com/computing/pcpqa/m48966.html http://www.escribe.com/computing/pcpqa/m63742.html while others assume it works http://www.escribe.com/computing/pcpqa/m74552.html Anyone could help on that ? Or at least someone used that dmHdrAttrRecyclable attribute successfully ? Thanks -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: T3 Simulator crashes on launch with included ROMS...
Jeff Diamond wrote: > > This seems to be a well known problem, but I can't find the solution. I > got the T3 simulator from pluggedin.palm.com, but launching it with > either of the included roms causes an instant crash. Does anyone have a > work around? > Thanks! > - Jeff > > > It seems that is the problem for your computer only. I can use all simulators downloaded from pluggedin without problem.. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
How to add sound resources to palm using pilrc?
As title thanks! -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
About Trial Software techniques
is there any technique for me to create software that will be expire after some time, e.g. 30 days? thx a lot -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Any free jpeg decoder library for palm?
is there any free jpeg decoder library for palm? or if any jpeg to bmp converter for palm? thx a lot -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Does C++ of palm support vector?
as title Thanks -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: How can i draw bitmap with double density?
thanks first... When i draw bitmap using windrawbitmap, the bitmap is shown under low resolution on screen What should i do in order such that the bitmap is shown in high density mode? "James" <[EMAIL PROTECTED]> ??? news:[EMAIL PROTECTED] ???... > > Francis wrote: > > > > May any one tell me? > > Call WinDrawBitmap. If you need help beyond that, you will need to elaborate > on your problem! > > __ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software > http://sitebuilder.yahoo.com > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
How can i draw bitmap with double density?
May any one tell me? thanks a lot. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
emulator/gremlins
Using emulator 3.5 Using gremlins, I've isolated an event which produces an undesirable effect in my program. How do you go about figuring out which event was run leading up to that point. I have a psf file saved a few events before the problem. I can't figure out what was pressed that leads to the problem. I read in the Palm Programming Developer's Guide that you can drop into the debugger. No idea how to do this. Using the step mode I can reproduce the problem consistantly. Potential bugs in emulator: When you press the step button it often runs several events. Incorrect event numbers. For example I told the emulator to stop at event 1000. The emulator then reads Event 1003 of 1000. Pressing the step button it then reades Event 1005 of 1004. Also what does the .pev file do. It comes up when I want to replay but I have no idea what is being replayed. Does it start at the beginning and run the whole gremlin sequence again. Jay -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Gremlins
Is there a way to keep the gremlins from using the Palm keyboards? In my application I have turned both graffiti and the keyboard feature off to protect errant entries in a text field. The only characters allowed are on a push button layout in my application. Trouble is the gremlins somehow have access to the keyboard feature and then are able to type unwanted characters. Again, this is not possible in my application but the gremlins are doing it. In addition, my application is the only application selected in the Gremlin setup. Thanks Jay -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
fdlib (free distributable math library) link error
In an attempt to use the free math library: I brought the necessary files into my project subdirectory. Added them to my project fdlibm.h w_log10.c e_log10.c e_log.c Referenced the header in my c file that uses the log10 function AND in the above c files, #include "fdlibm.h" I get these 3 errors. I haven't any idea what this means. The w_log10.c file is a wrapper and makes no sense to me. Any help would be appreciated. Jay Link Error : w_log10.c: '_fdlib_version' referenced from 'log10' is undefined. Link Error : w_log10.c: 'isnan' referenced from 'log10' is undefined. Link Error : w_log10.c: '__kernel_standard' referenced from 'log10' is undefined. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re. mathlib
Thanks Ben, Just so I'm understanding the situation... Option 1: Using mathlib as packaged with metrowerks would involve installing the prc file on a palm. Option 2: Another option is to directly link my source code to use the mathlib but under the constraints of the licensing LGPL or GPL agreements. How would you directly link the code to do this? I looked up the Licensing agreements but I'm not a lawyer so I really don't know what the gist of what it is trying to say. Seems like a lot of double talk. Option 3: Another option is to use the free math library at www.netlib.org/fdlibm with necessary modifications. How did I do? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
mathlib
Is this shared library only accessible by loading the mathlib.prc file on the palm? I've got it working but didn't know if there was a way to utilize the library without it actually being loaded on the palm but rather incorporated within the project. MathLib = 50K. Thanks Jay -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
PDI library - dictionary tool?
Palm's documentation reads: --- To associate a custom dictionary with a reader or writer, you need to first create the dictionary with the You can then call the PdiDefineReaderDictionary function to associate that dictionary with a reader object or call the PdiDefineWriterDictionary function to associate the dictionary with a writer object. NOTE: For more information about the dictionary tool at http:// www.palmos.com/dev/tech/kb. Creating a PDI Writer To create a PDI writer, you need to first access the library, and then call the PdiWriterNew function, which is declared as follows: I can not find anything about the dictionary tool in the knowledge base. Does anyone know where the dictionary tool can be found? Frank -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
PDI library question related to PdiWriteParameterStr
When I use PdiWriteParameterStr to write a parameter string the string is changed to all uppercase unless I enclose the string in double quotes. I would like to write a parameter string directly from a record, and not have the case changed. How can I do this? Could I use PdiWritePropertyValue to write the parameter value? Thanks, Frank (send #3) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Simulator (release) and frmUpdateForm problem - PalmSource comments?
Can someone from PalmSource respond please. "Francis L Spafford" <[EMAIL PROTECTED]> wrote in message news:89987@palm-dev-forum... > > I believe the problem is that there is not a large enough chunk available on > the dynamic heap for the save behind bits, or in OS 5, with 64K colors and > high density display, it just does not save the bits. But in either case, I > would expect to get a frmUpdateEvent, and I am not getting one, and > therefore the screen is blank after calling UIPickColor() from a modal form > (it does not matter whether the modal form has save behind set or not). > > "Peter Epstein" <[EMAIL PROTECTED]> wrote in message > news:89913@palm-dev-forum... > > > > I can't offer much help, but the way it is supposed to work is as follows: > > > > On release ROMs, modal forms with the save behind bit set will save the > > pixels under them, and restore them when they close. No frmUpdateEvent is > > sent. If the dialog changed the state in such a way that the underlying > form > > needs to change, you have to take care of making this happen. > > > > On debug ROMs, modal forms with the save behind bit set will save the > pixels > > under them, but will not restore them when they close. Instead, a > > frmUpdateEvent will be sent, which your application much properly handle > in > > order to restore the area uncovered. > > -- > > Peter Epstein > > > > > > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Simulator (release) and frmUpdateForm problem
I have a situation where the release version of the Simulator fails to restore the screen behind a modal form, and does not send a frmUpdateForm event to the application, leaving the screen with some missing portions. The same application, when used with the debug version of the Simulator, receives the frmUpdateEvent and so the screen is redrawn properly. This occurs when using 16-bit color and 320 x 320 resolution. The Simulator is the dr12 version. Any ideas on how to solve this problem? Thanks, Frank -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
unwanted Palm keyboard
Thanks Joe and you're right I should have looked through archives first. Hadn't been on the forum for awhile and just posted outright from my email. I think this might handle the problem. Graffiti is already turned off but maybe this will keep the keyboard at bay. Thanks Jay -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
unwanted Palm keyboard
Is there a way to prohibit the user from using/activating the built in keyboard in my program? Also and maybe related, I've noticed that if you double click an empty field it places a decimal point in that field if that field is numeric. This must be a system thing because I've not code this. Can I cancel this behavior too? If you double click a field with characters, the characters become highlighted. This behavior is acceptable. Thanks Jay -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Problem with the Resource Pavilion
I had the same effect. It took months and emails and phone calls to finally get some response. If you email me I can give you a phone number that will produce some results. Jay Alexandre Kazantsev wrote: > Please give me a hand. I submitted the Palm prototype license and > confidentiality agreement as the member of the Palm OS Developer Program two > month ago. The paperwork is necessary for all non-US residents as I am. > There is no response since that time on whether my application approved or > not. I have already queried the people at [EMAIL PROTECTED] > twice. Can I expect some feedback? What should I do else? The whole purpose > were ROM images, and I really need them. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Which prc file?
I noticed in my project that there is an appD.prc and an app.prc file. (app = application name) They both appear to function correctly when uploaded to the Palm. I suspect one is a debug version however I have no idea what that really means. I would appreciate someone telling me the difference and uses for each. Thanks Jay -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Null data question
Thanks Dave, The data type is UInt16. Sounds like I'll need to save a value that is a flag for no-entry. I'm guessing then that the big database programs do the same thing. When you query with statement such as IsNull then you are searching for this special flag (no data entered). Just don't know how the big programs know the difference then between the flag and an entered value. User could enter a zero or leave it blank which would then be coded as a zero. If I coded it as a Int16 then I could save the no-entry value as a negative value (which user cannot enter through my keypad) but hate to change a datatype based on this.Am I in the ballpark on this concept? Jay -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
NULL data question
I have several numeric fields in a record. Some are required, some are not. If an unrequired field is left blank, shouldn't I write to the field as NULL? When I do, and then get the value from the databases after the save, the structure member indicates that the value is 0. I can always test for the value of zero so the display is left blank (NULL) but I'm not wanting the underlying data to be zero. Maybe there is no way to do this as the bits and bytes have to indicate something with zero being the lowest value. Curious. Thanks Jay -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
DmComparF
Thanks Matt and Hal, It's a little clearer. It looked like Matt's example used a different prototype which was confusing at first. Hal's used the pointer to void which is what the CmCompareF prototype is looking for. I will test these further to see if it's just another way to do the same thing. I'm still not exactly sure what the sortinfo they want for each record with the SortRecordInfoPtr datatype within the DmComparF function. It's too bad there couldn't be a small sample in the API reference manual. Oops sorry that would make things clearer. Jay -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
DmComparF
Could I get a better explanation on the data type to the record pointer. The DmComparF prototype says it's a pointer to void. The MemoPad example has a user-defined data type (MemoDBRecordPtr). I'm also not sure what information the SortRecordInfoPtr is expecting. Looking at the API manual did not yield understandable results for this programmer who has only been programming on Palm for 5 months. Here is the DmComparF I am attempting to write. Thanks for taking pity on the lowly. Jay Int8 sortLWRecords (void *r1, void *r2, Int16 other, SortRecordInfoPtr r1SortInfo, SortRecordInfoPtr r2sortInfo, MemHandle appInfoH) { Int8 result; if (r1->recId == r2->recId) //two Id's are equal result = 0; else if (r1->recId < r2->recId) //record 1 Id is less than record 2 Id result = -1; else // record 1 is greater than record 2 Id, therefore a swap needs to be performed result = 1; return result; } -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
cursor problems with fields!?
Has anyone noticed this behavior? You have several fields on your form. If you set the focus to one of the fields, with no text selected -press a button to change the text of the field -the focus remains -cursor continues to flash This is as it should be If you choose to have the text selected in the field and you change the text so the field is empty via a button, -press a button to change the text of the field empty. -the focus appears to be gone. It is not really gone but the flashing cursor that should be there is now gone. -cursor no longer flashes It doesn't seem to matter if you put statements in your code to set the focus to the field after the text change, the flashing cursor won't show up until you manual click the field. Is there something I am not doing or understanding? Thanks for the insights. Jay -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
file stream / conduit
I have a database on the palm that I want to put on the user's desktop in a comma delimited format. It is a one way transmission only. At first I thought the file stream functions would be a way to accomplish this but now I'm not so sure. Which one do I need? I'm not real sure how the file stream functions work. Do they work through the cradle so they can be sent to desktop or are these files that user is creating on the Palm? If the answer turns out to be the conduit which I suspect it probably is, could you point me in the right direction in creating a conduit. Thanks for all the great help on this forum. Jay -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Your database opinion
Thanks Chris, I was kind of thinking the same thing. Jay Chris DiPierro wrote: DmDeleteRecord marks the record deleted, but it won't be removed from the DB until you sync with a desktop. DmRemoveRecord removes the record immediately. As for whether DmRemoveRecord or DmDeleteDatabase is better, I'd pick DmDeleteDatabase and follow it by recreating the DB personally. The system should be better optimized to perform this operation than your app is, and in the worse case, at least equally optimized. > I want to delete all the records in two databases in > one fell swoop. > I am not concerned about whether the records need to be > synched to a desktop. I > simply want them all deleted. Wouldn't it make sense > to delete the databases and then create them > again rather than iterate through them and delete the > individual records. DmDeleteRecord apparently doesn't > remove > the header entry. DmRemoveRecord might be a better > choice. Wouldn't delete database be the best choice. > Pardon if > this is intuitively obvious. Thanks Jay -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Your database opinion
I want to delete all the records in two databases in one fell swoop. I am not concerned about whether the records need to be synched to a desktop. I simply want them all deleted. Wouldn't it make sense to delete the databases and then create them again rather than iterate through them and delete the individual records. DmDeleteRecord apparently doesn't remove the header entry. DmRemoveRecord might be a better choice. Wouldn't delete database be the best choice. Pardon if this is intuitively obvious. Thanks Jay -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
push button vs button behavior
When a push button is depressed the face of the button turns black and remains so until another push button within the same group is depressed (a toggle). Is there a way to have the face of the button return to normal when user lifts pen from a single push button? I want the functionality of the normal button but without the rounded edges. Am I overlooking something obvious. I don't see how to do it simply without creating a fictitious button that undepresses the other and in turn creates another event. Thanks, Jay -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: record size and writing to database
Thanks Brian, Dave and Howard. Brian Smith wrote: > On Wed, 24 Apr 2002, Jay Francis wrote: > > > When I use 21 as the size for the new record I get an error message > > Application (1.0) called SysFatal Alert with the message: "DataMgr.c, > > Line 7025,DmWrite:DmWriteCheck failed" > > > > When I use 22 everything works perfectly. > > > > Am I not seeing something obvious? > > > > typedef struct { > > UInt16 waterbody; //max value = , 2 bytes > > Char surveyDate[11]; // = 01/01/1994, 11 > > bytes includes null terminator > > UInt16 area; //max value = 999, 2 bytes > > UInt16 method; //max value = 999, 2 bytes > > UInt16 station;//max value = 999, 2 bytes > > UInt16 effort; //max value = , 2 bytes > > } InfoRecordStruct; // 21 bytes > > The size of that string buffer is likely being rounded up to the nearest > 2-byte boundary, so it actually takes up 12 bytes instead of 11. > > --- > Brian Smith // avalon73 at arthurian dot nu // http://www.arthurian.nu/ > Software Developer // Gamer // Webmaster // System Administrator > When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
record size and writing to database
When I use 21 as the size for the new record I get an error message Application (1.0) called SysFatal Alert with the message: "DataMgr.c, Line 7025,DmWrite:DmWriteCheck failed" When I use 22 everything works perfectly. Am I not seeing something obvious? typedef struct { UInt16 waterbody; //max value = , 2 bytes Char surveyDate[11]; // = 01/01/1994, 11 bytes includes null terminator UInt16 area; //max value = 999, 2 bytes UInt16 method; //max value = 999, 2 bytes UInt16 station;//max value = 999, 2 bytes UInt16 effort; //max value = , 2 bytes } InfoRecordStruct; // 21 bytes MemHandle infoRecord = DmNewRecord(dbPtr, &recordIndex, 21); more code err = DmWrite(structPtr, 0, &theStructure, sizeof(theStructure)); Thanks for your help. Jay -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
converting int to string
Thanks for your help Mahesh and Bill. Sometimes I struggle with the simplest things. Now I get not initialized error when clearly it is. Warning : variable 'waterString' is not initialized before being used Information.c line 11Char * waterString; Err DisplayRecords(DmOpenRef gInformationDb, UInt16 recIndex){ Err err = 0; Char * waterString; MemHandle InfoRecord = DmQueryRecord(gInformationDb, recIndex); if (!InfoRecord) err = DmGetLastErr(); else { InfoRecordStruct * rec = (InfoRecordStruct *) MemHandleLock(InfoRecord); StrIToA(waterString, rec->waterbody); If I change the code to this waterString = StrIToA(waterString, rec->waterbody); I get an error that I just wrote to the heap. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
converting int to string
I'm reading a record from the database. Some of the fields from the structure are strings and some are integers. Converting the integers to strings so I can populate a form isn't working. I am scratching my head. It's like the code doesn't understand I'm trying to convert. I get the same error message whether I eliminate the StrIToA function or not. Char * waterString; waterString = StrIToA(rec->waterbody); Error : illegal implicit conversion from 'unsigned short' to 'char *' Information.c line 17 waterString = StrIToA(rec->waterbody); This code works right below it but rec->surveyDate is a * Char waterString = rec->surveyDate; I've used the StrIToA function when converting integers to strings so they can be displayed in a custom alert before. Also the value of rec->waterbody is correct when viewed during the debugging process. I realize it's probably something stupid. Thanks for your help. Jay -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
general relational database question
This is a general question regarding a main database (table) and a related child database (table). If one were to create a relational database in a database program such as Access one would make sure that the information gathered from the main table was unique. I can create an auto incrementing value that would be saved in the main database and take that value and save it in each of the child database records thus creating a linking value. This is not a problem. But the other values within the main database (when evaluated as a unit) need to be unique (compound key). The only way I can conceptually visualize insuring a compound key is unique is by iterating through and checking all the values before a record is saved in the main database. Am I asking Palm to do more than it was intended or am I overlooking the obvious. In addition, when user switches from the main database to the child database one would prefer to see only those records related to the main database linking value of choice. In a database program such as Access one would just create a recordset from a query involving those linking values. Again, is this something I should stay away from or am I overlooking the obvious. If worse came to worse, I can always do some quality control after the data has been downloaded from the palm to a text file. Your insights are appreciated. Jay -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
How to create a global variable?
Thanks to Brian and Paul. I got it to work. However I am curious how you knew this. The only reference to extern I find relates to libraries and that was in the Target Palm OS.pdf. I searched all the pdf documentation included with codewarrior and that was all there was. I put the extern Char *gJay in the header file and so didn't need to put it in each .c file. The string was just an example so I could go ahead and begin creating a database and remember the reference to the database after the function. If you are opening a database with the init function you would have to declare it global or it would lose scope after the function...but I don't see any examples of this being declared globally so was lost on how to do it. How did you guys know the extern keyword would do this. You don't need it in C or C++ to create a global variable. Jay Thanks Brian, Do you mean I declared it correctly and in addition I need to put the code you suggested in each of the .c files? Jay >From Brian: In the other sources (not main.c): extern Char *gJay; >Creating a global variable: > >I tried to create a global variable and test to see the >scope of that variable >in a custom alert. So I created a variable called >gJay. > > >Char * gJay = "Jay"; > >When I put this code in the main.c file (the file that >has the MainFormInit function in it) >below the # includes >above the functions >right where it says Global Variables >right below where the preferences were declared > >no compile errors > > >When I put code in to read the value of that variable >gJay in another .c file within the project >(Information.c) >Then I get a compile error. I get an undefined >identifier error. It reads all other information from >this file correctly. > > >So I moved the declaration to the main header file. >When I attempt to compile I get a Link error. > >LengthWeight.c Global object gJay was already declared >in file Information.c >Utility.c Global object gJay was already declared in >file Information.c >Main.c Global object gJay was already declared in file >Information.c >Utility.c Global object gJay was already declared in >file Information.c >About.c Global object gJay was already declared in file >Information.c > >Information.c only attempts to use the variable. It is >declared in the header and used in the Information.c >file. > > >I know the project is seeing the variable as I have my >global variable colored light blue and when I type in >gJay it turns light blue. > >Any help would be appreciated. Jay -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: How to create a global variable?
Thanks Brian, Do you mean I declared it correctly and in addition I need to put the code you suggested in each of the .c files? Jay >From Brian: In the other sources (not main.c): extern Char *gJay; >Creating a global variable: > >I tried to create a global variable and test to see the >scope of that variable >in a custom alert. So I created a variable called >gJay. > > >Char * gJay = "Jay"; > >When I put this code in the main.c file (the file that >has the MainFormInit function in it) >below the # includes >above the functions >right where it says Global Variables >right below where the preferences were declared > >no compile errors > > >When I put code in to read the value of that variable >gJay in another .c file within the project >(Information.c) >Then I get a compile error. I get an undefined >identifier error. It reads all other information from >this file correctly. > > >So I moved the declaration to the main header file. >When I attempt to compile I get a Link error. > >LengthWeight.c Global object gJay was already declared >in file Information.c >Utility.c Global object gJay was already declared in >file Information.c >Main.c Global object gJay was already declared in file >Information.c >Utility.c Global object gJay was already declared in >file Information.c >About.c Global object gJay was already declared in file >Information.c > >Information.c only attempts to use the variable. It is >declared in the header and used in the Information.c >file. > > >I know the project is seeing the variable as I have my >global variable colored light blue and when I type in >gJay it turns light blue. > >Any help would be appreciated. Jay -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
How to create a global variable?
Creating a global variable: I tried to create a global variable and test to see the scope of that variable in a custom alert. So I created a variable called gJay. Char * gJay = "Jay"; When I put this code in the main.c file (the file that has the MainFormInit function in it) below the # includes above the functions right where it says Global Variables right below where the preferences were declared no compile errors When I put code in to read the value of that variable gJay in another .c file within the project (Information.c) Then I get a compile error. I get an undefined identifier error. It reads all other information from this file correctly. So I moved the declaration to the main header file. When I attempt to compile I get a Link error. LengthWeight.c Global object gJay was already declared in file Information.c Utility.c Global object gJay was already declared in file Information.c Main.c Global object gJay was already declared in file Information.c Utility.c Global object gJay was already declared in file Information.c About.c Global object gJay was already declared in file Information.c Information.c only attempts to use the variable. It is declared in the header and used in the Information.c file. I know the project is seeing the variable as I have my global variable colored light blue and when I type in gJay it turns light blue. Any help would be appreciated. Jay -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
turning Graffiti off
I found it, thank you very much. EvtEnableGraffiti. Thanks to Joe, Colin and Oliver. If someone were to send a personal thanks to the contributor without bogging down the forum how would you do that? I guess if they wanted a personal email they would leave email address correct? New to this forum so sorry for the dumb questions. Jay -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
StrAToI question
Thanks for the help. I realize that the textVar cannot exceed values that can't be held by a UInt16 var. It just seems kind of weird that you are setting the value of a UInt16var to a datatype that is a 32 bit. Not so much the value part but the fact that they are differing data types. Jay > Assuming that textVar is a positive integer > in string format, nothing. Well, a UInt32 can hold a wider range of integers than a UInt16, so you need to ensure that the string doesn't exceed the max value of UInt16. Oliver -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
turning Graffiti off
I just searched all the pdf documents for EvtEnableGraffiti() and came up with nothing. Am I missing one? Thanks John and Joe both. I don't feel quite so stupid for the thread question now. Jay I do not want users to be able to enter values in fields using keystrokes. Is there any way to prohibit this. I set up push buttons to enter data instead. My emulator accepts keystrokes even though I have no Graffiti shift on the form. Perhaps when I upload final project to Palm this won't happen? Also if you were kind enough to respond to this, could you tell me how to reply to posts. I am emailing [EMAIL PROTECTED] to post my original message but don't see how to reply to posts. Sure I get post a reply but how does the reply get threaded correctly. I emailed the owner of the forum [EMAIL PROTECTED] but of course, no reply. Thanks for your help Jay -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
turning Graffiti off
Thanks for your help Joe, I don't get the response back as emails. I read them on the forum so I can't press reply. Do you get all the emails everyone posts? My mailbox would fill up very rapidly. Maybe I'm missing something. And yes, I incorrectly stated the address. I left out an s. I do not want users to be able to enter values in fields using keystrokes. Is there any way to prohibit this. I set up push buttons to enter data instead. My emulator accepts keystrokes even though I have no Graffiti shift on the form. Perhaps when I upload final project to Palm this won't happen? Also if you were kind enough to respond to this, could you tell me how to reply to posts. I am emailing [EMAIL PROTECTED] to post my original message but don't see how to reply to posts. Sure I get post a reply but how does the reply get threaded correctly. I emailed the owner of the forum [EMAIL PROTECTED] but of course, no reply. Thanks for your help Jay -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
turning Graffiti off
I do not want users to be able to enter values in fields using keystrokes. Is there any way to prohibit this. I set up push buttons to enter data instead. My emulator accepts keystrokes even though I have no Graffiti shift on the form. Perhaps when I upload final project to Palm this won't happen? Also if you were kind enough to respond to this, could you tell me how to reply to posts. I am emailing [EMAIL PROTECTED] to post my original message but don't see how to reply to posts. Sure I get post a reply but how does the reply get threaded correctly. I emailed the owner of the forum [EMAIL PROTECTED] but of course, no reply. Thanks for your help Jay -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
StrAToI question
The StrAToI function returns an Int32. What do you do if the value to be converted is an UInt16? UInt16var = StrAToI(textVar); Thanks Jay -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
simple field question
all field handles hold text? Is that correct? Assuming that is true, and you want to take the contents of that field that holds a numeric value and put it in an integer database field, you get it as text from the handle-convert it to an integer using StrAToI so it can be written to the structure variable as an integer? Is this logic correct? Thanks for your help. Jay -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
FrmCustomAlert
Can I display a number value in the custom alert? Do I have to convert it to a string first? Apparently it is designed to display only strings? Any help would be appreciated. Thanks Jay -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: Help with DMDatabaseInfo
Sorry again for asking stupid things. DmDatabaseInfo wants the card an id number, not the references. Thanks anytime -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Help with DMDatabaseInfo
Codewarrior says illegal implicit conversion from "unsigned short *" to "unsigned short" in the DatabaseInfo call. API docs says the return values you don't need can pass NULL. Can anybody see the error here: Thanks void ejecutar(void){ MemHandle h; Err err; DmSearchStateType infop; LocalID id; UInt16 card; Char* name; err=DmGetNextDatabaseByTypeCreator(true,&infop,0,0,true,&card,&id); if (!err){ h=MemHandleNew(25); name=(char *) MemHandleLock(h); err=DmDatabaseInfo(&card,&id,name,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NU LL,NULL); showstr(0,10,name); MemHandleUnlock(h);MemHandleFree(h);} else showstr(0,150,"Error"); } -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: decompile prc?
"Igor Mozolevsky" <[EMAIL PROTECTED]> wrote in message news:58207@palm-dev-forum... > > Incidentally, if you read the license agreement you got with the soft, and > if it's been written by half clever person, you'll find that decompling > binary code is forbidden :-( Of course, that may not apply to you, depending upon the laws in your county/state/country :) -- Andrew Francis [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: Can Palm Inc own the word "Palm" ?
"Gary Gorsline" <[EMAIL PROTECTED]> wrote in message news:56065@palm-dev-forum... > If you have a product for several platforms, > like CE and Pocket PC and Palm OS and Windows 9X, can you not advertise them > as MyAppName CE, MyAppName Pocket PC, MyAppName Palm OS and MyAppName > Windows. I'm pretty sure that it's legal to use names like "MyAppName for Windows" and "MyAppName for Palm" without infringing on the trademark. To determine whether a name violates a trademark, the main question asked is "would the average consumer be confused by the naming?" - and I think it's fair to say that your average consumer wouldn't look at "MyAppName for Palm" and get confused as to whether it was a product of Palm Inc, or equivalent to the Palm. There was a big tizz when Microsoft made noise about trademarking "Windows", and I'm pretty sure that the general consensus afterwards is that names like "Lotus 1-2-3 for Windows" weren't in violation. That said, I'm not a lawyer and my memory is somewhat fuzzy, so go ask an attorney in your jurisdiction :) -- Andrew Francis [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Format of Datebook database
I'm trying to figure out the format of the Datebook database on the Palm, and I'm getting nowhere. All I've managed to find is source code for things that use the format (the sample Datebook conduit in the CDK, and source in the Coldsync and pilot-link utilities) - but while the code may work it's hardly clear on what exactly it's doing :) Searching the web and the knowledge base isn't really helping me either. Does anyone know of a textual description of the datebook format on the handheld? Thanks -- Andrew Francis [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: Fonction Minimum
> - Original Message - > From: "Rhoda BEROL" <[EMAIL PROTECTED]> > > What is the name of the fonction which return the minimum between 2 > numbers > > (version SDK 4.0)? > > It's called: > > #define MIN(x,y) ((x)<(y)?(x):(y)) Just be warned that you should only use static values with this macro. For instance, MIN(x, somefunction()) would be a bad idea - because if somefunction() is lower it would be called twice! And if you had min(x++, y++) then the smallest value would increase by two. If you want to avoid this then you can't use a macro... you'll need a function. -- Andrew Francis [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: Getting a conduit to run at *every* Hotsync
"Jim Cooper" <[EMAIL PROTECTED]> wrote in message news:55082@palm-dev-forum... > > > > your best bet is Calculator (creator id = 'calc'). > > You just need to lookout for the > > situation where someone else is already using that creator id. > > IIRC, Sidekick uses this for its conduit. I don't believe that that > creator id is used on Visors either. A new app is safest. Thanks guys. Is it possible for me to create an application that doesn't show up in the applications menu on the Palm? Cheers -- Andrew Francis [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Getting a conduit to run at *every* Hotsync
Hi everybody I've already asked this question on the conduit dev forum, and judging by the silence nobody there knows :) Apologies to anyone aggravated by seeing it twice. I want my conduit to run every time that a Hotsync occurs - even if there aren't any databases on the Palm with the creator ID that my conduit is "tied" to. I guess I could do this my having a "dummy" database with my creator ID that's never actually used, but if there's a better way I'd sure like to hear about it :) Thanks -- Andrew Francis [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: Looking around inside PRC files - tools?
"Ravindra" <[EMAIL PROTECTED]> wrote in message news:54480@palm-dev-forum... > > Hi Shaikh , > Plesse give me the link from which i can get all these tool I have the links for a few of them now: PDBingo (aka PDB Operations): <-- this is excellent http://xprsg.tripod.com/programing/toolz.htm palmdeMON: http://palmdemon.cjb.net/ PRCedit:<-- official homepage is down, so I can't get any documentation it isn't working, i think i need more utilities 'under' it http://www.visorvillage.com/software/pc/PRCedit-2001-5-30-palm-pc.html Regards -- Andrew Francis [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: Looking around inside PRC files - tools?
"Shaikh Khurram Saghir" <[EMAIL PROTECTED]> wrote in message news:54483@palm-dev-forum... > > :-D most of these tools (read as all of them) are used for reverse > engineering. What are you upto? :-) I'm actually writing a conduit that's designed to grab some information from a webserver and stick it into the Palm, in the format of the user's choice... for instance Memopad or Palmdoc or one of the others floating around... while there's some documentation floating around for pretty much everything, it can be a lot simpler to just use an existing converter and see what it spits out :) -- Andrew Francis [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Looking around inside PRC files - tools?
Hi all I'm looking for a tool that allows me to probe around inside a PRC file - the only thing I've managed to find so far is a program called PAR (http://www.djw.org/product/palm/par/index.html) which is a command line tool for manipulating PRC/PDB files. It works, but "list-extract to file-view with hex editor" is a rather tedious routine :) Does anyone know of any interactive tools for poking around inside PRC files? Cheers -- Andrew Francis [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: Sorting algos
On Fri, 18 May 2001, Ng Wei Gee wrote: > Hi all! > > This is not exactly Palm related, but hope someone can help me out. > > I've a partially sorted list and I want to sort it out completely. Which of > these would be the most efficient in this case? > > - quicksort (works well for random list, but partially sorted??) The closer to completely sorted a list is, the better quicksort works. Quciksort is actually quite dreadful at sorting a list that's almost in reverse order. So for a partially sorted list, quicksort is probably your best bet - except for the fact that quicksort is a recursive algorithm, which chews up your stack space rather quickly (which you don't have a lot of on the palm). > - insertion sort (I know very little abt this) > - bubble sort (the only sort that can stop prematurely when the list is > fully sorted, but slow!) There is never a good reason to use bubble sort. Avoid it like the plague! Most sorting algorithms will happily stop when the list is fully sorted; the only ones I can think of that don't are mergesort and heapsort. For a partially sorted list, I'd go with quicksort unless the list is large enough that stack space becomes an issue - then you might be best dropping back to something like insertion sort (which is basically just a less silly variant on bubble sort). To dependably sort a list which might be all over the place, then heapsort is a good bet on faster devices, however it always runs to completion which would be grossly inefficient on a slow processor like the palm's. If you list is not necessarily in almost-order, maybe take a look at *gulp* shell sort? HTH - Andrew -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
16-bit Colour & Prism/Future PalmOS
I've got a few questions about the 16 bit colour on the prism, and the future of PalmOS. Perhaps someone knows the answers? - On the new visor prism devices, what is the gain of using a Direct Colour bitmap? Is the only feature of using a direct colour bitmap the ability to specify a transparent colour index? - Suppose you specify a 16-bit colour bitmap, without using direct colour. Will the OS assume that you are using a 5:6:5 rgb bit distribution in all future PalmOSs? (It behaves this way on the Visor Prism) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
PalmOS 3.5.* listboxes have no respect
Palmos 3.5.* listboxes don't seem to respect the hasScrollBar flag, or clipping regions. The end result: The listboxes draw the little scroll up/down indicators, (that don't work) when you have the hasScrollBar flag on. Worse still, the up/down indicators are draw all over the place, because they don't respect clipping regions. You can bybass the clipping region bug by writing your own LstDrawList(..) function, but (non-working) scroll up/down indicators are still drawn by during select events, through the call to FrmDispatchEvent(..) Is there any way to convince PalmOS not to draw scroll up/down indicators? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/