Re: offtopic: who can figure out this for loop

2003-06-25 Thread Philip Sheard
int x = 1; for( int i = 0; i 100; ++i ); // What will the next line do? Increment???/ ++x; on a standards conforming c++ compiler the ++x; line should be considered as a comment because the previous line ends with a slash ( indicating that the next line is a

How to Intercept Palm OS APIs to change their functionality.

2003-06-25 Thread Tarek Faham
I am so much confused about using this forum. I tried to post from Yahoo! Groups, it failed, and tried making a reply, it might have worked. I think I have made double posintg. Sorry. Question: How I can post a new message to palm-dev-forum from Yahoo! groups? I am sending this message again

Re: about ScrollBar

2003-06-25 Thread Markus Dresch
did you define it before including PalmOS.h? How do I do it?Can you say in detail? #define ACCESS_TO_WHATEVER_STRUCTURE #include PalmOS.h anyway, there's the API SclSetScrollbar(...) wich you should use to perform this task. I use codewarrior7+sdk5.0. I find ScrollBarType and WinHandle

Re: bitmaps in titlebar

2003-06-25 Thread Markus Dresch
How do I add bitmaps to the title bar area of my palm application? simply add a few spaces in the form title and then draw your bitmap there using either a formbitmap or the windraw functions. alternatively you can use a form without title bar and add a bitmap button instead (wich is what i am

Virtual Driver under PalmOS 5

2003-06-25 Thread Thomas Damme
Hello folks, I somehow have problems writing a virtual serial driver for PalmOS 5. I created a driver based on the CryptoComm Example of PalmSource. It also works fine on PalmOS4.x-devices and the Emulator. But I cant get it running on a Simulator or a T-T. The new device-ID does not appear. I

RE: MemPtrFree - invalid chunk

2003-06-25 Thread Agus Silas
Yeap, you're right... Thanks Chris Agus -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de Chris Tutty Envoyé : mercredi 25 juin 2003 01:22 À : Palm Developer Forum Objet : Re: MemPtrFree - invalid chunk From: Agus Silas [EMAIL PROTECTED] In fact, I've

Re: How to wrap text in a table column..

2003-06-25 Thread Prashant Jha
Alan, I looked into the ToDo list/DateBook examples but they capture the event to wrap the text, whereas in my case, I know that I will always have text to be wrapped in two rows in one column,so I needed a simpler solution.. Finally I have managed to do it. The text gets wrapped alright with '\n'

Re: fatal alert: table.c, line:2408

2003-06-25 Thread Aaron Ardiri
This occurs when I scroll down past my 8 rows to the end and I select a row, I get this error. i'll take a hint that your probably running on an OS4 device, so the FATAL ALERT most likely is this one: ErrFatalDisplayIf (row = tableP-numRows, Invalid row); does that help? :) you are

I need a list with normal ScrollBar

2003-06-25 Thread Ralf Krauss
Hi: I need a list with normal ScrollBar and not with the default one. Can I change the ListAttr (hasScrollBar) of a list during runtime? thanks. Ralf -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Armlet optimization

2003-06-25 Thread Jan Slodicka
Hello I am using CW9 and I tried to test the influence of global optimizations on the armlet speed. However, the results indicate absolutely no speed difference irrespectively of whether the optimizations are off or set to level 2. Is it right or am I missing something? Jan Slodicka -- For

Re: How to wrap text in a table column..

2003-06-25 Thread Douglas Handy
Prashant, However, another question, tapping on the second line of the column does not generate any event. Is there someting I'm missing? You didn't tell us what OS release levels you are testing it on. I believe the OS did not recognize taps beyond the first line in a table row until 4.0. Try

RE: Bad executable generation

2003-06-25 Thread Roger Stringer
Subject: Bad executable generation From: Dave Mottorn [EMAIL PROTECTED] I'm using Codewarrior 8.32 to develop a program that now has three segments. I don't think there are any later updates to version 8. Last night I made a few changes and compiled and linked the program. I didn't get

Multi segment problem with typedef struct

2003-06-25 Thread Giorgos Sarris
Hi to all, I use CW9, C++. I make a multi-segment program. In the main segment I have (eg): typedef struct { UInt8 lastHighScore; } GamePreferenceType; GamePreferenceType Prefs; How can I call that from the second segment??? I tried: extern GamePreferenceType Prefs;

Re: Multi segment problem with typedef struct

2003-06-25 Thread Thomas Damme
I think, the segment has nothing to to with this. Did you declare the struct in the second file? You should place the declaration in a header file and include it into both files: include-file typedef struct{ UInt8 lastHighScore; } GamePreferenceType first file #include headerfile.h

Re: Bad executable generation

2003-06-25 Thread Eric VERGNAUD
le 25/06/03 14:22, Roger Stringer à [EMAIL PROTECTED] a écrit : Subject: Bad executable generation From: Dave Mottorn [EMAIL PROTECTED] I'm using Codewarrior 8.32 to develop a program that now has three segments. I don't think there are any later updates to version 8. Last night

Re: bitmaps in titlebar

2003-06-25 Thread Jan Slodicka
Hello see below portion of the rc file that we use for that purpose Jan Slodicka FORM ID MainForm AT (0 0 160 160) NOFRAME NOSAVEBEHIND USABLE MENUID MainFormMenuBar BEGIN TITLE ... //... other controls ... // This is bmp that covers the whole title bar FORMBITMAP AT (0 0)

Re: Acer S50

2003-06-25 Thread David Beers
David Mottorn wrote: Does anyone know how you can buy the Acer S50? Acer doesn't sell them in this country. I talked with a couple of different people in Acer's marketing and products divisions and they didn't have any ideas at all about how you could acquire one in the US. Both agreed that

RE: Bad executable generation

2003-06-25 Thread Dave Mottorn
The problem I've had at least three times is I don't get link errors. Once my segment was just a little over the size limit and twice I had syntatic errors that weren't detected by the compiler. In the latter two cases I had some fairly complicated code that looked ok to me. With my

RE: Acer S50

2003-06-25 Thread Dave Mottorn
Thanks. There must be a distributor in Malasia or somewhere else in Asia that would sell them to us. Has anyone dealt with any of them? It seems Acer's US-based folks have been told not to discuss it with prospective buyers in the US. -Original Message- From: [EMAIL PROTECTED]

Re: getting registered directories

2003-06-25 Thread Sebastian Voges
On Tue, 24 Jun 2003 20:03:31 -0400, Carlos Junco wrote: Is there a function for getting all the registered directories for a specific media type? (VFS) Hi, isn't there only *one* directory assigned to a specific media type?? at least that's how I understand it. VFSGetDefaultDirerctory()

Re: How to Implement Version Update

2003-06-25 Thread David Chevalier
Andrew wrote: Hi All, The application we are doing now has been designed to have VERSION UPDATE function. It means that the application can download the latest version from server via network and then the running application replace itself with the new one. At current stage, the problems of

Palm Application Packaging

2003-06-25 Thread Paturi, Ramesh P (IndSys)
All: I have made a PRC application and I have to distribute the same to the clientele. Is there a way I can do packaging and licensing the application? I need this to release my palm software. if anyone is aware of a mechanism please lemme know. Thanks in advance. Thanks and regards

Re: How to Implement Version Update

2003-06-25 Thread Sebastian Voges
On Tue, 24 Jun 2003 16:28:58 +0800, Andrew wrote: Hi All, The application we are doing now has been designed to have VERSION UPDATE function. It means that the application can download the latest version from server via network and then the running application replace itself with the new

Mysterious error message

2003-06-25 Thread Matthew Fleming
Palm-meisters, I'd appreciate your help with the following. I am trying to integrate the Zire 71's camera with my own application. I have cut and pasted bits of the sample application from the Palm SDK into my own. What I find is that the camera works - once. When I install everything fresh, and

OS5 - how to wait for interrupting programs (e.g. brightness dialog,Find, Alarm...)

2003-06-25 Thread Jeff Diamond
This may sound elementary, but I'm totally stumped. My app is running - some other app interrupts it - could be an alarm or a system dialog... Before OS 3.5, I got a winExitEvent so I knew I was interrupted - and I just waited for a winEnterEvent to continue. Then, in OS 3.5-4.2, I didn't get

Re: Palm Application Packaging

2003-06-25 Thread Thomas Damme
We usally use Pilot Catapult from www.beiks.com for the packaging. The licensing depends on your customers. TD Paturi, Ramesh P (IndSys) [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] All: I have made a PRC application and I have to distribute the same to the clientele. Is

Re: OS5 - how to wait for interrupting programs (e.g. brightness dialog, Find, A

2003-06-25 Thread jeffreyrdiamond
I just wanted to add that in many cases (e.g. an alarm going off) I look at my event trace and can't find a single event notifying my application that anything has happened. In other cases I might get an event (like AutoPowerDown), but don't know what to do with it - because instead of the power

Re: OS5 - how to wait for interrupting programs (e.g. brightness dialog, Find, A

2003-06-25 Thread jeffreyrdiamond
One last comment - we ARE passing onto the system any and all events which we don't handle ourselves. And what we do seemed to work fine in the older OSes. - Jeff --- In [EMAIL PROTECTED], Jeff Diamond [EMAIL PROTECTED] wrote: This may sound elementary, but I'm totally stumped. My app is

Re: PalmNetServices API in Palm SG SDK

2003-06-25 Thread Nicolas Pabion
Add your profile and make sure that the profile you created is the first in the profile list (eg use NetServicesProfileSetOrder() ) so that on the next connection it will be used first. Note: Opening the WiFi Panel might mess up your new account since WiFi Panel stores the connection profiles in a

Re: Mysterious error message

2003-06-25 Thread Aaron Ardiri
Fatal Alert: Emul68KMain.c, Line:403, illegal instruction 19F0 at address 0002 look carefully at address, looks like affiliated with NULL. if your using a function pointer, thats an even more obvious cause.. It would be helpful to know if this message should point me in any particular

VFS and long file names...

2003-06-25 Thread Armel Asselin
Hello all, it may be of interest to any application using card... As I was particularly annoyed by some vfsErrFileGeneric error while enumerating files in the root folder of a card, I finished digging into FAT structure and root directory structure. It seems that when you use more than 25 LFN

Multiple forms handled by one .c

2003-06-25 Thread Steven Fisher
A coworker and I are having a bit of an argument over whether or not multiple forms should be handled by a single source file. I'm a big fan of considering .c files to be objects, and trying to use an object-oriented approach to developing forms. However, he's right that handling related forms

Re: Multiple forms handled by one .c

2003-06-25 Thread Dave Lippincott
I've done both and IMHO think one .c file per form makes it easier to follow and manage the code. But in practice, the Metrowerks IDE makes it easier for me to just dump most of a Palm project's form routines into the same .c file. However, I almost always use separate handler functions for each

Low memory check failed in POSE 4.0

2003-06-25 Thread Jason Simpkins
Hello, I'm struggling to try and figure out where this low check sum failure is occuring. What tools can I use to find the exact C code that is doing this? I'm using CW6.0 and the 4.0 SDK. I try and use the debugger but it just gives me the asm code. Thanks, Jason

ARM ?

2003-06-25 Thread Paul Johnson
OK, I've finally made a start. All my library compiles having emptied out some functions etc. It won't link as I'm using Falch.Net and it won't build a static library without gnu tinkering that I'm also (previously) blissfully ignorant of for now. I guess it should be doable though, so I'll ask

Re: Too many calls to new?

2003-06-25 Thread Ben Combee
At 09:15 PM 6/24/2003, Richard Coutts wrote: I believe that the m515 only has 256K of dynamic memory available to the device. Your global memory and your stack space is included in that value, so 200K may very well be the limit. Ah. Just so I'm clear on this -- the database resides in storage

Re: Armlet optimization

2003-06-25 Thread Ben Combee
At 06:00 AM 6/25/2003, Jan Slodicka wrote: Hello I am using CW9 and I tried to test the influence of global optimizations on the armlet speed. However, the results indicate absolutely no speed difference irrespectively of whether the optimizations are off or set to level 2. Is it right or am I

RE: Bad executable generation

2003-06-25 Thread Ben Combee
At 08:44 AM 6/25/2003, Dave Mottorn wrote: The problem I've had at least three times is I don't get link errors. Once my segment was just a little over the size limit and twice I had syntatic errors that weren't detected by the compiler. In the latter two cases I had some fairly

Re: Low memory check failed in POSE 4.0

2003-06-25 Thread Jason Simpkins
Its appears that maybe its the serial manager that is having a problem. --- Jason Simpkins [EMAIL PROTECTED] wrote: Hello, I'm struggling to try and figure out where this low check sum failure is occuring. What tools can I use to find the exact C code that is doing this? I'm

Re: Multiple forms handled by one .c

2003-06-25 Thread Paul Nevai
IMHO flexibility should rule. As a matter of fact, I have multiple instances when I have a number of similar forms and then I handle them not only in one .c file by via one single event handler function. In my particular situation this has tremendous advantages. However, I believe that there

Re: offtopic: who can figure out this for loop

2003-06-25 Thread Paul Johnson
1. The ++x won't get compiled either :) Regards, Paul Johnson Applewood House www.applewoodhouse.com - Original Message - From: Aaron Ardiri [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 8:18 PM Subject: Re: offtopic: who can figure out this

Re: offtopic: who can figure out this for loop

2003-06-25 Thread Paul Johnson
I can see I'm a litle late on this. I got the ; bit right as I do this once a day myself. That bit on trigraphs is nasty tho. Why is this stuff still around ? :S Regards, Paul Johnson Applewood House www.applewoodhouse.com - Original Message - From: Paul Johnson [EMAIL PROTECTED] To:

Re: Help! How go from doze mode to bright light state(for dark place) programatically

2003-06-25 Thread rudolfpolzer2000
i need to programmatically make the Palm device from doze mode(on-display state) to bright light state(for dark place) without pressing on/off button continuously. try this one with switch = true and new as needed: static Boolean Light(Boolean switch, Boolean new) { Boolean old;

Re: fatal alert: table.c, line:2408

2003-06-25 Thread Will Leong
Thanks Aaron. I came across the culprit TblInsertRow. As I scrolled the table up and down, my table was get bigger each time. I have been starring at this code too long. Thanks again, Will Aaron Ardiri [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] This occurs when I scroll

Re: PalmNetServices API in Palm SG SDK

2003-06-25 Thread Shashidhar Kura
Nicolas, Thanks for your prompt response. The reason I posted my original question is due to the following note in NetServices API guide in Palm SG SDK. NOTE: The NetServices API does not provide a method to add profiles to the existing Wi-Fi Panel. If you create a Net Services application, you

Re: PalmNetServices API in Palm SG SDK

2003-06-25 Thread Nicolas Pabion
1) Which API lets an application, connect to specific access point ? It's up to you to aetup the access point in the profile. You can find the availbale access point doing a BSS Scan. There is a sample code for that. 2) Since the profiles created by my application and Wifi Panel may not be the

Re: getting registered directories

2003-06-25 Thread Carlos Junco
Sorry, when I said media type I meant external card media type. (i.e. Memory stick, SD card...etc.) I wanted to know how to get all the currently registered directories for a specific card media type. Sebastian Voges [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tue, 24 Jun 2003

Re: OS5 - how to wait for interrupting programs (e.g. brightness dialog,Find, Alarm...)

2003-06-25 Thread James
Jeff Diamond wrote: This may sound elementary, but I'm totally stumped. My app is running - some other app interrupts it - could be an alarm or a system dialog... Before OS 3.5, I got a winExitEvent so I knew I was interrupted - and I just waited for a winEnterEvent to continue. [...]

shortcut..2 on Sony TG50

2003-06-25 Thread Danny Wong
how do you put the device is debug mode on the Sony TG50 using the keyboard? thanks -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: shortcut..2 on Sony TG50

2003-06-25 Thread James
Danny Wong wrote: how do you put the device is debug mode on the Sony TG50 using the keyboard? IMO, it's easier to use the DotDotTwo application included with the Palm OS SDK sample code. __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!

Re: Multiple forms handled by one .c

2003-06-25 Thread DongDong
This is style issue. Everybody has its own style. I prefer to have different forms in different .c files. That results in more clear structure and debugging more easy. However, dialog boxes are put in separate .c file but in same .c with the form triggering it. Here is my preferred arrangement:

PalmSim.exe crash on frmCloseEvent

2003-06-25 Thread David Beers
I receive a fatal PalmSim.exe Application Error (instruction at 0x0x8881a8 referenced memory at 0x) every time my application tries to pass a frmCloseEvent for a particular form to FrmDispatchEvent. (Other frmCloseEvents are not a problem, in fact other frmCloseEvents to the *same* form do

Re: PalmSim.exe crash on frmCloseEvent

2003-06-25 Thread David Beers
I forgot to mention: the crash doesn't occur on a real device. The application seems to run fine there, although I have more to do and would like to be able to use the Simulator for debugging. David - Original Message - From: David Beers [EMAIL PROTECTED] To: Palm Developer Forum

Re: How to wrap text in a table column..

2003-06-25 Thread Prashant Jha
Doug, You didn't tell us what OS release levels you are testing it on. I believe the OS did not recognize taps beyond the first line in a table row until 4.0. I'm running the application on OS 3.5 and above and like you said I tested it on 4.0 and 4.1 but it doesn't behave the way I want it.