MemoryProblems
Hello All, Well am using the following code:- Inputstring :-1~VIKAS~VIKAS extern Err getSalPersonStructPtrFromString(const char * p_Str_FormattedStr,SalPersonLoginInfoPtr p_SalStruct) { char * temp = NULL; char ** p_Str_Array = (char **)MemHandleNew(sizeof(char*)); MemHandleLock((MemHandle)p_Str_Array); for(int i = 0 ,j = 0, k = 0; i StrLen(p_Str_FormattedStr) ; i++) { if(i == 0) { temp = (char *)MemHandleNew(sizeof(char)); UInt32 size = MemHandleSize((MemHandle)temp); MemHandleLock((MemHandle)temp); } if(p_Str_FormattedStr[i] =='~' ) { *(temp +k) = '\0'; p_Str_Array[j] = temp; MemHandleUnlock((MemHandle)temp); temp = NULL; temp = (char *)MemHandleNew(sizeof(char)); MemHandleLock((MemHandle)temp); j++; k=0; } else *(temp+k ) = *(p_Str_FormattedStr+i); // ## Memory Error at this line #// k++; } }//End for p_SalStruct = (SalPersonLoginInfoPtr)MemPtrNew(sizeof(SalPersonLoginInfoStruct)); p_SalStruct-p_str_ID = p_Str_Array[0]; p_SalStruct-p_str_Name = p_Str_Array[1]; p_SalStruct-p_str_Password = p_Str_Array[2]; MemHandleUnlock((MemHandle)p_Str_Array); return errNone; }//End function Can anybody help me out as to why am i getting memory error at this line..I hope my memory allocation is perfect. Regrads, Vikas Lakkashetti -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: MemoryProblems
To add the same code works fine in VC++ when tested with maolloc. I am getting a Bus error here which says that I am trying to access a location which is neither in the ROM or RAM. Please do lemme know about it. My basic requirement is to get a Char**(pointer to an array of pointers) from a char *(a full string as got from the database). I want to make this a Utility function later in my project so that it can be re-used.In the below example I am currently using it for my module. Thx in advance.. Regards, Vikas - Original Message - From: V...i...K...a...S [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Wednesday, March 27, 2002 3:46 PM Subject: MemoryProblems Hello All, Well am using the following code:- Inputstring :-1~VIKAS~VIKAS extern Err getSalPersonStructPtrFromString(const char * p_Str_FormattedStr,SalPersonLoginInfoPtr p_SalStruct) { char * temp = NULL; char ** p_Str_Array = (char **)MemHandleNew(sizeof(char*)); MemHandleLock((MemHandle)p_Str_Array); for(int i = 0 ,j = 0, k = 0; i StrLen(p_Str_FormattedStr) ; i++) { if(i == 0) { temp = (char *)MemHandleNew(sizeof(char)); UInt32 size = MemHandleSize((MemHandle)temp); MemHandleLock((MemHandle)temp); } if(p_Str_FormattedStr[i] =='~' ) { *(temp +k) = '\0'; p_Str_Array[j] = temp; MemHandleUnlock((MemHandle)temp); temp = NULL; temp = (char *)MemHandleNew(sizeof(char)); MemHandleLock((MemHandle)temp); j++; k=0; } else *(temp+k ) = *(p_Str_FormattedStr+i); // ## Memory Error at this line #// k++; } }//End for p_SalStruct = (SalPersonLoginInfoPtr)MemPtrNew(sizeof(SalPersonLoginInfoStruct)); p_SalStruct-p_str_ID = p_Str_Array[0]; p_SalStruct-p_str_Name = p_Str_Array[1]; p_SalStruct-p_str_Password = p_Str_Array[2]; MemHandleUnlock((MemHandle)p_Str_Array); return errNone; }//End function Can anybody help me out as to why am i getting memory error at this line..I hope my memory allocation is perfect. Regrads, Vikas Lakkashetti -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Launch synchronization by program
Hi all, I'm searching for a way to launch Synchronization by clicking on a button in my application (PRC). I'm using Bluetooth solution, and i want not to simply launch a serial synchro but Bluetooth Serial synchronization. So i can't just simulate the push on craddle button. I work with Falch.net 2.6, C++ Language, SDK 4.0. Could you help me ? Thanks. Philippe, FRANCE Mail : [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Continually Beaming Kiosk
Ted Lowery wrote: I have heard a discussion exists along these line, yet I am unable to find it in egroups. I'd like to build a continually beaming kiosk out of a palm for an upcoming trade show. Ted, I don't know if this would be an option for you (shameless plug follows): my company has a PC based beaming kiosk that also supports beaming programs and business cards to PalmOS devices. We used it at the CeBIT Palm booth last week (1k downloads) without any major problems. Regards, Christoph -- Christoph Bartelmus mailto:[EMAIL PROTECTED] Eyeled GmbH, Science Park Saar http://www.eyeled.de Stuhlsatzenhausweg 69 phone: +49-(0)681-3096-114 66123 Saarbrücken fax: +49-(0)681-3096-119 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: StrAToI
On Tue, 26 Mar 2002, Carmen Sandiego wrote: Whenever I use StrAToI, the result is always 0. What am I doing wrong? char text[8]; StrCopy(text, Hello); Int32 intText = StrAToI(text); of course it is zero.. in this case, you were lucky the address of text didn't contain a character between 40 and 49 :P Int32 intText = StrAToI(text); is how it should have been, and, it will still return zero.. StrAToI converts numeric characters 0,1..9 :) into a number. as soon as it cannot convert, it stops. // az [EMAIL PROTECTED] http://www.ardiri.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Multi-Segment Apps - Question
On Tue, 26 Mar 2002, Mike Davis wrote: Is there any other problems that I might have when trying to use old palm application source files that were developed with the original prc-tools20, beta 20 version of cygwin? Keep in mind that my application was multi-segment. i grabbed the latest cygwin from redhat, did a network install (dont forget to include make) :P and, then installed prc-tools 2.0.92 which i got from the sourceforge.net page.. my old sources (from prc-tools 2.0) compiled fine on the new version of the compiler.. the processing looks a bit different, but thats due to the update with make :) YOU CANNOT use b20 :) Is there a good description for setting all this up, as if I was doing it for the first time? Where? the new setup is quite a breeze. go to the prc-tools homepage on sourceforge.net. :) // az [EMAIL PROTECTED] http://www.ardiri.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Dynamic UI
Hi all, Does anyone know how to define a dynamic UI like the clickable link in HTML/WAP browser in palm? Thanks and regards Joseph Chan === The Hong Kong Polytechnic University Department of Computing [EMAIL PROTECTED] === -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Palm Application to send AT commands
Hi all, I have to build a Palm application by means of J2ME (using the Java connection framework...) that will send AT commands via infra-red to a mobile phone in order to get CELL ID/signal information. Any suggestion, examples of related code, ideas of the feasibility will be appreciated... All the best!!! Lara - This mail sent through IMP: http://horde.org/imp/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Dynamic UI
1.Write a text with WinDrawChars 2. Save position of written text in a structure, for variables or RectangleType . 3. Handle penDownEvent. Check out whether the pen is tapped in this rectangle. Very simple :) Anton - Original Message - From: Joseph Chan [EMAIL PROTECTED] Newsgroups: palm-dev-forum To: Palm Developer Forum [EMAIL PROTECTED] Sent: Wednesday, March 27, 2002 2:48 PM Subject: Dynamic UI Hi all, Does anyone know how to define a dynamic UI like the clickable link in HTML/WAP browser in palm? Thanks and regards Joseph Chan === The Hong Kong Polytechnic University Department of Computing [EMAIL PROTECTED] === -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Dynamic UI
If you don't want to roll your own, as Anton suggests, you can use a frameless button, although I believe there's no way to set buttons to be frameless without manually setting ControlType-attr-frame to noFrame. Maybe there's a glue function that does it? I think this will give you the closest facsimile of links that you can get for free. So just make a new button control, set the frame attribute to noFrame, and then show it. Check the Palm API docs to make sure you're using the right structures and stuff, I don't have my code with me to doublecheck... -dan On Wednesday, March 27, 2002, at 07:11 AM, Anton wrote: 1.Write a text with WinDrawChars 2. Save position of written text in a structure, for variables or RectangleType . 3. Handle penDownEvent. Check out whether the pen is tapped in this rectangle. Very simple :) Anton - Original Message - From: Joseph Chan [EMAIL PROTECTED] Newsgroups: palm-dev-forum To: Palm Developer Forum [EMAIL PROTECTED] Sent: Wednesday, March 27, 2002 2:48 PM Subject: Dynamic UI Hi all, Does anyone know how to define a dynamic UI like the clickable link in HTML/WAP browser in palm? Thanks and regards Joseph Chan === The Hong Kong Polytechnic University Department of Computing [EMAIL PROTECTED] === -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
No ANSWER
Well Hi Guys, Can anybody answer to the Memory Problems Query. I wanna follow the best n most optimized way of reading formatted data from the database into a char* and then put it into a structures . Thx in advance. Vikas Lakkashetti -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Dynamic UI
Yes, this is another way. The only thing is that if scrolling is needed you should move the button. It is possble actually. Anton - Original Message - From: dan mason [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Wednesday, March 27, 2002 4:09 PM Subject: Re: Dynamic UI If you don't want to roll your own, as Anton suggests, you can use a frameless button, although I believe there's no way to set buttons to be frameless without manually setting ControlType-attr-frame to noFrame. Maybe there's a glue function that does it? I think this will give you the closest facsimile of links that you can get for free. So just make a new button control, set the frame attribute to noFrame, and then show it. Check the Palm API docs to make sure you're using the right structures and stuff, I don't have my code with me to doublecheck... -dan On Wednesday, March 27, 2002, at 07:11 AM, Anton wrote: 1.Write a text with WinDrawChars 2. Save position of written text in a structure, for variables or RectangleType . 3. Handle penDownEvent. Check out whether the pen is tapped in this rectangle. Very simple :) Anton - Original Message - From: Joseph Chan [EMAIL PROTECTED] Newsgroups: palm-dev-forum To: Palm Developer Forum [EMAIL PROTECTED] Sent: Wednesday, March 27, 2002 2:48 PM Subject: Dynamic UI Hi all, Does anyone know how to define a dynamic UI like the clickable link in HTML/WAP browser in palm? Thanks and regards Joseph Chan === The Hong Kong Polytechnic University Department of Computing [EMAIL PROTECTED] === -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
fldInsert Problem...
Hello all... I was wondering how exactly i might be able to insert an item from my database into a field. This is my DB and i want to insert Type into a field to display it typedef enum Weekday{Sun, Mon, Tues, Wed, Thurs, Fri, Sat} Weekday; typedef enum ModuleType{Lecture, Tutorial, Lab} ModuleType; typedef struct ErrandDB { Weekday day;/* 0 through 6 for Sun through Sat */ Char errands[257]; /* Free form text field, 256 characters allowed */ ModuleType Type; } ErrandDB; typedef ErrandDB* ErrandDBPtr; I'm using: FldInsert(fldP, recP-Type, StrLen(recP-Type)); This is flagging errors, it works fine for errands. i know it has something to do with the way Type is declared but i can't figure it out...do i use fldInsert??? Thanks for your time mark -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
get substring of string x ? possible?
Hello! Is it possible to get a substring of a string? I'm getting the date formatted like Mo 26-03-02 and would like to have the day in words (Mo) in a new string... DateToDOWDMFormat (date.month, date.day, date.year + 1904, dfDMYLongWithComma, dayAndMonthInWords); textstring = (dayAndMonthInWords, ) Any idea what ??? could be? Many Thanks, Dyk -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: fldInsert Problem...
You may get a crash if the string length is more then it is maxChars value of the field. Anton - Original Message - From: Mark Kenny [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Wednesday, March 27, 2002 4:57 PM Subject: fldInsert Problem... Hello all... I was wondering how exactly i might be able to insert an item from my database into a field. This is my DB and i want to insert Type into a field to display it typedef enum Weekday{Sun, Mon, Tues, Wed, Thurs, Fri, Sat} Weekday; typedef enum ModuleType{Lecture, Tutorial, Lab} ModuleType; typedef struct ErrandDB { Weekday day; /* 0 through 6 for Sun through Sat */ Char errands[257]; /* Free form text field, 256 characters allowed */ ModuleType Type; } ErrandDB; typedef ErrandDB* ErrandDBPtr; I'm using: FldInsert(fldP, recP-Type, StrLen(recP-Type)); This is flagging errors, it works fine for errands. i know it has something to do with the way Type is declared but i can't figure it out...do i use fldInsert??? Thanks for your time mark -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: TABLE QUERY
I know what you mean, pal. I've been with this problem last month, and solved it using the CustomTableItem style. That's the only way to put your label with no :, and left aligned. After assign the CustomTableItem style, you must assign the procedure that will draw the label content. If you want, you could draw bmps in the cell, if it's your desire. But it's another stuff... I hope my note be useful... Fabrício de Paula - Original Message - From: V...i...K...a...S [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Wednesday, March 27, 2002 11:00 AM Subject: TABLE QUERY Well hi Guys, When we use a table and set the style of the table item to - labelTableItem then it displays the data with a ':' complimentary character with it.But I don wanna show that.If I use the table item type-textTableItem then it serves the purpose but again it is editable(I want non-editable). There is a table item type as - customTableItem but then I have to haandle all the drawing to the table cell which is complicated. Has anyone had sucha problem .If yes I waould appreciate if u can guide me how to go abt. it. Thx In Advance Vikas -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: TABLE QUERY
if you load the text with sth like: TblSetLoadDataProcedure (table, 1, (TableLoadDataFuncPtr) ListFormGetRecordField); ... you can set the attributes of the textfield in the 'ListFormGetRecordField-Function' as seen below. This will make the textfield not editable.. and you can also hide the lines of the textfield if (fld) FldGetAttributes (fld, attr); attr.editable = false; attr.underlined = noUnderline; FldSetAttributes (fld, attr); } Hope that helps Dyk V...i...K...a...S [EMAIL PROTECTED] schrieb im Newsbeitrag news:81642@palm-dev-forum... Well hi Guys, When we use a table and set the style of the table item to - labelTableItem then it displays the data with a ':' complimentary character with it.But I don wanna show that.If I use the table item type-textTableItem then it serves the purpose but again it is editable(I want non-editable). There is a table item type as - customTableItem but then I have to haandle all the drawing to the table cell which is complicated. Has anyone had sucha problem .If yes I waould appreciate if u can guide me how to go abt. it. Thx In Advance Vikas -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: fldInsert Problem...
Well recP is: recP = MemPtrNew(sizeof(ErrandDB)+StrLen(recP-errands)+sizeof(ModuleType)); so i doubt that that is the problem. when i added the fldinsert line below i get errors compiling saying stuff about implicit conversion from 'ModuleType' to 'const char *' -Original Message- From: Anton [mailto:[EMAIL PROTECTED]] Sent: 27 March 2002 14:22 To: Palm Developer Forum Subject: Re: fldInsert Problem... You may get a crash if the string length is more then it is maxChars value of the field. Anton - Original Message - From: Mark Kenny [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Wednesday, March 27, 2002 4:57 PM Subject: fldInsert Problem... Hello all... I was wondering how exactly i might be able to insert an item from my database into a field. This is my DB and i want to insert Type into a field to display it typedef enum Weekday{Sun, Mon, Tues, Wed, Thurs, Fri, Sat} Weekday; typedef enum ModuleType{Lecture, Tutorial, Lab} ModuleType; typedef struct ErrandDB { Weekday day; /* 0 through 6 for Sun through Sat */ Char errands[257]; /* Free form text field, 256 characters allowed */ ModuleType Type; } ErrandDB; typedef ErrandDB* ErrandDBPtr; I'm using: FldInsert(fldP, recP-Type, StrLen(recP-Type)); This is flagging errors, it works fine for errands. i know it has something to do with the way Type is declared but i can't figure it out...do i use fldInsert??? Thanks for your time mark -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Multi-Segment Apps - Question
On Tue, Mar 26, 2002 at 07:13:00AM -0800, Mike Davis wrote: I'm now wondering if I'm going to have problems using my old palm application source files, in terms of handling multi-segment applications, with the newest prc-tools, etc. Will an old set of application source files work with the latest prc- tools set? i.e. Has prc-tools changed over the course of two years in an incompatible way, such that old source code or build scripts fail to work due to changes in prc-tools since prc-tools 2.0? As a number of people here can attest :-), I take this issue very seriously. I have never and will never intentionally make or allow changes in prc-tools that gratuitously break old source code or build scripts. Non-gratuitous breakage might occur, but only after exhausting other possibilities, and only with documentation and a gradual changeover and/or provision of a simple constant-time effort workaround [1]. Other breakage is likely a bug and reports of such bugs are appreciated. I may stay with SDK 3.5 but not sure yet. Changing SDK may lead to some incompatibility with old source code, but nothing like the problems in the pre-3.5 days. Of course, with prc-tools it is very simple to install several Palm OS SDKs simultaneously and select which one to use on a project-by-project basis. Hence your old code could easily stay with the 3.5 SDK as long as you wanted, without affecting your use of earlier or more recent SDKs in other projects on the same machine. I also remember that I had to fuss with the directory structure of prc-tools, in the original release. That was two years ago. The Windows installation story is much better now, and will improve greatly again in the near future. Is there a good description for setting all this up, as if I was doing it for the first time? Where? Where have you looked? Have you tried searching for prc-tools on Google and clicking on any of links on the first page of results, particularly any of the top five? Do you have any suggestions as to how this could be made easier to find? John [1] By constant-time I mean it takes a fixed amount of effort to implement a workaround on your development host. Not an amount of effort proportional to the number of projects you have, and certainly not an amount proportional to the number of lines of code you have. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Multi-Segment Apps - Question
A follow-up: I installed the new cygwin setup from the internet. This was for a Windows system. The last step crashed where it says creat icon and add to start menu. Is that critical? Happens when I install prc-tools as well. Also, in the older version that I used to use (b20 and original prc- tools20), I had to modify some files in the compiler/linker (I think; memory is a bit fuzzy) that change something to allow larger than 32K code segment. I also had to change the link order somewhere (don't remember). This put crt0 file in a different order. Are these changes still necessary for multi-segment applications? Or is multi-segment applications even necessary anymore to bypass the 32K code limit. Then I had to add a lot of SEGMENT difinitiions to a def file, yadda, yadda, yadda... anyway Is this SEGMENT definition still the way to do multi-segment applications using the prc-tools? Anyway, my original problem was that I had an application that was larger than 32k and I had to go through all of these changes to allow the app to compile and link. I'm left with source that has all these SEGMENT definitions in it. I realize that I got an answer to not use b20, make sure I use make and that the sources complile fine. But I know they compile. My problem is with linking the multiple segments in my old source. Is multi-segmented applications still necessary to bypass the 32K limit? Are the SEGMENT definitions still required? After cygwin is installed, do I have to go in and manually edit any of the files as I did in b20? Mike On Tue, 26 Mar 2002, Mike Davis wrote: Is there any other problems that I might have when trying to use old palm application source files that were developed with the original prc-tools20, beta 20 version of cygwin? Keep in mind that my application was multi-segment. i grabbed the latest cygwin from redhat, did a network install (dont forget to include make) :P and, then installed prc-tools 2.0.92 which i got from the sourceforge.net page.. my old sources (from prc-tools 2.0) compiled fine on the new version of the compiler.. the processing looks a bit different, but thats due to the update with make :) YOU CANNOT use b20 :) Is there a good description for setting all this up, as if I was doing it for the first time? Where? the new setup is quite a breeze. go to the prc-tools homepage on sourceforge.net. :) // az [EMAIL PROTECTED] http://www.ardiri.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: fldInsert Problem...
--- Mark Kenny [EMAIL PROTECTED] wrote: i get errors compiling saying stuff about implicit conversion from 'ModuleType' to 'const char *' ... I'm using: FldInsert(fldP, recP-Type, StrLen(recP-Type)); This is flagging errors, it works fine for errands. - and - typedef enum ModuleType{Lecture, Tutorial, Lab} ModuleType; typedef struct ErrandDB { Weekday day;/* 0 through 6 ... */ Char errands[257]; /* Free form text ... */ ModuleType Type; } ErrandDB; The compiler is telling you that it expects the second argument to FldInsert to be 'const char *' and you passed in something that is type 'ModuleType', which is an enum. The compiler can't convert an enum into a string -- you have to do that yourself. So, if you want to insert the word Lecture, Tutorial, or Lab then you have to look at the ModuleType and use it to determine which word to insert. You could use something like: Char * names[3] = {Lecture, Tutorial, Lab}; // ... FldInsert(fldP, names[recP-Type], StrLen(names[recP-Type])); __ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® http://movies.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Launch HotSync with forced mode ?
I try to launch HotSync with SysUIAppSwitch and force it with a specific connection. I've wrote and tested theses two solutions : 1. SysUIAppSwitch (cardNo, dbID, sysAppLaunchCmdSyncRequestLocal, NULL); 2. SysUIAppSwitch (cardNo, dbID, sysAppLaunchCmdSyncRequestRemote, NULL); = HotSync is launched correctly but ... - with the 1st solution, HotSync is forced to USB/Serial direct - with the 2nd solution, Hotsync is forced to Modem When i launch HotSync manually, the last connection is selected !! Is there a bug ? Can i force HotSync to choose a personnal connection like Bluetooth Serial or BlueTooth Lan Serial ? Does exist another command line for HotSync like sysAppLaunchCmdSyncRequestPersonal ? Philippe, FRANCE Mail : [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
LstSetDrawFunction
I am using the LstSetDrawFunction call to custom draw my listbox on screen. But it seems that this code never calls the custom draw function that I have written in case of 3.1 OS on emulator. Is this call not implemented on that OS or is there something I am missing here? I have not checked this on a device though. What is the problem? Thanks in advance Sajul. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: zlib in CodeWorrier
From: Young S. Cho [mailto:[EMAIL PROTECTED]] I went to www.zlib.org to look for the Palm source code that was used to create the shared library but could not find it. I wanted to find the code so that I could create a static library version. You can build a static library from the regular zlib source distribution without any Palm-specific changes. (I'm using 1.1.3 but the new 1.1.4 should work fine too.) -slj- -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: LstSetDrawFunction
From: Sajul P. Nandakumar [mailto:[EMAIL PROTECTED]] it seems that this code never calls the custom draw function that I have written in case of 3.1 OS on emulator. Is this call not implemented on that OS or is there something I am missing here? Must be the latter, as I know of no problems with list draw callbacks. Make sure you call LstSetListChoices as needed to make the OS know how many items need to be drawn. Maybe give more detail of what isn't working. -slj- -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Palm IP address
A) Does the Palm Device have its own IP address or group address and where can I find information about it? B) Can the connection to the Palm device via TCP-IP be activated from the IBM-PC computer and how can I implement such procedure. Any help is appreciated. Sincerely yours, Alexander. - Original Message - From: Mark Palatucci [EMAIL PROTECTED] Newsgroups: palm-dev-forum To: Palm Developer Forum [EMAIL PROTECTED] Sent: Friday, January 18, 2002 10:50 PM Subject: Re: Can Palm device access LAN TCP/IP This can be done is several ways on both Linux and Windows. With Win2k/NT/XP you can use the RAS server to host a PPP connection. There is a very good setup tutorial for Win2k at: http://www.users.globalnet.co.uk/~echobase/network/win2k/images.html The big things with Win2k to remember: -You need to send some special strings from the Palm PPP client side in order to get RAS to answer. This is discussed in the above doc. -Win2k RAS server configuration has some bugs in its refreshing. If you change around your COM port configuration through the Device Hardware manager you need to reboot before these COM ports show up in the configuation step. Also, for Linux, David's doc is great: http://www.pilot-link.org/howto/ppp/index.html. Assuming you have everything you need in your kernel, setting this up in Linux is a one line command. Misc Useful Info: -There is a device made by KeySpan that will convert a USB port to a regular 9 pin serial port. It works under both Windows and Linux. -You can use Shortcut..3 to disable auto-power offs for your device (or just use the Stay on in cradle option). -You can force the serial port to stay open (sometimes I've had to do this) by going into the HotSync app (on the Palm), holding the up hardware button, and tapping in the upper right corner of the screen. -Getting RAS is probably a better solution than Mocha since you have a real IP address on your network. Gotchas: -Remember that the HotSyncManager on Windows keeps the serial port open so you can't have the HotSyncManager and RAS server running on the same port (see my config below) -I don't believe Win2k will do a PPP RAS over USB. I tried setting up RAS to use the Keyspan USB-Serial convert to set up a connection for my Vx, zero luck. My Windows setup: COM1 - APC UPS (absolute must for us silicon valley people) COM2 - RAS for my Palm PPP connection COM3 - KeySpan USB-Serial - Hotsync Manager Also, you might want to take a look at a little utility we wrote called tcptty. It is available with full source at: http://www.coopcomp.com/download.html It allows you to create a virtual LAN with all of your emulator sessions and is useful for debugging network apps. Cheers, -mark Cooperative Computers, Inc. PalmOS Development Firm http://www.coopcomp.com Gavin Peacock [EMAIL PROTECTED] wrote in message news:73335@palm-dev-forum... With windows 2000 (and presumably XP, but I haven't checked), you can click on make a new Connection in the network and Dial-up Connections Panel. Then select the Accept incoming connections option. Next is a dialog showing your connections options. If you have enabled the built in irDA support under win2k, you will see an option for Infrared Port. You can then continue to set up the rest of the connection. If you have a serial port, you can also set up serial connections this way. With windows 98, Irda maps to a comm port. you select that comm port when configuring a PPP server. --- Gavin Do you have any details on setting up a PPP connection over irda between Windows 98/98SE/2k/XP and Palm? Max -- -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: fldInsert Problem...
Thanks for that i understand you but where exactly would i do this line in my view fn, or db??? sorry but i'm just getting into this stuff now thanks -Original Message- From: Joe [mailto:[EMAIL PROTECTED]] Sent: 27 March 2002 15:10 To: Palm Developer Forum Subject: RE: fldInsert Problem... --- Mark Kenny [EMAIL PROTECTED] wrote: i get errors compiling saying stuff about implicit conversion from 'ModuleType' to 'const char *' ... I'm using: FldInsert(fldP, recP-Type, StrLen(recP-Type)); This is flagging errors, it works fine for errands. - and - typedef enum ModuleType{Lecture, Tutorial, Lab} ModuleType; typedef struct ErrandDB { Weekday day;/* 0 through 6 ... */ Char errands[257]; /* Free form text ... */ ModuleType Type; } ErrandDB; The compiler is telling you that it expects the second argument to FldInsert to be 'const char *' and you passed in something that is type 'ModuleType', which is an enum. The compiler can't convert an enum into a string -- you have to do that yourself. So, if you want to insert the word Lecture, Tutorial, or Lab then you have to look at the ModuleType and use it to determine which word to insert. You could use something like: Char * names[3] = {Lecture, Tutorial, Lab}; // ... FldInsert(fldP, names[recP-Type], StrLen(names[recP-Type])); __ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® http://movies.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Table Query
Hello All, Can anybody explain to me how to implement the Custom TableLoadDataFuncType for a table in which I want to show default values. I am not initeracting with the database. Thx in advance. Regards, Vikas -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Power off progrmaticaly
Hello... I'd like to know if there's a way to shut off the palm programaticaly ? I must force the palm to shut off as soon as a condition is true I guess it's possible to add a specific event but witch one ? Any help ? Thanks in advance. Christophe -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Multi-Segment Apps - Question
Thanks for the answeres to questions above that have been snipped. Is there a good description for setting all this up, as if I was doing it for the first time? Where? Where have you looked? Have you tried searching for prc-tools on Google and clicking on any of links on the first page of results, particularly any of the top five? I went to the palmos dev page and followed links to prc-tools. I followed those instructions to the point where I got an illegal operation in the final step. That made me wonder about that process. Do you have any suggestions as to how this could be made easier to find? I don't find the tools hard to find. I also don't find the setup hard to follow. However, what is lacking are the instructions that are the point of my question. That is, in previous versions, I had to do a lot of modifications to make apps larger than 32K. And this also required SEGMENT definitions in my source. Also, with a few of the early releases of SDK, I had to restructure the folder structure for some reason. And my header files had to change from time to time. So, I'm not sure how compatible my current source is with newer tools. They may work just fine but before I start down that upgrade path, I'm trying to see what problems I might encounter. My primary concerns are with the 32K problem of old and my SEGMENT definitions in my current source. Also, I use an IDE that does not require me to use make files directly. It would be nice if there was a straight forward test program that could simply be executed, from the command-line (DOS shell), to test the setup. Mike John [1] By constant-time I mean it takes a fixed amount of effort to implement a workaround on your development host. Not an amount of effort proportional to the number of projects you have, and certainly not an amount proportional to the number of lines of code you have. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: DmSeekRecordInCategory - skips, why?
Forget it - the code is ok, i made some stupid nonsense somewhere else. Werner Poschenrieder schrieb: Hi, I used the following code to always walk to the NEXT record in a given Category and I am certain id did work. uiCat = CategoryFind(_PalmDatabase, pcCat); uiIdx = (UInt)_Position; error = DmSeekRecordInCategory(_PalmDatabase, uiIdx, 0, dmSeekForward, uiCat); if (!error) if (_Position == uiIdx) // = Index was already on Category try offset = 1 error = DmSeekRecordInCategory(_PalmDatabase, uiIdx, 1, dmSeekForward, uiCat); With a certain database it seems to skip the next record and take the one which comes after the next one, i.e. when each record is in the cat, the index sequence of subsequent calls is not 0,1,2 but 0,2,4... I did not make any of its records hidden. I checked the code again and I do believe its okay. Isn't it? If yes, what's the reason? Thanks, Werner -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Power off progrmaticaly
Have you try the KeyPressed event with powerOffChr ? - Original Message - From: Christophe HOCMAN [EMAIL PROTECTED] Newsgroups: palm-dev-forum To: Palm Developer Forum [EMAIL PROTECTED] Sent: Wednesday, March 27, 2002 5:29 PM Subject: Power off progrmaticaly Hello... I'd like to know if there's a way to shut off the palm programaticaly ? I must force the palm to shut off as soon as a condition is true I guess it's possible to add a specific event but witch one ? Any help ? Thanks in advance. Christophe -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
SndPlaySystemSound in Palm OS 5
Is the sounds that the OS 5 Simulator plays with SndPlaySystemSound() are the real sound that Palm is planing to use, or are they only some samples to demonstrate the capability of the new OS? -- Regis St-Gelais ing. Ingénieur de projets / Project engineer Développement informatique / Software development Le Groupe ISAC Inc. Courriel / Email ..: [EMAIL PROTECTED] (NO SPAM!!!) Site Internet / Web site ...: www.isac-inc.com - -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: zlib in CodeWorrier
Thanks Scott. That's what I was wondering - if I had to make Palm specific changes... Y. Scott Johnson [EMAIL PROTECTED] wrote in message news:81660@palm-dev-forum... From: Young S. Cho [mailto:[EMAIL PROTECTED]] I went to www.zlib.org to look for the Palm source code that was used to create the shared library but could not find it. I wanted to find the code so that I could create a static library version. You can build a static library from the regular zlib source distribution without any Palm-specific changes. (I'm using 1.1.3 but the new 1.1.4 should work fine too.) -slj- -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
PRC-Tools distribution (was: pilrc -ro usage)
You're right, I do want a working installation... but I don't understand why a .zip file distribution wouldn't give me that. So that brings up an interesting general topic, maybe I just don't understand how PRC-Tools install works. I'm new to Palm's development tools, so forgive me if I could have RTFM somewhere... Once I get cygwin and PRC-Tools installed, I've got the PRC-Tools binaries on my system. Is there some reason I can't just zip up those tools (if I knew exactly which files they were!) and redistribute them to my team? Do the tools depend on something in cygwin (like, I suppose, cygwin dll's) so I'd have to redistribute those dependant libraries as well? Do they depend on some registry settings that wouldn't get created if I just distributed a .zip file (I'd hope not)? What I really want, is a simple tools distribution that I can pass around to my development team; so we know we're all building product using the same bits. Today, we all have to download cygwin on each PC, then install PRC-Tools using setup.exe's script, then pray setup.exe got it right, we all checked the same boxes, and we all have the same thing on everybody's system (and that Joe developer doesn't get antsy and update to the latest beta release of PRC-Tools ahead of the rest of the team). I'd just feel better if I knew we all had the same thing. Building from a released .zip file would give me that peace of mind. Thanks in advance for helping me understand all this. Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of John Marshall Sent: Tuesday, March 26, 2002 7:29 PM To: Palm Developer Forum Subject: Re: pilrc -ro usage On Tue, Mar 26, 2002 at 10:49:00PM +, Chris Ring wrote: After jumping through all the cygwin setup.exe hoops to get the latest prc-tools (whew, what a mess! All I want is a .zip file of pre-compiled binaries...), No, what you want is something that produces a working installation. Setup.exe gives you that; a zipfile of binaries doesn't. John -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: fldInsert Problem...
--- Mark Kenny [EMAIL PROTECTED] wrote: Thanks for that i understand you but where exactly would i do this line in my view fn, or db??? sorry but i'm just getting into this stuff now thanks I had to go back and read your original post to figure out what you're asking... You want to 'insert Type into a field to display it'. 1. Open your database. 2. Use DmQueryRecord (or similar method) to get a handle to a record. 3. Lock the handle to get a pointer to the record and typecast that pointer to ModuleType. 3. Then you have 3 pieces of data: yourPointer-day - a number, 0 thru 6 yourPointer-errands - a string yourPointer-Type - an enum (stored as some kind of integer) 4. Display the above three in one or more fields on a form a) convert the data to a string (here you may use the method I previously gave) b) call a function to put that string in a field Here are two functions that will help with the general case of putting a string in a field: // Set text in a field, given a fieldID and a handle to the text static FieldPtr SetFieldTextFromHandle( UInt16 fieldID, MemHandle txtH ) { MemHandle oldTxtH; FieldPtr fldP; FormPtr frmP = FrmGetActiveForm(); // get the field and a handle to its text fldP = FrmGetObjectPtr( frmP, FrmGetObjectIndex( frmP, fieldID ) ); ErrNonFatalDisplayIf( !fldP, missing field ); oldTxtH = FldGetTextHandle( fldP ); // set field to new text FldSetTextHandle( fldP, txtH ); FldDrawField( fldP ); // free old MemHandle if ( oldTxtH ) MemHandleFree( oldTxtH ); return fldP; } // Sets text in a field, given a fieldID and a pointer to a string static FieldPtr SetFieldTextFromStr( UInt16 fieldID, Char *strP ) { MemHandle txtH; txtH = MemHandleNew( StrLen( strP ) + 1 ); if ( !txtH ) return NULL; StrCopy( MemHandleLock( txtH ), strP ); MemHandleUnlock( txtH ); return SetFieldTextFromHandle( fieldID, txtH ); } __ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® http://movies.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Large Debugger Downloads Fail Randomly on Handspring
My application fails to download to the Visor consistently. It will start downloading and somewhere during the download process the connection fails and says Failed to download application to device. My application is over 200k. Smaller applications work fine. I am using a Handspring Visor and a serial cradle. I have tried the DebugPref.prc to for serial and holding the up button during download. Both fail in the same way. USB debugging works, however I am developing software for a Springboard module and USB will not work in conjunction with the Springboard. Windows 98 and Windows 2000 behave the same. Metrowerks CodeWarrior 7.1 with all upgrades installed. Tried lower baud rates. Nothing works. Isn't there a way in Codewarrior to Hotsync the application across first, then start the debugger without doing the download (since its already there via the Hotsync)? Any ideas? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Gotcha's for custom launchers?
Are there any things that a replacement launcher app has to do that may not be obvious? I'm thinking along the lines of having to respond to launch codes that only a launcher has to pay attention to, or providing some service, etc. The only thing like this I can think of is to set the system prefs to specify itself as the launcher app or to restore the Palm OS launcher as the launcher, both by user request. Thanks, Mark Peters -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: appInfoID and sortInfoID for resource DBs
Well, this does NOT mean that this won't be supported in the future. I was planning to answer the same thing but after carefully thinking I refrained from doing that. This kind of advice will push people to assume that this will NEVER be supported. Then they will create applications with this restriction coded in it and their applications will break in the future. Or this will oblige us to do all sorts of bad things to keep their application working. What I mean is that, if Palm OFFICIAL documentation does not state something, you should not assume it. Even if current PalmOS code does not support it. Cordially, Regis. Regis NICOLAS - Engineering Director, Montpellier Site Palm OS 5.0 Technical Lead Palm Computing Europe, a PalmSource, Inc. subsidiary When the finger points to the sky, the idiot looks at the finger. -Original Message- From: Danny Epstein [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 26, 2002 8:37 PM To: Palm Developer Forum Subject: RE: appInfoID and sortInfoID for resource DBs Paul asked: Could there be appInfoID and sortInfoID for resource DBs? I answered: Yup. The Palm File Format Spec document indicates that these are applicable to both record and resource databases. Correction: I was just looking at ExgDBWrite, and it doesn't support app info or sort info blocks on resource databases. If a resource database has an app info and/or sort info block, the prc generated by ExgDBWrite won't include it/them. AFAICT ExgDBRead supports app info and sort info blocks on resource databases, so incoming PRCs shouldn't be a problem. -- Danny @ PalmSource -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: Font Resource Format
OK, So someone at PalmSource is looking at it right now :-) There are some problems in the way the fonts are generated. I am currently working on a fix which I will send you Aaron but I wanted to take some time to explain what the problems are. A font may not contains all the characters or not even contiguous characters. For example it may contain characters 48 to 57 (digits) and 32 (space). Now if your font is the currently selected one and you try to draw or manipulate (CharsWidth, ...) non existent characters, PalmOS is using the missing char. The missing char is an additional character added at the end of the font which is not really part of it. It does not even has a number. It is appended at the end of the bitmap and the 2 arrays (of widths and columns) contains info for it at the end. If your font does not provide this missing char you'd better not use any character not in it. PilRC already allows to put this missing char: you have to use GLYPH -1 at the end of the resource definition file. However there are some problems in the generation of such a font. Plus there are a couple of missing checks (like GLYPH -1 must be the last one in the font definition file - given the way PilRC compiles the font). There are no provisions when it is not provided (like creating a 0-width one). I will fix that and also update PRCExplorer to explicitly display the missing char. Note that the bitmap displayed at the top of the font viewer shows the missing char glyph when it is needed (because the char is not defined). OF COURSE THIS IS NOT PALMSOURCE OFFICIAL INFORMATION. I am providing it to help tools developers to create tools which are fully operable with PalmOS. Cordially, Regis. Regis NICOLAS - Engineering Director, Montpellier Site Palm OS 5.0 Technical Lead Palm Computing Europe, a PalmSource, Inc. subsidiary When the finger points to the sky, the idiot looks at the finger. -Original Message- From: Aaron Ardiri [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 7:09 PM To: Palm Developer Forum Subject: Re: Font Resource Format On Mon, 25 Mar 2002, Lance Gregory wrote: Can anybody point me to where I might find the format for the font resources. I would like to use the FntDefineFont() API call, but can't seem to find the format for a font file anywhere. pilrc has to what i know the best reverse engineered work for the font formats :) it is covered with warnings, and, i am not too sure if someone at palm has actually gone over it to verify it :) // az [EMAIL PROTECTED] http://www.ardiri.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Urgent!! Setting and Getting the value of the checkboxTableItem
Hi, I have a table that displays 3 columns of checkboxes that are not grouped together. I do not know how to set and get the value of the checkboxes so that I can display the ticks in the boxes, can anyone kindly enough to help me what functions dp I have to use, or is there any sample source that handled the table checkboxes value? Thanks you very much in advance. Low Pui Kuen _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Cant enter text in fields on pose
Thanks for the reply. The problem occurs when I click stop on the Gremlin, then close the gremlin dialog box. If I let the gremlins run until complete, exit the app and come back in, it won't happen. I tried this on memo pad it does the same thing so I guess it's just what happens when one stops a gremlin in this manner Stopping a gremlin on 3.3pose runnin on *nix platform machines doesn't cause this at all so it caught me off guard. I'm only using 3.4 on XP due to compilation problems I've run into with 3.4 on my *nix boxes. Anyway glad it's not some mysterious issue with my app, thanks for the quick reply and for all the great work on pose. Kevin. At 4:42 PM -0800 3/26/02, Kevin wrote: Hi I have an app which if I put it on pose and run gremlins on it for a while, it (the app or pose?) won't let me input text into any of the fields (multiple forms) without a soft reset. It just ignores the keyboard letter/ backspace/arrow keys. This is happening on windows xp with pose 3.4. My question is, is there a problem with my app, or is this just a quirk of pose that can arise? I haven't heard of this problem before, so I kind of doubt that it's Poser's fault. However, Poser *does* prohibit entering text when running a Gremlin, so there's a small window for implicating Poser. During this state, can you use the mouse to emulate pen events? If so, then I'd further doubt Poser's involvement. If Poser let's you emulate pen events, then it will also let you enter key events. If it's an app problem any ideas what would cause that? I can beat it to death with gremlins on a debug rom works just fine. I'm not sure if I understand what you're saying here. You say it works just fine after running Gremlins, but I thought you said in your first paragraph that that's when problems occurred. At any rate, try turning on logging of posted and unposted events to see what, if anything, is making it through the OS's event queue. Perhaps that will tell you something. -- Keith Rollin -- Palm OS Emulator engineer -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
prc-tools (Testing?)
I posted a response to John's question about what is needed, if anything. Let me give an example of part of a problem I am having. This is not directly related to my questions in another thread. I have tried installing the latest CGYWIN and PRC-TOOLS. Actually, I have installed them. Everything went fine. Then, I copied my SDK3.5 to the PalmDev folder (on a Win98 system). My directory structure is: c:\cygwin (for the cygwin installation c:\PalmDev (for the prc-tools installation c:\PalmDev\SDK3.5 (for the SDK) Now, I also use the PilotMag IDE (that I have used for a couple of years). BTW, I have updated it to the version that is known to work well with prc- tools20 and has been tested on Win98. This IDE does not use make files. It just executes the commands for each step. If a prc-tools installation works for a make file then it should work from the IDE. Anyway, I tried to compile my old application (set up for old prc-tools, etc). It generated the resources just fine; it compiled the resources just fine; it even compiled all the 'c' sources just fine. Then it got to the build part. At that point, I got an error saying that the SDK3.5 cannot be found at /PalmDev. So, I'm at a bit of a loss as to what the problem might be. Of course it should know where the SDK is because it was able to compile. At least prc- tools knows where the SDK is since it compiled. The fact that it references the /PalmDev makes me think that somehow this problem has to do with the cygwin installation and/or the mount command. I did execute: mount -tf c:\PalmDev /PalmDev and I did put cygwin\bin in my path and I know that works since I can issue the basic ls, cat, etc from any folder and they execute; so the path is known. I'm not clear on the function of the mount in the installation process or what goes on after compile that requires cgywin and the mounting of the PalmDev location. I have never tested this installation, from the command line. That would require making a makefile for my application; something that I don't look forward to. Is there an easy to test such an installation, with something that is included in the installation process? It would be of use to have a test program or some test program in the PalmDev folder that one could simply execute that would test the installations to make sure everything works without having to go through the process of generating a makefile. Is that possible? Back to my problem: What might be the cause of the IDE not being able to build the application, based on the error of not being able to find the SDK in the PalmDev? I have asked the author of PilotMag and he believes the problem is with something I missed in the prc-tools/cygwin installation. Any ideas? Thanks, -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: Fixing 16-bit reference out of range errors
There's a decent discussion of your options in the slides for Designing the Non-Simple Application from PalmSource 2002 at http://www.palmsource.com/events/pdf/406.pdf FYI, it seems that most of the slides from this conference are available at http://www.palmsource.com/events/postdev.html Chris Ring Software Engineer Texas Instruments -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ed Ross Sent: Tuesday, March 26, 2002 6:32 PM To: Palm Developer Forum Subject: Fixing 16-bit reference out of range errors Hello everyone, I got to the point in my application where I got the error 16-bit reference out of range I read in a book I have that there are four ways to deal with this: 1. Changing the link order of the application 2. Using the Smart code model 3. Reorganizing or rewriting the application 4. Using Jump islands For the moment I have used #2 (Using the smart code model). The book I have does not get into the pros and cons of each one so I am wondering which is the best, next best etc. and why. From what I can tell - obviously #3 would be the best - if it is possible to reorganize the project to the necessary point. Any thoughts? Thanks, Ed. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Cant enter text in fields on pose
Kevin, this sounds similar (identical?) to a problem I am experiencing with POSE 3.3 (haven't tried it with 3.4 yet). See my recent posting in the emulator forum: http://www.escribe.com/computing/pcpef/m4414.html Thanks, Oliver __ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® http://movies.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: prc-tools (Testing?)
There's a simple Helloworld project with a PRC-Tools makefile that should work at http://tangentsoft.net/palmfaq/examples/hello.html Chris Ring Software Engineer Texas Instruments -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, March 27, 2002 11:34 AM To: Palm Developer Forum Subject: prc-tools (Testing?) snip I have never tested this installation, from the command line. That would require making a makefile for my application; something that I don't look forward to. Is there an easy to test such an installation, with something that is included in the installation process? It would be of use to have a test program or some test program in the PalmDev folder that one could simply execute that would test the installations to make sure everything works without having to go through the process of generating a makefile. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Urgent!! Setting and Getting the value of the checkboxTableItem
Low: Try TblSetItemInt and TblGetItemInt functions. The values they must get/set are 0 and 1, unchecked and checked respectively. Fabrício de Paula - Original Message - From: Low Pui Kuen [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Wednesday, March 27, 2002 4:22 PM Subject: Urgent!! Setting and Getting the value of the checkboxTableItem Hi, I have a table that displays 3 columns of checkboxes that are not grouped together. I do not know how to set and get the value of the checkboxes so that I can display the ticks in the boxes, can anyone kindly enough to help me what functions dp I have to use, or is there any sample source that handled the table checkboxes value? Thanks you very much in advance. Low Pui Kuen _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: prc-tools (Testing?)
On Wed, 27 Mar 2002, Chris Ring wrote: There's a simple Helloworld project with a PRC-Tools makefile that should work at http://tangentsoft.net/palmfaq/examples/hello.html also, the examples on my website also should work fine under prc-tools 2.0+ (cube3d, burning, and toggle).. thats where i point most people when they start nagging me :) // az [EMAIL PROTECTED] http://www.ardiri.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Dynamic UI
But how they write an underline to the link? Anton [EMAIL PROTECTED] ???:[EMAIL PROTECTED] 1.Write a text with WinDrawChars 2. Save position of written text in a structure, for variables or RectangleType . 3. Handle penDownEvent. Check out whether the pen is tapped in this rectangle. Very simple :) Anton - Original Message - From: Joseph Chan [EMAIL PROTECTED] Newsgroups: palm-dev-forum To: Palm Developer Forum [EMAIL PROTECTED] Sent: Wednesday, March 27, 2002 2:48 PM Subject: Dynamic UI Hi all, Does anyone know how to define a dynamic UI like the clickable link in HTML/WAP browser in palm? Thanks and regards Joseph Chan === The Hong Kong Polytechnic University Department of Computing [EMAIL PROTECTED] === -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: Dynamic UI
You could just use a non-editable field, then look for a fldEnterEvent to know when it has been clicked. (An underlined field looks like a link). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Joseph Chan Sent: Wednesday, March 27, 2002 1:06 PM To: Palm Developer Forum Subject: Re: Dynamic UI But how they write an underline to the link? Anton [EMAIL PROTECTED] ???:[EMAIL PROTECTED] 1.Write a text with WinDrawChars 2. Save position of written text in a structure, for variables or RectangleType . 3. Handle penDownEvent. Check out whether the pen is tapped in this rectangle. Very simple :) Anton - Original Message - From: Joseph Chan [EMAIL PROTECTED] Newsgroups: palm-dev-forum To: Palm Developer Forum [EMAIL PROTECTED] Sent: Wednesday, March 27, 2002 2:48 PM Subject: Dynamic UI Hi all, Does anyone know how to define a dynamic UI like the clickable link in HTML/WAP browser in palm? Thanks and regards Joseph Chan === The Hong Kong Polytechnic University Department of Computing [EMAIL PROTECTED] === -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: Fixing 16-bit reference out of range errors
multiple segments just to avoid this headache. If you have one monolithic .c file, then changing the link order is a much bigger job, as CodeWarrior doesn't support specifying the link order within a compilation unit. Just wanted to correct this -- this isn't quite true. The #pragma segment call will allow you to put parts of a source file in a different segment, so you could (theoretically) have one big source file with multiple segments. You still have to keep an entire function within one segment, but you can break up the file. -hkmlt -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Dynamic UI
You have to define an underlined font. Why there isn't one included with the OS, I'll never know. Look up something like Pilot Font Editor, which will allow you to load a font resource, edit the characters, and save it, and then you can use FntDefineFont to load it. There's also a PRC floating around somewhere that will download all the OS font resources from a device to your hard drive, so you can edit them. Alternatively, if you really don't mind rolling your own, you can define a PilRC font, which consists of a text file with the bits for each character laboriously reproduced in supersize. Hope this helps... -d On Thu, 28 Mar 2002, Joseph Chan wrote: But how they write an underline to the link? Anton [EMAIL PROTECTED] ???:[EMAIL PROTECTED] 1.Write a text with WinDrawChars 2. Save position of written text in a structure, for variables or RectangleType . 3. Handle penDownEvent. Check out whether the pen is tapped in this rectangle. Very simple :) Anton - Original Message - From: Joseph Chan [EMAIL PROTECTED] Newsgroups: palm-dev-forum To: Palm Developer Forum [EMAIL PROTECTED] Sent: Wednesday, March 27, 2002 2:48 PM Subject: Dynamic UI Hi all, Does anyone know how to define a dynamic UI like the clickable link in HTML/WAP browser in palm? Thanks and regards Joseph Chan === The Hong Kong Polytechnic University Department of Computing [EMAIL PROTECTED] === -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Fixing 16-bit reference out of range errors
I've broken my project into two pieces, read the slides for Designing...non-simple apps. I am curious about performance issues. I am grouping things that are related in the two segments and I know that there are extra steps, or jumps that have to be called between segments. 1.) For people that have used multi-segment apps, is there a noticeable delay or performance hit 2.) Can I share global variables between the two segments? Ed. Chris Ring wrote: There's a decent discussion of your options in the slides for Designing the Non-Simple Application from PalmSource 2002 at http://www.palmsource.com/events/pdf/406.pdf -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: Fixing 16-bit reference out of range errors
Re: the #pragma segment call Thanks. I guess this is one of those things that was added in the last century - uh - few years ;-) -- Peter Epstein -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: prc-tools (Testing?)
On Wed, Mar 27, 2002 at 02:34:17PM -0500, [EMAIL PROTECTED] wrote: Then, I copied my SDK3.5 to the PalmDev folder (on a Win98 system). My directory structure is: [...] c:\PalmDev\SDK3.5 (for the SDK) Did you read the installation instructions that came with this SDK? Have you read any of the messages in the archives of this mailing list from a year or two back pertaining to installing the 3.5 SDK for use with prc-tools? Have you considered trying the 4.0 SDK (yes, I know that you will want to have the 3.5 SDK installed alongside it as well), which comes with an installer that will do this correctly for you? It also comes with even clearer instructions. I have asked the author of PilotMag and he believes the problem is with something I missed in the prc-tools/cygwin installation. Close, but no banana. John -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: Fixing 16-bit reference out of range errors
If you use the small code model for your multi-segment app, and you arrange your code into segments in a logical way, the number of slow calls from one segment to another will be low, and the performance will be good. A large single segment application that uses the smart or large code model will be slower. Sharing global variables between segments doesn't require anything special on your part. However, if you break your code up into multiple compilation units, you have to get the compiler and linker to share global variables between compilation units (.c files). Any good book on C will explain how to do this. See, for example, page 103 of C: A reference manual by Harbison and Steele. -- Peter Epstein -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: prc-tools (Testing?)
On Wed, Mar 27, 2002 at 02:34:17PM -0500, [EMAIL PROTECTED] wrote: Then, I copied my SDK3.5 to the PalmDev folder (on a Win98 system). My directory structure is: [...] c:\PalmDev\SDK3.5 (for the SDK) Did you read the installation instructions that came with this SDK? Yes! Have you read any of the messages in the archives of this mailing list from a year or two back pertaining to installing the 3.5 SDK for use with prc-tools? Yes! Have you considered trying the 4.0 SDK (yes, I know that you will want to have the 3.5 SDK installed alongside it as well), which comes with an installer that will do this correctly for you? It also comes with even clearer instructions. That might be interesting thing to do, but it is irrelevant to my problem. I have asked the author of PilotMag and he believes the problem is with something I missed in the prc-tools/cygwin installation. Close, but no banana. John Don't understand this comment. Are you saying that it's not possible that I could have set something up incorrectly? That the installation process is fool-proof and that I could not have made a mistake? Mike -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Font Resource Format
On Wed, Mar 27, 2002 at 09:02:33PM +0100, Aaron Ardiri wrote: a lot of people use PilRC in one way or another, either in prc-tools or even as a plugin to code warrior.. *with* prc-tools, not in. PilRC is not part of prc-tools, though it is often used in conjunction with prc-tools. John terminology patrol :-) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: prc-tools (Testing?)
On Wed, Mar 27, 2002 at 02:34:17PM -0500, [EMAIL PROTECTED] wrote: I have never tested this installation, from the command line. That would require making a makefile for my application; something that I don't look forward to. No makefile required, just a little imagination. Is there an easy to test such an installation, with something that is included in the installation process? Create a file foo.c: #include PalmOS.h UInt32 PilotMain (UInt16 a, void *b, UInt16 c) { return 0; } and you should get no warnings or errors of any kind when you compile it with (add -palmos3.5 etc to taste to the first line) m68k-palmos-gcc -o foo foo.c build-prc -n footest -c DUMB foo and you should end up with a foo.prc that you can install and even run -- it won't crash, but it won't do anything interesting either. It would be of use to have a test program or some test program in the PalmDev folder that one could simply execute that would test the installations to make sure everything works without having to go through the process of generating a makefile. There are several example projects available from the prc-tools homepage. Several of the examples in the Palm OS SDK are buildable with prc-tools out of the box. As Chris and Aaron noted, there are lots of other examples around. This is also a value-add opportunity for a prc-tools-based IDE: for example, Falch.net DeveloperStudio comes with sample projects, and I trust the IDE you're using does too. John -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Dynamic UI
dan == dan mason [EMAIL PROTECTED] comments: dan You have to define an underlined font. [...] Or you can use WinSetUnderlineMode(). Jake -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: prc-tools (Testing?)
On Wed, Mar 27, 2002 at 04:31:23PM -0500, [EMAIL PROTECTED] wrote: c:\PalmDev\SDK3.5 (for the SDK) Did you read the installation instructions that came with this SDK? Yes! Read them again. Have you read any of the messages in the archives of this mailing list from a year or two back pertaining to installing the 3.5 SDK for use with prc-tools? Yes! Because it's you, I'll just tell you which one to re-read: http://www.escribe.com/computing/pcpqa/m10713.html Have you considered trying the 4.0 SDK That might be interesting thing to do, but it is irrelevant to my problem. If it were irrelevant, I wouldn't have suggested it. The installer would put the 4.0 SDK in the right place; hopefully you would be able to deduce from that what the right place for the 3.5 SDK is. Hint: what's above isn't it. John -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
plug-ins for mail software
Has anybody on this list programmed plug-in for mail? If yes have you done one for wml attachement (that would allow a user to be notified to go to a wml site)? thanks laurence -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Dynamic UI
If you're going to use WinDrawChars, yeah, but if you want to use a frameless button, you need to define the font, I think? -d On 27 Mar 2002, Jake Donham wrote: dan == dan mason [EMAIL PROTECTED] comments: dan You have to define an underlined font. [...] Or you can use WinSetUnderlineMode(). Jake -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: prc-tools (Testing?)
On Wed, Mar 27, 2002 at 04:31:23PM -0500, [EMAIL PROTECTED] wrote: snipped Have you read any of the messages in the archives of this mailing list from a year or two back pertaining to installing the 3.5 SDK for use with prc-tools? Yes! Because it's you, I'll just tell you which one to re-read: http://www.escribe.com/computing/pcpqa/m10713.html Here is my SDK 3.5 directory strucure, it seems to match the link above. The directory structure of sdk-3.5 is: C:\PalmDev\sdk-3.5\lib C:\PalmDev\sdk-3.5\include C:\PalmDev\sdk-3.5\include\Libraries C:\PalmDev\sdk-3.5\include\Dynamic C:\PalmDev\sdk-3.5\include\Core C:\PalmDev\sdk-3.5\include\Core\UI C:\PalmDev\sdk-3.5\include\Core\System C:\PalmDev\sdk-3.5\include\Core\Hardware C:\PalmDev\sdk-3.5\include\Libraries\INet C:\PalmDev\sdk-3.5\lib\m68k-palmos-coff This did work before, with prc-tools20 and this directory structure. It was a backup of a working SDK 3.5, so it seems that the structure was correct. I remember having to make the changes in the archived article and wanted to avoid having to do this manually again. That is why I copied my SDK 3.5 from a backup copy; because I knew I had a copy with the correct structure. So, if this is the correct structure, it does not resolve my problem. Have you considered trying the 4.0 SDK That might be interesting thing to do, but it is irrelevant to my problem. If it were irrelevant, I wouldn't have suggested it. The installer would put the 4.0 SDK in the right place; hopefully you would be able to deduce from that what the right place for the 3.5 SDK is. Hint: what's above isn't it. John I will try 4.0 SDK. I was just trying to get back to a known working point before I added new stuff. I will try one of the simple examples. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Multi-Segment Apps - Question
On Wed, Mar 27, 2002 at 11:37:00AM -0500, [EMAIL PROTECTED] wrote: Is there a good description for setting all this up, as if I was doing it for the first time? Where? [...] I don't find the tools hard to find. I also don't find the setup hard to follow. Perhaps then you could explain what your previous message's questions (above) were *really* asking. I followed those instructions to the point where I got an illegal operation in the final step. That made me wonder about that process. If you think you have found a bug in Cygwin's setup.exe utility, then you should report it to the Cygwin people. There's not a lot of point talking about it here. (For the record, I've never seen or heard of this error.) However, what is lacking are the instructions that are the point of my question. [...] So, I'm not sure how compatible my current source is with newer tools. I thought I covered that in the message to which you replied. However here is some more information that may be what you think is lacking: When things change, they get documented. When things don't change, they stay the same. You might want to read the documentation, which you can find at http://prc-tools.sourceforge.net/doc/ John -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Font Resource Format
I have now gotten all setup with pilrc. I am trying to use pilfont. it takes a binary file, and in the readme.txt it says to extract a binary font file from the ROM. How do I do this? I have looked at the files in the ROM and can't see any font files in there. Are they embedded in some other PRC? Lance Gregory At 07:08 PM 3/25/02 +0100, you wrote: On Mon, 25 Mar 2002, Lance Gregory wrote: Can anybody point me to where I might find the format for the font resources. I would like to use the FntDefineFont() API call, but can't seem to find the format for a font file anywhere. pilrc has to what i know the best reverse engineered work for the font formats :) it is covered with warnings, and, i am not too sure if someone at palm has actually gone over it to verify it :) // az [EMAIL PROTECTED] http://www.ardiri.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Debugging multiple segment application
I recently converted an app to multiple segment. This took about 3 seconds after reading http://oasis.palm.com/dev/kb/papers/1469.cfm (Thanks to whomever wrote this!) I was thinking this was too easy. Now I find I can't debug functions outside the first segment. Searching the forum, I found one reference to this from someone using GCC who was moving stuff into the first segment to debug. Does the same restriction apply to CodeWarrior (version 7). (Couldn't find anything in the MetroWerks FAQ, or new features list for version 8.) Thanks Matt -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: Debugging multiple segment application
Make sure the dot is there in the debug column for each of your .c files in your project window. Look for the little green bug, then scan down that column. Click where the dot should be to add a dot. -- Peter Epstein -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Problem with GCC and C++ 'new' operator
Hi everyone, I'm developing an app in C++ with PRC tools.5. I have an inheritance hierarchy that works fine until I add a third inherited class. Then, when I try to use 'new' with one of the derived classes, I get an 'invalid opcode' from the emulator. It looks something like this: class BaseClass { ... }; class Derived1 : public BaseClass { ... }; class Derived2: public BaseClass { ... }; This works fine - I can use 'new Derived1' and 'new Derived2' without any trouble (BaseClass is abstract and cannot be instantiated on its own). When I add the following: class Derived3: public BaseClass { ... }; calls to 'new Derived1', 'new Derived2' and 'new Derived3' all give me an 'invalid opcode' message from the emulator. As soon as I get rid of the third derived class, eveything works fine. As far as I can trace, the bug seems occur in the new operator itself, because control isn't even getting to my base-class constructor. Has anyone come across this before? Is it a known bug? Is there a way around it? Thanks in advance, Igor Siemienowicz -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: Debugging multiple segment application
Hi Peter Yep, got a dot! The debugger won't stop at breakpoints when the file is not in the first segment. However, when I move it to the first segment (still has a dot) I can debug it. While the debugger is running, the breakpoints that I set before I ran the app are dim, and I cannot set new breakpoints in the file in question. Can you breakpoint a multiple segment app in non-first-segment-code on a Mac? Is this a Windows thing? Matt At 03:58 PM 27/3/2002 -0800, you wrote: Make sure the dot is there in the debug column for each of your .c files in your project window. Look for the little green bug, then scan down that column. Click where the dot should be to add a dot. -- Peter Epstein -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: Debugging multiple segment application
I've never had any problem with this. I've done lots of multi-segment app debugging on Macs, but all using the old R6 version of CodeWarrior (don't ask). Sorry, I know that's little help. -- Peter Epstein -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Large Debugger Downloads Fail Randomly on Handspring
My application fails to download to the Visor consistently. It will start downloading and somewhere during the download process the connection fails and says Failed to download application to device. Maybe the PRC is bad. Can you successfully drag it onto POSE when POSE is running? Regards, Steve Mann -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re:Installing/Deleting PRC
Hi all, Thanks a lot guys for all of ur suggestions. I wrote some start up code in the PRC whenever there is a SyncLaunchCmd notification(as per Danny's suggestion). I looked for the database version, deleted them if they do not match with the current version.And it works great. Thanks again. Venu __ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® http://movies.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Multi-Segment Apps - Question
I never said it was a bug. In fact the instructions say that this can happen. I was just pointing out what I have done and where I was at. No, I guess I'll just drop the matter. Maybe someone that is not tired of answering questions can help out. It gets a little tiresome geting flippant answers from people who think this is so easy; just as I'm sure you get tired of hearing the questions. Unfortunately, you forgot how hard it was when you started. Sorry to have bothered you. On Wed, Mar 27, 2002 at 11:37:00AM -0500, [EMAIL PROTECTED] wrote: Is there a good description for setting all this up, as if I was doing it for the first time? Where? [...] I don't find the tools hard to find. I also don't find the setup hard to follow. Perhaps then you could explain what your previous message's questions (above) were *really* asking. I followed those instructions to the point where I got an illegal operation in the final step. That made me wonder about that process. If you think you have found a bug in Cygwin's setup.exe utility, then you should report it to the Cygwin people. There's not a lot of point talking about it here. (For the record, I've never seen or heard of this error.) However, what is lacking are the instructions that are the point of my question. [...] So, I'm not sure how compatible my current source is with newer tools. I thought I covered that in the message to which you replied. However here is some more information that may be what you think is lacking: When things change, they get documented. When things don't change, they stay the same. You might want to read the documentation, which you can find at http://prc-tools.sourceforge.net/doc/ John -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: prc-tools (Testing?)
I am going to try that as soon as I get home. Thanks, Mike There's a simple Helloworld project with a PRC-Tools makefile that should work at http://tangentsoft.net/palmfaq/examples/hello.html Chris Ring Software Engineer Texas Instruments -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, March 27, 2002 11:34 AM To: Palm Developer Forum Subject: prc-tools (Testing?) snip I have never tested this installation, from the command line. That would require making a makefile for my application; something that I don't look forward to. Is there an easy to test such an installation, with something that is included in the installation process? It would be of use to have a test program or some test program in the PalmDev folder that one could simply execute that would test the installations to make sure everything works without having to go through the process of generating a makefile. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: Debugging multiple segment application
On Wed, 27 Mar 2002, Peter Epstein wrote: I've never had any problem with this. I've done lots of multi-segment app debugging on Macs, but all using the old R6 version of CodeWarrior (don't ask). Sorry, I know that's little help. I've personally had trouble with that with gdb... the stack backtrace will show the correct files and line numbers, but the function names and everything else will be jumbled up unless the function is in the first segment. --- Brian Smith // avalon73 at arthurian dot nu // http://www.arthurian.nu/ Software Developer // Gamer // Webmaster // System Administrator You know I could have been in the NSA, but they found out my parents were married. -- Martin Bishop, Sneakers -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Debugging multiple segment application
I just started a multi-segment app today and I am having the same problem. No breakpoints will work - and now I get Object Not In Form on objects I see in constructor and I see in the header file. I am going nuts here. I am using Windows 98 with Codewarrior 8.0. Ed. Matt Hebley wrote: Hi Peter Yep, got a dot! The debugger won't stop at breakpoints when the file is not in the first segment. However, when I move it to the first segment (still has a dot) I can debug it. While the debugger is running, the breakpoints that I set before I ran the app are dim, and I cannot set new breakpoints in the file in question. Can you breakpoint a multiple segment app in non-first-segment-code on a Mac? Is this a Windows thing? Matt -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: PRC-Tools distribution (was: pilrc -ro usage)
On Wed, Mar 27, 2002 at 05:57:00PM +, Chris Ring wrote: So that brings up an interesting general topic, maybe I just don't understand how PRC-Tools install works. I'm new to Palm's development tools, so forgive me if I could have RTFM somewhere... (You mean Palm OS development tools, not *Palm's* development tools, which would be something different.) IMHO this is off-topic here and I really don't have time to properly help you understand all this, so here are some general thoughts only. Red Hat's RPM, Debian's dpkg, Cygwin's setup.exe, and Windows' Install/Remove Programs are all Package Management Systems, implemented with various degrees of success. Package management is a Good Thing. A package manager helps you install, uninstall and upgrade things. It tells you what versions you've got installed and maybe tells you when there's a new one. It tells you what files belong to what package, and vice versa. It helps you find the documentation. It both slices and dices. You really don't want to go back to the bad old days of unpack .zip file into temporary directory, read readme file which is sometimes called readme.txt or sometimes readme.1st, copy parts here and parts there, find little setup.bat script that sets up registry stuff, reread readme to see how to use it, run setup.bat... then months pass, you want to uninstall it... oh no I've lost the uninst.bat script from that particular temporary directory, and I can't remember which DLLs in C:\WINDOWS belong to this one. A package management system insulates you from all those details. Do the tools depend on something in cygwin (like, I suppose, cygwin dll's) so I'd have to redistribute those dependant libraries as well? Do they depend on some registry settings that wouldn't get created if I just distributed a .zip file (I'd hope not)? Yes and yes (with good reason -- if you want to complain about your dashed hopes, feel free to do so on the Cygwin mailing list, whose denizens will be happy to flame you for posting an annoying question which comes up weekly :-)). What I really want, is a simple tools distribution that I can pass around to my development team; so we know we're all building product using the same bits. A package management system makes it *easier* to verify what version Antsy Joe has installed. Today, we all have to download cygwin on each PC, then install PRC-Tools using setup.exe's script, then pray setup.exe got it right, If you believe that a prc-tools binary I built does anything useful (for example, if you believe that it's not a Trojan horse) and you believe that the Cygwin binaries somebody else built work, then you might as well believe that setup.exe works too. (Much like, as an end user, you more or less believe that InstallShield works.) (Amusingly enough, for most of the last week setup.exe *has* been broken and hasn't installed prc-tools on Windows correctly. But it was fixed yesterday, within 24 hours of my reporting the problem. There was no prayer involved: you could see the failure pretty easily.) I'd just feel better if I knew we all had the same thing. Building from a released .zip file would give me that peace of mind. In your in-house developers situation, it's just possible that a .zip file would give you that peace of mind. (But I believe the package managed solution would too.) It'd be a crazy waste of time to try to duplicate what setup.exe does this week with the registry, but it might be worthwhile to have your own prc-tools released .zip file. In fact, if you decided to learn enough about this stuff to do this, you might find out that the prc-tools Cygwin binary package *is* a released archive file that mostly just needs to be unpacked in the right place. ;-) But doing this would throw away some functionality that setup.exe gives you. More importantly from a corporate viewpoint: if setup.exe goes wrong, you can get support from the Cygwin maintainers. If your local zipfile thingie goes wrong, it's your problem. But the public release situation is different. You're right, I do want a working installation... but I don't understand why a .zip file distribution wouldn't give me that. ^^ It's not just you. There's tens of thousands of you. You might be able to control your in-house developers' installations and force them to follow the instructions (or else you're fired, buster!), but there's no way to compel the general public to follow instructions, or even just to read them. Mike Davis is demonstrating this very well at this very moment :-). The .zip file distribution of the SDK is not giving him a working installation. A package suitable for machine unpacking might constrain his flexibility and choice a little, but it would instantly solve his frustration. (And mine! :-)) It's not even his fault. This is not sync the .prc to your device (and some people even have trouble with that!).
TimGetSeconds Conversion
Does anyone have source that does the same thing as TimSecondsToDateTime? (Convert the number of seconds since 12:00am January 1, 1904 into a more usable structure?) I need it for a non-PalmOS Platform.. Thanks -- Bradly J. Barton - [EMAIL PROTECTED] Jenies Technologies Incorporated (972) 602-1835 http://www.JTI.net http://HandAble.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
more
I contacted the following: Cal Academy of Science: http://www.calacademy.org/events/rental/Index.htm Irish Cultural center http://www.angelfire.com/mn/sfirish/ YMCA http://www.ymcasf.org/Mission/facilities.html there is a school break right now so i am not sure I will get a reply this week. Leadership High http://www.leadershiphigh.org/ Lowell School http://www.sfusd.edu/schwww/sch697/contact/ Gateway School Gay lesbian Bisexual Trans gender center http://www.sfgaycenter.org/roomrentals.php -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: prc-tools (Testing?)
Ok, I tried the installation all over. I am using Win98 OS. I reinstalled the full cygwin, in directory c:\cygwin. I had already installed the prc-tools, in c:\PalmDev. I have placed the 3.5 SDK in the c:\PalmDev folder I have copied the hello program below to a folder. I set the path to point to c:\cygwin\bin I used the mount -tf c:\PalmDev /PalmDev My SDK directory structure is: C:\PalmDev\sdk-3.5\lib C:\PalmDev\sdk-3.5\include C:\PalmDev\sdk-3.5\include\Libraries C:\PalmDev\sdk-3.5\include\Dynamic C:\PalmDev\sdk-3.5\include\Core C:\PalmDev\sdk-3.5\include\Core\UI C:\PalmDev\sdk-3.5\include\Core\System C:\PalmDev\sdk-3.5\include\Core\Hardware C:\PalmDev\sdk-3.5\include\Core\System\Unix C:\PalmDev\sdk-3.5\include\Libraries\INet C:\PalmDev\sdk-3.5\lib\m68k-palmos-coff I navigated to the hello example. I executed make I now get the following errors: m68k-palmos-gcc -palmos3.5 -Wall -g -c -o hello.o hello.c sdkfind: installation problem, cannot exec '/usr/m68k-palmos/real- bin/gcc.exe': No such file or directory MAKE: *** [hello.o] Error 255 Then, I thought that maybe it was because I did not reinstall prc- tools after I executed the mount So, I then reinstalled prc-tools again per the instructions. Then when I executed make again, I got a different error. This time I got: m68k-palmos-gcc -palmos3.5 -Wall -g -c -o hello.o hello.c m68k-palmos-gcc: installation problem, cannot exec 'cpp0': No such file or directory MAKE: *** [hello.o] Error 1 Any ideas, Chris? Thanks, In response to this below: There's a simple Helloworld project with a PRC-Tools makefile that should work at http://tangentsoft.net/palmfaq/examples/hello.html Chris Ring Software Engineer Texas Instruments -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, March 27, 2002 11:34 AM To: Palm Developer Forum Subject: prc-tools (Testing?) snip I have never tested this installation, from the command line. That would require making a makefile for my application; something that I don't look forward to. Is there an easy to test such an installation, with something that is included in the installation process? It would be of use to have a test program or some test program in the PalmDev folder that one could simply execute that would test the installations to make sure everything works without having to go through the process of generating a makefile. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: TimGetSeconds Conversion
--- Bradly J. Barton [EMAIL PROTECTED] wrote: Does anyone have source that does the same thing as TimSecondsToDateTime? (Convert the number of seconds since 12:00am January 1, 1904 into a more usable structure?) I need it for a non-PalmOS Platform.. I seem to recall writing that code years ago for an intro to programming course... Bradley, haven't you yet signed the NDA to obtain the PalmOS source code? I think you'll find code for TimSecondsToDateTime in DateTime.c. I'm sure you could adapt that algorithm to work on another platform. __ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® http://movies.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: prc-tools (Testing?)
Here's what my cygnus.bat looks like: @ECHO OFF SET MAKE_MODE=UNIX SET PATH=c:\cygnus\CYGWIN~1\H-I586~1\bin;c:\PalmDev\pilrc;c:\Program Files\PRC-TOOLS\H-i586-cygwin32\bin;%PATH% Bash Hope this helps! I installed everything into their default locations. Brian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Mike Davis Sent: Wednesday, March 27, 2002 7:09 AM To: Palm Developer Forum Subject: RE: prc-tools (Testing?) Ok, I tried the installation all over. I am using Win98 OS. I reinstalled the full cygwin, in directory c:\cygwin. I had already installed the prc-tools, in c:\PalmDev. I have placed the 3.5 SDK in the c:\PalmDev folder I have copied the hello program below to a folder. I set the path to point to c:\cygwin\bin I used the mount -tf c:\PalmDev /PalmDev My SDK directory structure is: C:\PalmDev\sdk-3.5\lib C:\PalmDev\sdk-3.5\include C:\PalmDev\sdk-3.5\include\Libraries C:\PalmDev\sdk-3.5\include\Dynamic C:\PalmDev\sdk-3.5\include\Core C:\PalmDev\sdk-3.5\include\Core\UI C:\PalmDev\sdk-3.5\include\Core\System C:\PalmDev\sdk-3.5\include\Core\Hardware C:\PalmDev\sdk-3.5\include\Core\System\Unix C:\PalmDev\sdk-3.5\include\Libraries\INet C:\PalmDev\sdk-3.5\lib\m68k-palmos-coff I navigated to the hello example. I executed make I now get the following errors: m68k-palmos-gcc -palmos3.5 -Wall -g -c -o hello.o hello.c sdkfind: installation problem, cannot exec '/usr/m68k-palmos/real- bin/gcc.exe': No such file or directory MAKE: *** [hello.o] Error 255 Then, I thought that maybe it was because I did not reinstall prc- tools after I executed the mount So, I then reinstalled prc-tools again per the instructions. Then when I executed make again, I got a different error. This time I got: m68k-palmos-gcc -palmos3.5 -Wall -g -c -o hello.o hello.c m68k-palmos-gcc: installation problem, cannot exec 'cpp0': No such file or directory MAKE: *** [hello.o] Error 1 Any ideas, Chris? Thanks, In response to this below: There's a simple Helloworld project with a PRC-Tools makefile that should work at http://tangentsoft.net/palmfaq/examples/hello.html Chris Ring Software Engineer Texas Instruments -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, March 27, 2002 11:34 AM To: Palm Developer Forum Subject: prc-tools (Testing?) snip I have never tested this installation, from the command line. That would require making a makefile for my application; something that I don't look forward to. Is there an easy to test such an installation, with something that is included in the installation process? It would be of use to have a test program or some test program in the PalmDev folder that one could simply execute that would test the installations to make sure everything works without having to go through the process of generating a makefile. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: TimGetSeconds Conversion
--- Bradly J. Barton [EMAIL PROTECTED] wrote: Does anyone have source that does the same thing as TimSecondsToDateTime? (Convert the number of seconds since 12:00am January 1, 1904 into a more usable structure?) I need it for a non-PalmOS Platform.. I seem to recall writing that code years ago for an intro to programming course... Bradley, haven't you yet signed the NDA to obtain the PalmOS source code? I think you'll find code for TimSecondsToDateTime in DateTime.c. I'm sure you could adapt that algorithm to work on another platform. Indeed, I could do any of the above.. but I couldn't get to the knowledge base or pavilion at the time and I thought maybe a question would be easier than taking the (albeit short) time to write it.. given some of the discussions I've watched here recently, I guess I should have known better. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Palm Application to send AT commands
From: [EMAIL PROTECTED] I have to build a Palm application by means of J2ME (using the Java connection framework...) that will send AT commands via infra-red to a mobile phone in order to get CELL ID/signal information. I'm heavily involved in implementing GSM-based apps so, while I can't pass out code, feel free to email me if you have problems with AT command handling or phone management. Chris Tutty [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: prc-tools (Testing?)
A couple of things. 1) My b20 version of cygwin put somethings in the program files folder and something at c:\cygwin but the latest version that installs from the internet does not. So, when I specified c:\cygwin, it put everything there. 2) I'm not sure what the purpose of the *.bat file is. I don't see any reference to it in any of the instructions. In any case, mine is simply: echo off c: chdir c:\cygwin\bin bash --login -i But like I said, I don't see any mention of the batch files. Also, when I install using the setup.exe file, either from the local drive or the internet, it gives me an illegal operation error just after I click Ok on the set icon and set menu choices. It does the same when I follow the prc-tools using the same setup, as specified in the instructions. Big mystery here. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: TimGetSeconds Conversion
given some of the discussions I've watched here recently, I guess I should have known better. Well... most of us probably come here to discuss things related to Palm programming (I at least go to other places to discuss other things). In any case, when I face a similar problem, I tend to go to Google first. The problem you're trying to solve isn't a new one, of course, and a simple Google search led me to sites and usenet postings that discuss this topic and provide algorithms that may help you. Give it try -- it literally took me less time than writing this message ;-) Oliver __ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® http://movies.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Link for downloading GNU PRC Tool
Hi, Can anyone mail me the link for downloading GNU PRC Tool ? Thanks in advance :-) Shoeb -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Link for downloading GNU PRC Tool
Hope this helps. http://www.ardiri.com/index.php?redir=palmcat=devkitsubcat=install ~~~ Rakesh D. V Member of Technical Staff, Persistent Systems Pvt Ltd, Pune - INDIA. Phone: +91-20 5678900 ext 159 Email ID: [EMAIL PROTECTED] ~~~ - Original Message - From: Shoeb [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Thursday, March 28, 2002 10:49 AM Subject: Link for downloading GNU PRC Tool Hi, Can anyone mail me the link for downloading GNU PRC Tool ? Thanks in advance :-) Shoeb -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Link for downloading GNU PRC Tool
Here is a better link :) http://www.palmos.com/dev/tools/gcc/ ~~~ Rakesh D. V Member of Technical Staff, Persistent Systems Pvt Ltd, Pune - INDIA. Phone: +91-20 5678900 ext 159 Email ID: [EMAIL PROTECTED] ~~~ - Original Message - From: Rakesh D. V [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Thursday, March 28, 2002 11:24 AM Subject: Re: Link for downloading GNU PRC Tool Hope this helps. http://www.ardiri.com/index.php?redir=palmcat=devkitsubcat=install ~~~ Rakesh D. V Member of Technical Staff, Persistent Systems Pvt Ltd, Pune - INDIA. Phone: +91-20 5678900 ext 159 Email ID: [EMAIL PROTECTED] ~~~ - Original Message - From: Shoeb [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Thursday, March 28, 2002 10:49 AM Subject: Link for downloading GNU PRC Tool Hi, Can anyone mail me the link for downloading GNU PRC Tool ? Thanks in advance :-) Shoeb -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Bus error in FrmCloseAllForms?
In article 81608@palm-dev-forum, [EMAIL PROTECTED] says... It's written in pure C, not C++, so no custom destructors. FWIW, it is a multi-segment app, linked with the MSL Runtime Palm OS (2i).Lib for runtime. The startup code is first in the segment list, and is in the same segment as Starter.* . Keith Rollin [EMAIL PROTECTED] wrote in message news:81606@palm-dev-forum... My guess would be that some runtime cleanup code is crashing. Does your application have any global objects with custom destructors? They'd be called around the time you show the crash occurring. -- Keith Rollin -- Palm OS Emulator engineer At 10:43 PM -0600 3/26/02, Darren DeLoach wrote: Here's the call stack in the debugger at the moment of the error: (PalmOS 3.5 debug ROM running as a color IIIC device) 0x10C9EAF2 (__Startup__) 0x10C9F10E (PilotMain) 0x10C9EBC8 (UIAppShellMain) 0x10C9EF8C (PrvAppLaunchLoop) 0x10C0E4B0 (PrvCallWithNewStack) 0x5AB4C () 0x5AA34() Why would the OS cause itself a bus error? What might be happening in my app to have this outcome? This could be in the runtime library too... I'd suggest finding the project which builds the runtime libraries, turning on debugging for that project, rebuilding the libs, and debugging with that project open (along with your original project). This way, CW will be able to source-level debug the runtime as well as your project. Maybe this will provide more insight. (BTW, what version of CW for Palm OS are you using? If its V7, make sure you've replaced the MSL Runtime libraries from the 4.0 SDK update with the ones that shipped in CW, as otherwise, you're using the V6 libs that won't always work correctly.) -- Ben Combee [EMAIL PROTECTED] CodeWarrior for Palm OS technical lead -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: Link for downloading GNU PRC Tool
Thanks :-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Rakesh D. V Sent: Thursday, March 28, 2002 11:31 AM To: Palm Developer Forum Subject: Re: Link for downloading GNU PRC Tool Here is a better link :) http://www.palmos.com/dev/tools/gcc/ ~~~ Rakesh D. V Member of Technical Staff, Persistent Systems Pvt Ltd, Pune - INDIA. Phone: +91-20 5678900 ext 159 Email ID: [EMAIL PROTECTED] ~~~ - Original Message - From: Rakesh D. V [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Thursday, March 28, 2002 11:24 AM Subject: Re: Link for downloading GNU PRC Tool Hope this helps. http://www.ardiri.com/index.php?redir=palmcat=devkitsubcat=install ~~~ Rakesh D. V Member of Technical Staff, Persistent Systems Pvt Ltd, Pune - INDIA. Phone: +91-20 5678900 ext 159 Email ID: [EMAIL PROTECTED] ~~~ - Original Message - From: Shoeb [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Thursday, March 28, 2002 10:49 AM Subject: Link for downloading GNU PRC Tool Hi, Can anyone mail me the link for downloading GNU PRC Tool ? Thanks in advance :-) Shoeb -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Facing Problem in Constructor
Hi all, I'm using Code Warrior 7.0 for Palm development. When I try to open any resource file with the constructor tool, it gives a flash and disappears, after that the constructor becomes irresponsive and has to be closed using Windows Close Program. Can anybody help me out to solve this problem ? Regards Shoeb -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Compiling .rsrc files
Hi Guys, I am trying to compile the Mail application (Source code from Palmos.com.) But the resource files that it uses is .rsrc file format. Is there a way to compile .rsrc files without using Codewarrior since I dont have a licensed copy of CodeWarrior. The limited version of CodeWarrior I have gives an error like It cannot compile resources with size greater than 5K. Is there any other way to compile .rsrc files? Thanks in advance. -Rakesh. ~~~ Rakesh D. V Member of Technical Staff, Persistent Systems Pvt Ltd, Pune - INDIA. Phone: +91-20 5678900 ext 159 Email ID: [EMAIL PROTECTED] ~~~ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Large Debugger Downloads Fail Randomly on Handspring
In article 81680@palm-dev-forum, [EMAIL PROTECTED] says... My application is over 200k. Smaller applications work fine. I am using a Handspring Visor and a serial cradle. I have tried the DebugPref.prc to for serial and holding the up button during download. Both fail in the same way. USB debugging works, however I am developing software for a Springboard module and USB will not work in conjunction with the Springboard. There were some download problems with large binaries that we solved in the debugger in CW Palm V8. There was a problem where the debugger would get progressively slower with larger files, ultimately timing out once the app reached a certain size. Windows 98 and Windows 2000 behave the same. Metrowerks CodeWarrior 7.1 with all upgrades installed. Tried lower baud rates. Nothing works. Isn't there a way in Codewarrior to Hotsync the application across first, then start the debugger without doing the download (since its already there via the Hotsync)? Sure... just hotsync the app to the device, then go into the Palm Debugger settings and turn off the download app option. I don't remember the exact name, as the dialog changed from V7 to V8. The debugger will now assume the app on the device is the same as the one it would have downloaded. -- Ben Combee [EMAIL PROTECTED] CodeWarrior for Palm OS technical lead -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Dynamic UI
Thanks Anton, I want to ask one more question. Why the links are underlined and can be push like a button? Thanks Joseph Chan Anton [EMAIL PROTECTED] ???:[EMAIL PROTECTED] 1.Write a text with WinDrawChars 2. Save position of written text in a structure, for variables or RectangleType . 3. Handle penDownEvent. Check out whether the pen is tapped in this rectangle. Very simple :) Anton - Original Message - From: Joseph Chan [EMAIL PROTECTED] Newsgroups: palm-dev-forum To: Palm Developer Forum [EMAIL PROTECTED] Sent: Wednesday, March 27, 2002 2:48 PM Subject: Dynamic UI Hi all, Does anyone know how to define a dynamic UI like the clickable link in HTML/WAP browser in palm? Thanks and regards Joseph Chan === The Hong Kong Polytechnic University Department of Computing [EMAIL PROTECTED] === -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Power off progrmaticaly
Hello... I've try this first : EventType evtStop; //... MemSet(evtStop, sizeof(evtStop), 0); evtStop.eType = keyDownEvent; evtStop.data.keyDown.chr = powerOffChr; EvtAddEventToQueue (evtStop); but it do nothing Then someone tell me to try : EvtEnqueueKey(vchrPowerOff, 0, commandKeyMask); but It seams not to do nothing... Any idea ? Regards Christophe. ROSSI [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Have you try the KeyPressed event with powerOffChr ? - Original Message - From: Christophe HOCMAN [EMAIL PROTECTED] Newsgroups: palm-dev-forum To: Palm Developer Forum [EMAIL PROTECTED] Sent: Wednesday, March 27, 2002 5:29 PM Subject: Power off progrmaticaly Hello... I'd like to know if there's a way to shut off the palm programaticaly ? I must force the palm to shut off as soon as a condition is true I guess it's possible to add a specific event but witch one ? Any help ? Thanks in advance. Christophe -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Why are my accented string resources altered?
Hi, Stupid problem time. I'm using stringlist resources containing accented characters. These are generated from a database in the form of .r files which are then (as I understand) compiled by Rez to create resources. The problem is that the accented characters are being 'converted' in the process and are not displaying properly. DeRez does a similar transformation on the way out. While I can write a piece of code that modifies the text string on the way into the .r so that it has the correct ascii code to turn into the accented character I want under PalmOS I get the feeling that I'm missing something here (and I'd like to find a table that shows the mapping rather than determining it by trial and error). A search of eScribe referred to some high bit transformation and pointed to a switch that doesn't seem to exist on the Rez page of the CW8 options. Can anyone point me in the right direction? Chris Tutty -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Compiling .rsrc files
Hi, If anybody has some idea about this please help. I have an urgent requirement for this. Thanks, - Rakesh. ~~~ Rakesh D. V Member of Technical Staff, Persistent Systems Pvt Ltd, Pune - INDIA. Phone: +91-20 5678900 ext 159 Email ID: [EMAIL PROTECTED] ~~~ - Original Message - From: Rakesh D. V [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Thursday, March 28, 2002 12:24 PM Subject: Compiling .rsrc files Hi Guys, I am trying to compile the Mail application (Source code from Palmos.com.) But the resource files that it uses is .rsrc file format. Is there a way to compile .rsrc files without using Codewarrior since I dont have a licensed copy of CodeWarrior. The limited version of CodeWarrior I have gives an error like It cannot compile resources with size greater than 5K. Is there any other way to compile .rsrc files? Thanks in advance. -Rakesh. ~~~ Rakesh D. V Member of Technical Staff, Persistent Systems Pvt Ltd, Pune - INDIA. Phone: +91-20 5678900 ext 159 Email ID: [EMAIL PROTECTED] ~~~ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Why are my accented string resources altered?
In article 81800@palm-dev-forum, [EMAIL PROTECTED] says... Hi, Stupid problem time. I'm using stringlist resources containing accented characters. These are generated from a database in the form of .r files which are then (as I understand) compiled by Rez to create resources. The problem is that the accented characters are being 'converted' in the process and are not displaying properly. DeRez does a similar transformation on the way out. While I can write a piece of code that modifies the text string on the way into the .r so that it has the correct ascii code to turn into the accented character I want under PalmOS I get the feeling that I'm missing something here (and I'd like to find a table that shows the mapping rather than determining it by trial and error). Scott Johnson has written about this too. IIRC, Rez is assuming that the input character set is following the Macintosh character conventions, instead of the Windows character set. PalmRez then turns the Mac character set into the Palm OS character set for some of its structures -- I don't know if it just does this for UI text or if it affects strings and string lists as well. A search of eScribe referred to some high bit transformation and pointed to a switch that doesn't seem to exist on the Rez page of the CW8 options. The switch was actually on the PalmRez page, not the Rez one... but it just had to do with the destination of the characters, not the source character set. -- Ben Combee [EMAIL PROTECTED] CodeWarrior for Palm OS technical lead -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/