endian formats with fixed point math

2004-02-09 Thread desa
I have some code that uses fixed point math in 22.10 representation. So I do a lot of bit shifting like this. int Number = 300 << 10; This doesn't work on a Palm though, because it uses Big Endian byte order. I had read that you need to swap the bytes before you perform the bit shift and then s

RE: begineer, Codewarrior

2004-02-09 Thread Girish NS
Hi, The following links might be useful to u. http://www.palmos.com/dev/support/docs/recipes/ http://www.codeproject.com/ce/#Palm+Development Girish. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Teresa smith Sent: Tuesday, February 10, 2004 1:34 AM T

Help on Conduit development.

2004-02-09 Thread Girish NS
Hi, I'm a newbie to conduit development. Other than the documentation given with Conduit SDK, is there any articles/tutorials on conduit development using COM framework and C++ available anywhere? Even though I have palm conduit development kit 4.03 in my machine, the palm conduit wizard availa

Re: Updating screen during a penDownEvent

2004-02-09 Thread Michael Jones
Perfect... working now. Thanks everyone for taking the time to offer the great suggestions. Mike "Michael Jones" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Having trouble with this: > > I have a program where I want someone to press and hold a button. For as > long as they ho

Re: [ANN] Another free JPEG library for Palm OS (revised)

2004-02-09 Thread Regis St-Gelais
I'm doing this on my free time in the hope of helping others. It is the same code with a few changes in a text file, it is at the same place as before and it is free. Regis "David A. Desrosiers" <[EMAIL PROTECTED]> a écrit dans le message de news:[EMAIL PROTECTED] > > > jcpalm 1.1 Jpeg Compressio

Re: begineer, Codewarrior

2004-02-09 Thread RVRoadie
Version 9 has a pretty decent tutorial. Check in this folder for the tutorial: C:\ProgramFiles\Metrowerks\CodeWarrior\CodeWarrior Manuals\MW Tutorial For Palm OS I was able to get started using that, and the C++ tutorial at http://www.cplusplus.com/doc/#tutorial Good luck "Teresa smith" <[EMAIL

about fldChangedEvent and system keyboard

2004-02-09 Thread Miken
When I use Graffiti(2) to update the value of a field control,I can get fldChangedEvent. After I set the focus to editbox,I call the system keyboard,input some text,and close it.I can still get fldChangedEvent,then I delete a char,I can't get the event. Please help me,and thanks. -- For inform

RE: [ANN] Another free JPEG library for Palm OS (revised)

2004-02-09 Thread Keith Rollin
If you do that, I'd recommend putting up a Web page that contains the links, instead of providing the links directly to the files. That way, people can go to the page to get the latest versions, instead of having to futz with broken links all the time. -- Keith > -Original Message- >

Re: [ANN] Another free JPEG library for Palm OS (revised)

2004-02-09 Thread David A. Desrosiers
> jcpalm 1.1 Jpeg Compression shared library for Palm OS (source and code): > http://www.laubrass.com/doc/PUB/JPEG/jcpalm_lib_1.1.zip AIE! Please don't release changed code with the same version numbering on it as the last version (unless you can guarantee that nobody downloaded the p

[ANN] Another free JPEG library for Palm OS (revised)

2004-02-09 Thread Regis St-Gelais
jcpalm 1.0 is a Jpeg Compression shared library for Palm OS based on the IJG code. It was ported to Palm OS by IDEO, TRG & Harold Howe in 2000 I made some minor corrections in it (with the permission of Harold Howe) and rebuild it to jcpalm 1.1 The new version can be downloaded from our web site.

RE: TRAP #0 then CRASH in Code Warrior.

