Multisegment help required

2003-11-05 Thread husnain malik
Hi all, This error has been bugging for the last week. But i cant get rid of it.This is when i have segmented my application .. Is it because of my prctools ?? m68k-palmos-gcc -c Care.c -o Care.o m68k-palmos-gcc -c CareSec2.c -o CareSec2.o m68k-palmos-multigenCare.def m68k-palmos-gcc -o Ca

Global Variable

2003-11-05 Thread Khurram
Hi, I want to know how i can declare Global variable in Starter.c and then access it from ULDatabase.sqc Regards Khuram Mir -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Palm String Compressing/Uncompressing

2003-11-05 Thread Alan Ingleby
You can use zlib for this. We do a similar thing on records of about 2000 bytes, and get about 15:1 compression. For short strings you won't find it much use though (a string of about 16 chars rarely ends up smaller after compression.) http://www.gzip.org/zlib/ Alan "Régis Daniel de Oliveira"

Do you have any handy functions/libraries you would like to donate?

2003-11-05 Thread Jason Oakley
I'm collecting a bunch of functions to archive on my website so programmers (new and old) have a central location to look for handy code. Does anyone have any functions they would like to donate (or libraries?). You can either email me or add it to my forum below. Cheers, Jason. http:

Palm String Compressing/Uncompressing

2003-11-05 Thread Régis Daniel de Oliveira
Hy all! Does anybody know a library that i can use to compress/decompress strings in PalmOS? My server app (developed using VB - so, the lib should have a dll that will be used to compress the string on the server and, then, send it to the palm) will need to compress the string, send it to the pa

Tungsten E Native App Data Structure

2003-11-05 Thread Harry Cantrell
Does anyone know what the Contacts and Calendar data structures are, or how to find out? We are trying to read and write the data with a Conduit. Harry Cantrell -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: SrmReceiveCheck Workaround