2004-02-09 Thread Ben Combee
Are you starting POSE with a saved session. It's possible you've saved one that has embedded breakpoint instructions (TRAP #0). Try to always start POSE with a clean session or one saved before a debugger had touched it. -Original Message- From: David Webb Date: 2/9/04 12:33 pm To:

Re: [ANN] Another free JPEG library for Palm OS

2004-02-09 Thread Ben Combee
The shared lib wizard code is based on the SampleLib code from the PalmSource SDK. See the SDK's licence WRT distribution of code derived from it. -Original Message- From: Regis St-Gelais Date: 2/9/04 1:20 pm To: Palm Developer Forum Subj: Re: [ANN] Another free JPEG library for Palm

Re: RSRC issue

2004-02-09 Thread Ben Combee
You've got those switched... The zero byte file is in the main folder, with the resource data in RESOURCE.FRK. -Original Message- From: Edward P. Ross Date: 2/9/04 3:26 pm To: Palm Developer Forum Subj: Re: RSRC issue OK - So I have the 200KB my.rsrc file in my {project} folder and

RE: begineer, Codewarrior

2004-02-09 Thread Ben Combee
A tutorial for creating a Palm OS app comes with Codewarrior. Have you read that? The quick start doc with the product should point you to the right place in the docs folder. -Original Message- From: Teresa smith Date: 2/9/04 2:04 pm To: Palm Developer Forum Subj: begineer, Codewar

Re: begineer, Codewarrior

2004-02-09 Thread Dave Lippincott
Use one of the examples included with Codewarrior and the Palm SDK. The stationary project is a good shell to add your own code. (suggestion: make a copy of the project first). - Original Message - From: "Teresa smith" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> S

Re: RSRC issue

2004-02-09 Thread Edward P. Ross
OK - So I have the 200KB my.rsrc file in my {project} folder and a 0 byte my.rsrc file in the RESOURCE.FRK folder. When I double click on the 200KB file in the {project} folder, Constructor appears with no resources - no forms, alerts, etc. I found that if I copy the 200KB file to the RESOUR

Re: Variable Text on Graphical Button

2004-02-09 Thread Eron Hennessey
Matt Graham wrote: Mike Davis wrote: Ok, I have several buttons on an application that are the same size. Therefore, I have only one bitmapfamily for all of the buttons. However, I have different text for each of the buttons. How does one (or what is the best way to) use a single bitmapfamil

Re: begineer, Codewarrior

2004-02-09 Thread Eron Hennessey
Teresa smith wrote: hi, i was wondering is there any website that would show how to set up and run simple applications usingCodewarrior r8 for palm simulator, as i wont be able to obtain a suitable book for a fortnight. and i need to start straight away thanks Teresa How's this? http://rz

Re: Problem: Shading in High Resolution images

2004-02-09 Thread Eron Hennessey
Mike Davis wrote: On 9 Feb 2004 at 10:41, Eron Hennessey wrote: Mike Davis wrote: I have a problem with a shaded image used in a high resolution bitmap. The image is showing up in the application as banded, even though it shows up ok in the paint program. I have a description and exm

Re: Variable Text on Graphical Button

2004-02-09 Thread Matt Graham
Mike Davis wrote: Ok, I have several buttons on an application that are the same size. Therefore, I have only one bitmapfamily for all of the buttons. However, I have different text for each of the buttons. How does one (or what is the best way to) use a single bitmapfamily but have variable

Re: Updating screen during a penDownEvent

2004-02-09 Thread Matt Graham
Michael Jones wrote: Having trouble with this: I have a program where I want someone to press and hold a button. For as long as they hold the pen down on the button, I want a timer on the screen to increment and update it's display. Right now I'm doing the following within the ctrlEnterEvent: (T

begineer, Codewarrior

2004-02-09 Thread Teresa smith
hi, i was wondering is there any website that would show how to set up and run simple applications usingCodewarrior r8 for palm simulator, as i wont be able to obtain a suitable book for a fortnight. and i need to start straight away thanks Teresa

Re: [ANN] Another free JPEG library for Palm OS

2004-02-09 Thread Regis St-Gelais
Here is the reply I got from Harold Howe regarding the copyright isue: Begin Quote The code is copyrighted, but that doesn't mean you can't modify and redistribute. Our code follows the same licensing scheme that the IJG uses. We just never listed the redistribution terms in the text file. If an

Re: Problem: Shading in High Resolution images

2004-02-09 Thread Mike Davis
On 9 Feb 2004 at 10:41, Eron Hennessey wrote: > Mike Davis wrote: > > >I have a problem with a shaded image used in a high resolution bitmap. > >The image is showing up in the application as banded, even though it > >shows up ok in the paint program. > > > >I have a description and exmples of

Re: [ANN] Another free JPEG library for Palm OS

2004-02-09 Thread Regis St-Gelais
-- "David A. Desrosiers" <[EMAIL PROTECTED]> a écrit dans le message de news:[EMAIL PROTECTED] > > Also, JPEGlibdispatch.c appears to be copyright TRG. I don't see > anything in the documentation for that, that provides rights or attribution > to use that and include it in your project. Just be

Re: How to display list of available network connections?

2004-02-09 Thread David Webb
I use the following to iterate through the available interfaces. If you look in the header file, NetMgr.h, you will find some undocumented NetLifIFsetting's. -Dave char ifName[32]; UInt16 index = 0, sz; Err err; UInt32 ifCreator; UInt16 ifInstance; do { err = NetLibIFGet(netLibRefnum, inde

Re: Problem: Shading in High Resolution images

2004-02-09 Thread Eron Hennessey
Eron Hennessey wrote: Mike Davis wrote: I have a problem with a shaded image used in a high resolution bitmap. The image is showing up in the application as banded, even though it shows up ok in the paint program. I have a description and exmples of the images at the link below. If anyone u

Re: Problem: Shading in High Resolution images

2004-02-09 Thread Eron Hennessey
Mike Davis wrote: I have a problem with a shaded image used in a high resolution bitmap. The image is showing up in the application as banded, even though it shows up ok in the paint program. I have a description and exmples of the images at the link below. If anyone understands this problem

News Server problem

2004-02-09 Thread Mike Davis
I'm getting emails ok but can't access the news server for the palm-dev forum. I can access the emulator forum ok and I use the same password and email address. Is there a problem with the palm-dev forum on the server? I'm getting this error: "Sorry! An online error occurred. When: Retreivi

Problem: Shading in High Resolution images

2004-02-09 Thread Mike Davis
I have a problem with a shaded image used in a high resolution bitmap. The image is showing up in the application as banded, even though it shows up ok in the paint program. I have a description and exmples of the images at the link below. If anyone understands this problem and has a solution

TRAP #0 then CRASH in Code Warrior.

2004-02-09 Thread David Webb
I am using: Code Warrior 8.3 for Palm, IDE 4.2.6.832, POSE 3.5 with PalmOS412_FullDbg_EZ_enUS ROM I am writing a test app using NetLib's targeted for OS 4.12. I keep getting the following error when lauching the app from Code Warrior for debugging in POSE. After which POSE needs restarting and

Re: [ANN] Another free JPEG library for Palm OS

2004-02-09 Thread Regis St-Gelais
-- "David A. Desrosiers" <[EMAIL PROTECTED]> a écrit dans le message de news:[EMAIL PROTECTED] > > Can you please include a obviously-named text file in there (perhaps > called 'license.txt') or describe it in a global README file? That would be > much clearer than relying on opening each of the fi

Shaded Images on High Resolution - Problem

2004-02-09 Thread Mike Davis
I have a problem with a shaded image used on in a high resolution image that is driving me nuts. The image is showing up as a banded image instead of the smoothly shaded image that is seen in my paint program. I have a description and examples of the images at the link below, which better sho

WinGetDisplayExtent and the Tungsten T3

2004-02-09 Thread Thomas Ward
Hi, I'm seeing something unexpected with WinGetDisplayExtent. For the Clie Simulator, the height returned is 225. But for the T3, the height is only 224. What's really strange is that in the SampleCollapse_R3 code, in the CollapseResizeForm routine, I found these comments: // Example #1: The use

Re: begineer, Codewarrior

2004-02-09 Thread Teresa smith
thanks i'll try that.. --- Jeremy Neal Kelly <[EMAIL PROTECTED]> wrote: > "Teresa smith" <[EMAIL PROTECTED]> wrote in > message > news:[EMAIL PROTECTED] > > hi > > i'm trying to write an simple application for > adding > > two numbers, but i've not used palm before. I'm > using > > Codewarrior R

Re: begineer, Codewarrior

2004-02-09 Thread Jeremy Neal Kelly
"Teresa smith" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > hi > i'm trying to write an simple application for adding > two numbers, but i've not used palm before. I'm using > Codewarrior R8 o develop the code, but am having > difficulty figuring it out. Is there anyone who can >

Re: [ANN] Another free JPEG library for Palm OS

2004-02-09 Thread David A. Desrosiers
> You can use those libraries freely provided that you follow the licensing > terms. See the text files with the libraries. Can you please include a obviously-named text file in there (perhaps called 'license.txt') or describe it in a global README file? That would be much clearer than re

Variable Text on Graphical Button

2004-02-09 Thread Mike Davis
Ok, I have several buttons on an application that are the same size. Therefore, I have only one bitmapfamily for all of the buttons. However, I have different text for each of the buttons. How does one (or what is the best way to) use a single bitmapfamily but have variable text on the button

Re: How to save global variables and form state between sessions? (Urgent)

2004-02-09 Thread Scott Gruby
In article <[EMAIL PROTECTED]>, "Victor ." <[EMAIL PROTECTED]> wrote: > Dear all: > > I want to save the last active form when i switch to > another application. The problem is I have many global > variables associated with the form and also some > database references. Please tell me how to save

[ANN] Another free JPEG library for Palm OS

2004-02-09 Thread Regis St-Gelais
jcpalm 1.0 is a Jpeg Compression shared library for Palm OS based on the IJG code. It was ported to Palm OS by IDEO, TRG & Harold Howe in 2000 I made some minor corrections in it and rebuild it to jcpalm 1.1 Both the new and the old version can be downloaded from our web site. jcpalm 1.1 Jpeg Comp

Re: Hi-res bitmap problem.

2004-02-09 Thread Ben Combee
At 08:08 AM 2/9/2004, you wrote: If "presentacion320.bmp" is 170x170 pixels no problem, but if "presentacion320.bmp" is bigger than 170x170, Code Warrior (9) displayed " CodeWarrior encountered an unhandled exception 0xc005 at address 0x022d2136 (The memory at address 0x0050 could not be re

News Server Problem

2004-02-09 Thread Mike Davis
Is there something wrong with the PalmDev News Server? I'm having trouble accessing it lately, with my news reader. I get emails ok and I can access the tools fourm with the news reader but I get the following error on the PalmDev forum. "Sorry! An online errror occurred. When: Retreiving 54

begineer, Codewarrior

2004-02-09 Thread Teresa smith
hi i'm trying to write an simple application for adding two numbers, but i've not used palm before. I'm using Codewarrior R8 o develop the code, but am having difficulty figuring it out. Is there anyone who can tell me where to start. Thanks Teresa. _

RE: Hi-res bitmap problem.

2004-02-09 Thread Zechner Christian
Thanks! I wrote "BITMAP "bmps/RGB\ 16\ bits/presentacion320.bmp" BPP 16 DENSITY 2 COMPRESS" and no more problem. -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Julian Oh Enviado el: Lunes, 09 de Febrero de 2004 12:00 p.m. Para: Palm Developer Forum Asunto

Re: Hi-res bitmap problem.

2004-02-09 Thread Julian Oh
sounds like 64k limit issue, break your bmp into smaller bmps. elv "Zechner Christian" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi! I need to include a hi-res bitmap in my project. This bitmap is 320x320. I wrote: BITMAPFAMILYEX ID PresPantalla2 BEGIN BITMAP "bmps/bitmap/prese

Hi-res bitmap problem.

2004-02-09 Thread Zechner Christian
Hi! I need to include a hi-res bitmap in my project. This bitmap is 320x320. I wrote: BITMAPFAMILYEX ID PresPantalla2 BEGIN BITMAP "bmps/bitmap/presentacion.bmp" BPP 1 BITMAP "bmps/RGB\ 16\ bits/presentacion320.bmp" BPP 16 DENSITY 2 END in .rcp file. If "presentacion320.bmp" is 170x170 pixels n

Re: Int32 only 16 bits?

2004-02-09 Thread Gordon, Douglas
>I've just written the following code: >Int32 value = 1 << 16; >Compiling with gcc and PRC-Tools, sdk5-r3, >I get the following warning: >warning: left shift count >= width of type This has been answered clearly by others, but I just wanted to make a comment about coding in C with its sometim

Irda IrDiscoverReq fails under OS/5.XX

2004-02-09 Thread Manoel Teixeira
I've an application with IrDa support thar works fine under OS/4.XX and fails under OS/5.XX. Is there any change at IrDa stack? It always fails at IrDiscoverReq function, returning that there's no Irda device. Manoel Teixeira -- For information on using the Palm Developer Forums, or to un

Gadget

2004-02-09 Thread R Moon
I have a program with this control, the app is for write autograph, in the penupevent , pendownevent or penmoveevent I use the WinPaintPixel, if the stylus is move slowly, the autograph is write perfectly, but if write a line or autograph fast , the app paint pixel separatly for example slowly wri

using C++ files in a C project?

2004-02-09 Thread Alexandre Luz Barreto
I´m trying to compile aproject that works fine em C but know i need some classes on it how can i compile that? i treyed use C++ compiler but then i get a Link error without this i get error on the filemanager lib if i can´t manage how to do that i ll try to make a precompiled lib but i don´t know

Re: about VFSFileWrite and append

2004-02-09 Thread Horst Borscht
"Miken" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > I want to add some data to the end of the file.I call VFSFileOpen with > vfsModeWrite|vfsModeCreate,then I call VFSFileWrite.I find it remove all > existing data before writing. > Why? > > > Miken, you have to use vfsMode

Re: RSRC issue

2004-02-09 Thread Ben Combee
At 01:04 AM 2/9/2004, you wrote: Thanks Ben... The project inspector points to the file in the {project} folder - which is a non-zero byte file. Also, the one in the RESOURCE.FRK folder is non-zero byte. 1.) Should the IDE point to the file in the {project} folder or the RESOURCE.FRK folder?

Re: Updating screen during a penDownEvent

2004-02-09 Thread Horst Borscht
Hi Mike, this is how i do it: case ctlSelectEvent: if (CtlGlueGetControlStyle(eventP->data.ctlSelect.pControl) == buttonCtl) { CtlSetValue(eventP->data.ctlSelect.pControl, 1); SysTaskDelay(SysTicksPerSecond() / 4); CtlSetValue(eventP->data.ctlSelect.pControl, 0); } break; H

Re: RSRC issue

2004-02-09 Thread Edward P. Ross
Thanks Ben... The project inspector points to the file in the {project} folder - which is a non-zero byte file. Also, the one in the RESOURCE.FRK folder is non-zero byte. 1.) Should the IDE point to the file in the {project} folder or the RESOURCE.FRK folder? 2.) How do I re-create the rsrc f