2003-11-05 Thread Mike
After you posted, this is exactly what I did. I am amazed! All I did was change the serPortCradlePort to sysFileCVirtRfComm when I open the port and the thing basically connected right up to the Bluetooth to RS232 dev kit I bought (http://www.smartm.com/product/c_mini_devkit.cfm Now thats conne

Using the Serial manager for USB

2003-11-05 Thread Lance Gregory
The palm documentation for using the serial manager for USB is very sparse. I can open a serial port, but every time I try to send data through that port I get a time out error. In the SrmExtOpen call there is a SrmOpenConfigType struct that has a drvrDataP for specific data about the driver. I sus

How to draw bitmap on gadget when it hangs out of bounds?

2003-11-05 Thread Kerry Twibell
I am drawing a bitmap on a gadget. When the bitmap is drawn to the gadget (using WinDrawBitmap), its coordinates are generated dynamically, and it may hang below the bottom bounds of the gadget. How do I only draw the portion of the bitmap that will fit within the gadget bounds? I thought abo

Re: System Traps

2003-11-05 Thread Ben Combee
At 02:41 PM 11/5/2003, Alvin Chin wrote: How can I figure out what parameters (if any) are needed for the system traps available under the CoreTraps list? Look for the API prototype in the public headers that uses that trap value. Some routines are system-use-only and aren't documented in public

System Traps

2003-11-05 Thread Alvin Chin
How can I figure out what parameters (if any) are needed for the system traps available under the CoreTraps list? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

App to view pending alarms?

2003-11-05 Thread Peter Easton
Hi, I seem to remember that there is an app that lists all pending alarms for all applications. Does anyone know what the app is called, and where I can get it from? Thanks, Peter -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev

RE: SOAP library

2003-11-05 Thread SebastianM
During next week we will be posting our XML parser. It's a real XML parser, not just a wrapper for a specific Web Service. Combined with HTTP, you will be able access any Web Service, dinamically. We will also post some examples using it with som tipical Web Services. I'll keep the forum posted.

Re: Debugger for armlets ?

2003-11-05 Thread Carsten
Get some nice GBA emulator.. most of them come with a fine debugging interface. ahh.. and some GBA emus are even open source. Carsten. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: FrmGetNumberOfObjects

2003-11-05 Thread Ben Combee
At 01:42 PM 11/5/2003, Dennis Chistopher wrote: in the following frmP is returned from frmGetActiveForm(). UInt16 numObjs = FrmGetNumberOfObjects(frmP); for (UInt16 i = 0; i < numObjs; i++) { theIndex = FrmGetObjectIndex(frmP, i); theID = FrmGetObjec

FrmGetNumberOfObjects

2003-11-05 Thread Dennis Chistopher
I wrote some debugging code to look at the objects on a form and ran into this problem: fatal alert object #0 not found on form. I am using palmOS40-eng-colordbg.rom in the Emulator. Have also tried a 41 rom with the same result. This problem initially came up on a form in which I created some gadg

RE: Looping optimization

2003-11-05 Thread Ben Combee
(Okay, compiler people, now it's your turn to tell me about a compiler that will get rid of for loops. Perhaps one of the more recent FORTRAN compilers?) If you unroll your loop enough, CW can actually get rid of it... of course, it requires unrolling it such that you end up generating inline

Palm OS SDK (68K) R3 and cw7

2003-11-05 Thread Amy Chen
Hi All, I'm using CodeWarrior7. Yesterday I downloaded Palm OS SDK 5 (68k) R3 . Today I get "Operating System Error 2. Unable to create new project. No such file." when trying to create a new project. Don't know what I'm missing. THANKS! -- For information on using the Palm Developer Forums, or

RE: Looping optimization

2003-11-05 Thread Blake Winton
> Picco Chu wrote: > > I am not familiar with the Palm architecture. But I have a very > > head-scratching problem on how to do fast loops. > > > > for (j = 0; j < 2; j++) { > > result += (j + 19 * 71 + (j + 35 + 28)) / 87; > > } > > By the way, if the prog below is really intende

underclock Tungsten T

2003-11-05 Thread Alvin Chin
Is there a Palm application where you can underclock the Tungsten T? I've found some to overclock/underclock a Tungsten C and T3, basically for the OS5 XScale CPUs, and there are some for the old DragonBall CPUs. Thanks. -- For information on using the Palm Developer Forums, or to unsubscribe

Re: int parameter not changing value

2003-11-05 Thread Kevin Shaffer
I found another flaw with this code. Please disregard. Thanks Kevin "kshaff03" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am trying to parse a buffer that is read in from the serial port, and I > want to be > able to use this parsing function 3 times, to reduce my code size

Re: PilRC palette/bitmap troubles

2003-11-05 Thread Ted Peters
Chris, thanks for the reply. Unfortunately, there was no blank line at the end of my palette file. I tried removing the trailing space on the last line, and tired adding a blank line, just for grins. In all three cases, I get solid black bitmaps. Does anyone have any other ideas or suggestion

Re: CW 9.2 STL memory question.

2003-11-05 Thread Ben Combee
At 03:12 AM 11/5/2003, Vytautas Leonavicius wrote: Hello, Well, MemPtrNew allocates a maximum of ~64Kb. But when I allocate std::vector on the stack, I got bad_alloc if I try to allocate more than ~30Kb. But if I use new on vector, that is: The stack on Palm OS apps is limited to around 4K. VecP

Re: Debugger for armlets ?

2003-11-05 Thread Ben Combee
At 10:39 AM 11/5/2003, Francis Picard wrote: We develop applications for Palm with prc-tools and we'd like to start making armlets. In prc-tools for windows, there is a arm-palmos-*.exe for almost every m68k-palmos-*.exe, but there is no arm-palmos-gdb.exe. Does that mean we can't debug armlets wit

Re: Serial device stopped working on T3?

2003-11-05 Thread Mike
All this seems to do is turn off the RTS signal. It does nothing to stop the CTS from inhibiting data transmission regardless of the flags. The Palm still sits there until the CTS is asserted. Any more secrets you'd like to share? :c) -Mike "Sabeen Cochinwala" <[EMAIL PROTECTED]> wrote in m

Re: TxtFindString oddity

2003-11-05 Thread Matthias Jordan
Hey, folks! Dave Lasker wrote: > The 2nd parameter to TxtFindString must be a "prepared" string. You need to I don't know how this could happen but I must have overlooked it. I read this API doc a couple of times "very precise" (haha) and just missed it. Now it works. Thanks for your prompt help

RE: SOAP library

2003-11-05 Thread Tom Frauenhofer
Actually, this includes both Java and C (gSoap-based) implementations. IBM and PalmSource have since partnered to make this available for Palm OS developers. An even better link for all of this: http://www.palmos.com/dev/tech/webservices/ At 03:00 AM 11/5/2003, Keith Rollin <[EMAIL PROTECTED]

Debugger for armlets ?

2003-11-05 Thread Francis Picard
Hi all, We develop applications for Palm with prc-tools and we'd like to start making armlets. In prc-tools for windows, there is a arm-palmos-*.exe for almost every m68k-palmos-*.exe, but there is no arm-palmos-gdb.exe. Does that mean we can't debug armlets with gdb ? If not, is there oth

Re: SOAP Library

2003-11-05 Thread Tony Yat-Tung Cheung
Oscar De León wrote: Hi all, has anyone heard about a ready PRC library that handles the SOAP protocol (Simple Object Access Protocol) available for Palm OS? Regards Oscar You may want to take a look at the Web Services Toolkit, by IBM & PalmSource http://www.palmos.com/dev/tech/webservices/ If y

Re: TxtFindString oddity

2003-11-05 Thread Dave Lasker
The 2nd parameter to TxtFindString must be a "prepared" string. You need to run TxtGluePrepFindString on it before passing it to TxtFindString. Or if you are implementing the system find command, use the strToFind field. See the API doc for more info... Dave "Matthias Jordan" <[EMAIL PROTECTED]>

Re: Looping optimization

2003-11-05 Thread Hildinger, Robert
"Picco Chu" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am not familiar with the Palm architecture. But I have a very > head-scratching problem on how to do fast loops. > > I need to do some simple operations (+ - * / only) in a loop for around > 2 times. The speed on Drago

Re: Looping optimization

2003-11-05 Thread Axel Bernard
Picco Chu wrote: I am not familiar with the Palm architecture. But I have a very head-scratching problem on how to do fast loops. I need to do some simple operations (+ - * / only) in a loop for around 2 times. The speed on DragonBall 33MHz devices are too slow! I don't know if I have done some

Re: Looping optimization

2003-11-05 Thread Markus Dresch
floating point is always slow... and divide is always slow too. multiplying is slower than adding and subtracting. just search google for c optimization and you'll find a lot of useful hints. (in your code for example you multiply 19 * 71 2 times when you only need to to it once before the lo

Re: Looping optimization

2003-11-05 Thread Picco Chu
Oh yes~ Thanks for pointing out. But this is not where the problem lies... "Anders Rahm-Nilzon" <[EMAIL PROTECTED]> ¼¶¼g©ó¶l¥ó·s»D :[EMAIL PROTECTED] > You should be careful with the division operator. Instead of dividing with > 87 all times in the for-loop you get the same result if you divide "

Re: Looping optimization

2003-11-05 Thread Anders Rahm-Nilzon
You should be careful with the division operator. Instead of dividing with 87 all times in the for-loop you get the same result if you divide "result" after the loop with 87. for (j = 0; j < 2; j++) { result += (j + 19 * 71 + (j + 35 + 28)) ; } result = result/87;

Looping optimization

2003-11-05 Thread Picco Chu
I am not familiar with the Palm architecture. But I have a very head-scratching problem on how to do fast loops. I need to do some simple operations (+ - * / only) in a loop for around 2 times. The speed on DragonBall 33MHz devices are too slow! I don't know if I have done something wrong when

int parameter not changing value

2003-11-05 Thread kshaff03
I am trying to parse a buffer that is read in from the serial port, and I want to be able to use this parsing function 3 times, to reduce my code size. I pass in the index of the buffer, and it increments as I parse the buffer. Then I call parse again and it parses the buffer from where the first

Re: Palm SDK

2003-11-05 Thread Mark Lenz
Since I should create a differenct directory for the SDK (sdk-5r3) does anyone know how I can make Falch.net use the new SDK? Mark Lenz Software Engineer Control Systems Group Pierce Manufacturing, Inc. (920) 832-3523 [EMAIL PROTECTED] |-+---> |

Determining processor frequency

2003-11-05 Thread vianna . mauricio
How do I determine the frequency of a processor (programatically)? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

SOAP Library

2003-11-05 Thread Oscar De León
Hi all, has anyone heard about a ready PRC library that handles the SOAP protocol (Simple Object Access Protocol) available for Palm OS? Regards Oscar -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: How can i set the name of the plam used in hotsync ?

2003-11-05 Thread Alexandre Barreto
Thnx a lot for the help guys the code in c fits perfect.. for what i need.. its just a backup action .. so its ok thanx a lot again _ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com -- For information on using the Pal

TxtFindString oddity

2003-11-05 Thread Matthias Jordan
Hi, folks! I'm working on a device that has the International Feature Set present. Now, when I call TxtFindString, the result code is always 0 and pos and len contain arbitrary values. Even in the following cases: TxtFindString("foobar", "foo", &pos, &len) TxtFindString("foobar", "oba", &pos, &le

Equivalents to standard C routines for PalmOS

2003-11-05 Thread Anders Rahm-Nilzon
Is there an equivalent C routine in Palm OS for: fprintf fscanf sscanf fgetc fgets fputs fputs fopen freopen \Anders R-N -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Nasty Breakpoint CW9.2 !!!!!!

2003-11-05 Thread Harish
Thx Ben, > If you don't see anything that could go wrong here, then try removing your > project's _Data folder (with the project closed) and rebuilding. > Finally, if you're running with the Palm OS Emulator, make sure that it > doesn't have any breakpoints set and saved in your PSF file. The ea

System keyboard

2003-11-05 Thread Vladimir
> Hi to All Can samebody to help me > I want to change system font to spanish font. > And use new font in DateBook. > Thanks to all. > > Vladimir > > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ > -- For

Re: Palm OS 3.5-en-colordbg.rom

2003-11-05 Thread Vladimir
Hi to All Can samebody to help me I want to change system font to spanish font. And use new font in DateBook. Thanks to all. Vladimir -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: RGB-display

2003-11-05 Thread Anders Rahm-Nilzon
Thank you fpr your time !!! \Anders "Aaron Ardiri" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I'm sorry for not know this but what do you mean with that ??? > > m68k--> 0x1234 (bigendian) > x86/arm --> 0x3412 (little endian) > > same number. different endian, based

Re: SSL & certificates (again)

2003-11-05 Thread Philippe Fischer
Thanks Rajan, I've just changed the return value of my callback to errNone and the handshake passes through. I think I should read the manual more carefully !!! Best regards Philippe - Original Message - From: <[EMAIL PROTECTED]> Newsgroups: palm-dev-forum To: "Palm Developer Forum" <[

Palm OS 3.5-en-colordbg.rom

2003-11-05 Thread Duc Dang
Hi all, Help me please! I have function keyDownEvent : case keyDownEvent: // Scroll down key presed? if (gCurrentActPk>-1){ if ((eventP->data.keyDown.chr == pageDownChr) && (IsLast == true))

Re: RGB-display

2003-11-05 Thread Aaron Ardiri
> I'm sorry for not know this but what do you mean with that ??? m68k--> 0x1234 (bigendian) x86/arm --> 0x3412 (little endian) same number. different endian, based on the CPU mainly :) http://www.hyperdictionary.com/computing/little-endian http://www.hyperdictionary.com/computing/big-e

Re: RGB-display

2003-11-05 Thread Anders Rahm-Nilzon
I'm sorry for not know this but what do you mean with that ??? "Carsten" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > To make long explanations short: > Little Endian. > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos

CW 9.2 STL memory question.

2003-11-05 Thread Vytautas Leonavicius
Hello, Well, MemPtrNew allocates a maximum of ~64Kb. But when I allocate std::vector on the stack, I got bad_alloc if I try to allocate more than ~30Kb. But if I use new on vector, that is: VecP p = new Vec[64k] it works, when allocating in this way - Vec v = Vec[64k]. Why? Thanks, -- Sinceril

all programs break on Tungsten (Palm OS 5.2.1)

2003-11-05 Thread Holger Klawitter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there, All of my applications suddenly seem to break on Palm OS 5.2.1 (Tungsten). As I don't have Windows I cannot try the Simulator to debug on my own. On the other hand I've heard that there is a very common problem with applications crashing

Re: What is error (Sys 0505) (0, 1136)

2003-11-05 Thread Chris Apers
Me too, thanks :) - Original Message - From: "Hildinger, Robert" <[EMAIL PROTECTED]> Newsgroups: palm-dev-forum To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Tuesday, November 04, 2003 11:47 PM Subject: Re: What is error (Sys 0505) (0, 1136) > Guys, > > Thanks for the info! You r

Re: PilRC palette/bitmap troubles

2003-11-05 Thread Chris Apers
This problem occured if you have a blank line at the end of your palette file. Just remove it. - Original Message - From: "Ted Peters" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Tuesday, November 04, 2003 6:20 PM Subject: PilRC palette/bitmap troubles > I a