Re: Palm OS 5.2, tungsten/sony?

2003-01-22 Thread Ron Nicholson
Mike writes: Can someone explain the difference between an ARM native program and a 68K native program? You don't say what your background is, so it's hard to tell whether this is a simple or a deep question. I'd start by looking up the terms compiler, machine code, assembly language,

Re: Five-way on Simulator/Emulator

2003-01-22 Thread John Marshall
On Tue, Jan 21, 2003 at 11:21:00AM -0600, Ben Combee wrote: The Plugged-In program as a version of POSE for the Tungsten W Are you sure? Last time this came up, it appeared to be mythical. http://www.escribe.com/computing/pcpef/m5461.html John -- For information on using the

Re: Five-way on Simulator/Emulator

2003-01-22 Thread Aaron Ardiri
On Tue, Jan 21, 2003 at 11:21:00AM -0600, Ben Combee wrote: The Plugged-In program as a version of POSE for the Tungsten W Are you sure? Last time this came up, it appeared to be mythical. http://www.escribe.com/computing/pcpef/m5461.html yes, i am sure. i have it here on my hard

class constructor

2003-01-22 Thread Chris Apers
Hi, This a newbie question :o) : I have a class : class firstClass { public: firstClass(a, b); .. (vars declaration) ( functions declaration) } and another one : class nextClass : public firstClass { public: nextClass(a, b); . (vars declaration) (

Re: stack overflowed

2003-01-22 Thread John Marshall
On Mon, Jan 20, 2003 at 11:28:21AM -0600, Ben Combee wrote: If you're using prc-tools, I'm fairly sure stack size is an option you can pass to build-prc. Don't just be fairly sure, check the documentation! :-) http://prc-tools.sourceforge.net/cgi-bin/info/definition+files And Chris

MemoryMgr.c, Line:3564 NULL handle

2003-01-22 Thread Jan Slodicka
Hello could somebody who has MemMgr.c source tell me what this message means? (There was already similar question posted to this forum, but remained unanswered.) I get this message from within an Armlet in otherwise working code so it is a bit difficult to find the reason. (Tungsten T/t, Palm OS

Re: MemoryMgr.c, Line:3564 NULL handle

2003-01-22 Thread Aaron Ardiri
could somebody who has MemMgr.c source tell me what this message means? (There was already similar question posted to this forum, but remained unanswered.) I get this message from within an Armlet in otherwise working code so it is a bit difficult to find the reason. (Tungsten T/t, Palm OS

How callback in SysNotifyRegister

2003-01-22 Thread nybxvc [EMAIL PROTECTED]
How to pass a pointer to a callback function? The function is my keyboard replacement code. And can this code be in the same app where the lines below are (and made start it on tapping on the silkscreen abc-button while e.g. Memopad runs)? Now I have to replace the first NULL to avoid the

how to set a define PALM_OS in project setting ?

2003-01-22 Thread Rodolphe Bréjaude
Hello, I have a .c file that must compile different part of code depending on a define ex : #ifdef _PALM_OS int i; #else char i; #endif How can I set the _PALM_OS string as a compiling define in the project setting ? thanks ? -- For information on using the Palm Developer Forums, or to

Re: MemoryMgr.c, Line:3564 NULL handle

2003-01-22 Thread Jan Slodicka
Thank you. The problem is that there is no MemHandleLock() call. The only thing which could cause it is PACEInterface::FrmCustomAlert() call. It is called from the armlet and works on the Simulator. Jan Slodicka - Original Message - From: Aaron Ardiri [EMAIL PROTECTED] could somebody

Re: MemoryMgr.c, Line:3564 NULL handle

2003-01-22 Thread Aaron Ardiri
Thank you. The problem is that there is no MemHandleLock() call. The only thing which could cause it is PACEInterface::FrmCustomAlert() call. It is called from the armlet and works on the Simulator. FrmCustomAlert() - not passing NULL there are you? :) seems to be an issue maybe with the

Fw: how to set a define PALM_OS in CW project setting ?

2003-01-22 Thread Rodolphe Bréjaude
Hello, I have a .c file that must compile different part of code depending on a define ex : #ifdef _PALM_OS int i; #else char i; #endif How can I set the _PALM_OS string as a compiling define in the project setting ? thanks ? -- For information on using the Palm

RE: Barcode Symbologies

2003-01-22 Thread Stringer
Subject: Barcode Symbologies From: [EMAIL PROTECTED] Can anyone tell me if and how to activate the scanning of the following barcode symbologies on the Symbol range of scanners? Bar code M - Addendum and Bar code N – Addendum, these codes are usually found on books, magazines and other

Palm OS 4.0 above on a 2M Palm device

2003-01-22 Thread mengtao tao
Hi All, We are doing some analysis on the available dynamic heap size on 2M Palm devices and wonderring whether higher Palm OS versions can provide more dynamic heap on the same Palm device with 2M memory. We know that a 2M Palm device with Palm OS 3.5 installed can yeild us 128K dynamic heap.

debug or release

2003-01-22 Thread Rodolphe Bréjaude
Hello, I don't exactly see differencies in the CW projet setting betwwen DEBUG and RELEASE target? What is the differences? Is there a define that I can test in my code? I can compile my application in debug, but I have a link error in release ? thanks to help me. -- For information on

a FrmRestoreActiveState() question

2003-01-22 Thread Paul Nevai
I always did FrmSaveActiveState (vTP-origFrmState); ... FrmSetActiveForm (vTP-origFrmP); = FrmRestoreActiveState (vTP-origFrmState); BUT as I looked at the OS 4.0 source code I see that they use it w/o FrmSetActiveForm() FrmSaveActiveState

How to init variables in sampleLib

2003-01-22 Thread Martin NGAI
How to init variables in sampleLib ? Is it related to wrong CW settings? Please look at the code below. Why intxxx, intyyy, gdate, spxxx, spyyy, and ddd cannot be initialized? The constants assigned to the Global Varaibles are not included to the prc file. The constants assigned to the local

Re: debug or release

2003-01-22 Thread Brad Figler
Do you have multiple segments? If so, are they setup the same way in both targets? I have run in to linking issues between targets where I fail to update one of the targets when moving files from one segment to another (usually release). Brad Rodolphe Bréjaude [EMAIL PROTECTED] wrote in

Re: Is there a way to set the font on a label?

2003-01-22 Thread Andy Arhelger
Thanks for the idea. I already have a place in my code where I hide a label, change the text then show it again. That was the only way I could find to get the new text to show up right. Didn't work with changing the font so I tried your idea of FrmRemoveObject() then FrmNewLabel(). That worked,

RE: class constructor

2003-01-22 Thread Jeff Wheeler
Chris Apers wrote: class firstClass { public: firstClass(a, b); .. (vars declaration) ( functions declaration) } class nextClass : public firstClass { public: nextClass(a, b); . (vars declaration) ( functions declaration) } and i want to

Changing the stack size w/ CW9

2003-01-22 Thread Brad Figler
How do I do it? I am using pilrc vs. constructor and I am not quite sure how to change my stack size. I could add my original .r file, but I don't see the Rez as a compiler option in the file mapping panel. Thanks in advance, Brad In the meantime I am going to change the fact that I use so

CW9 IDE

2003-01-22 Thread Brad Figler
Is anyone having a problem with break points not being snapped to unless the source file is maximized in the CW9 IDE? If so, is there any way around it? Also, is there a Show Next Instruction like in visual studio? Thanks, Brad -- For information on using the Palm Developer Forums, or to

Re: Palm OS 5.2, tungsten/sony?

2003-01-22 Thread Mike
The SDK is just a wrapper for the OS calls, and has (almost) nothing to do with the ISA used by the binary (ARM, x86/IA32 or 68k). I guess I'm confused. If I do embedded programming for a micro, my compiler goes from C to assembly as there is no OS running on the micro... But you're saying

Re: how to set a define PALM_OS in project setting ?

2003-01-22 Thread Matt Graham
Rodolphe Bréjaude wrote: How can I set the _PALM_OS string as a compiling define in the project setting ? I think you can set your define in a header file and then include that header file in the project settings as the prefix header file. -- For information on using the Palm Developer

Re: how to set a define PALM_OS in project setting ?

2003-01-22 Thread Chris Apers
I asked this last month, here the answer from Ben Combee : With the Metrowerks compiler, we define __PALMOS_TRAPS__ when compiling for 68K Palm OS, and __PALMOS_ARMLET__ when compiling ARMlet code for Palm OS. Chris - Original Message - From: Matt Graham [EMAIL PROTECTED] Newsgroups:

Dynamic Heap Contents

2003-01-22 Thread mengtao tao
Dear All, We have developed a Palm PDA app which need to allocate big chucks of memory in the dynamic heap at run time due to the memo fields in our data tables. When we are probing the possiblity to yield as much as available dynamic heap to run our app, we get to know that one of the dynamic

RE: Changing the stack size w/ CW9

2003-01-22 Thread Vinu Raj
How do I do it? I am using pilrc vs. constructor and I am not quite sure how to change my stack size I believe this has been covered before on this forum. If you are using the new Palm OS 68K Linker included with CW for Palm V9, there is a setting in the Palm OS 68K Target settings

export project as a GNU makefile

2003-01-22 Thread Andre Arpin
running export project on version 9 generate the following output # Makefile generated by Metrowerks CodeWarrior IDE # all: Debug Release clean: clean_Debug clean_Release I first try this on an existing project which was upgraded and then try it again in brand new

Re: How callback in SysNotifyRegister

2003-01-22 Thread Daniel Seifert
Am Mit, 2003-01-22 um 12.32 schrieb nybxvc : Hi, SysCurAppDatabase(myCardNo, myDbID); err = SysNotifyRegister(myCardNo, myDbID, sysNotifyKeyboardDialogEvent , NULL, sysNotifyNormalPriority, NULL); If your replacement function is called MyKeyboardCode, it should

Re: debug or release

2003-01-22 Thread Ben Combee
At 14:58 2003-1-22 +0100, you wrote: Hello, I don't exactly see differencies in the CW projet setting betwwen DEBUG and RELEASE target? What is the differences? Look at the project settings. In a wizard created project, these two targets will usually differ in the optimization level used

Re: How to init variables in sampleLib

2003-01-22 Thread Ben Combee
At 22:22 2003-1-22 +0800, you wrote: How to init variables in sampleLib ? Is it related to wrong CW settings? Please look at the code below. Why intxxx, intyyy, gdate, spxxx, spyyy, and ddd cannot be initialized? The constants assigned to the Global Varaibles are not included to the prc file.

Re: Changing the stack size w/ CW9

2003-01-22 Thread Ben Combee
At 08:12 2003-1-22 -0700, you wrote: How do I do it? I am using pilrc vs. constructor and I am not quite sure how to change my stack size. I could add my original .r file, but I don't see the Rez as a compiler option in the file mapping panel. This has been answered here before... in fact,

Re: export project as a GNU makefile

2003-01-22 Thread Ben Combee
At 11:45 2003-1-22 -0500, you wrote: running export project on version 9 generate the following output # Makefile generated by Metrowerks CodeWarrior IDE # all: Debug Release clean: clean_Debug clean_Release I first try this on an existing project which was

Re: CW9 IDE

2003-01-22 Thread Ben Combee
At 08:30 2003-1-22 -0700, you wrote: Is anyone having a problem with break points not being snapped to unless the source file is maximized in the CW9 IDE? If so, is there any way around it? No. I'm not quite sure I understand what the bug is you are describing. Also, is there a Show Next

Re: Japanese OS upgrade to 4.1

2003-01-22 Thread Ken Krugler
Does anyone know of anything for this? I spent about 40 minutes on the phone with Palm support and the store and they could neither confirm nor deny that it was available. I know that there is a 4.1-J ROM, but I'd doubt that there was any upgrade program for it. -- Ken -- Ken Krugler

Re: Palm OS 5.2, tungsten/sony?

2003-01-22 Thread Ron Nicholson
Mike allegedly writes: If I do embedded programming for a micro, my compiler goes from C to assembly as there is no OS running on the micro... But you're saying that CW does not produce op codes for the specific hardware platform If you are using CW v8, that could be correct. CW for PalmOS v8

Popup List with Separator Lines

2003-01-22 Thread Mike McCollister
Does anyone have an examples on how to create a popup list with the separator lines in it like the colors list in the Palm OS 5 Simulator has? Thanks, Mike McCollister __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now.

What happens to deleted records in a database?

2003-01-22 Thread kcorey
Hi All, I've got a database open with, say 9 records numbered 0-8. I remove the first record using DmRemoveRecord, and then create another record with DmNewRecord. I get the uniqueID for the new record and store it (the unique ID for this record *is* different than that of the deleted record).

Re: Popup List with Separator Lines

2003-01-22 Thread Ben Combee
At 11:32 2003-1-22 -0800, you wrote: Does anyone have an examples on how to create a popup list with the separator lines in it like the colors list in the Palm OS 5 Simulator has? I think the simplest way would be to do a custom-draw list, and have the draw routine check to see if the text is

Re: Palm OS 5.2, tungsten/sony?

2003-01-22 Thread Henk Jonas
Hi Mike, some small cents from my side... Mike wrote: The SDK is just a wrapper for the OS calls, and has (almost) nothing to do with the ISA used by the binary (ARM, x86/IA32 or 68k). I guess I'm confused. If I do embedded programming for a micro, my compiler goes from C to assembly as

Re: Popup List with Separator Lines

2003-01-22 Thread Mike McCollister
Ben, Thanks. I'm working on a similar technique right now. Mike --- Ben Combee [EMAIL PROTECTED] wrote: At 11:32 2003-1-22 -0800, you wrote: Does anyone have an examples on how to create a popup list with the separator lines in it like the colors list in the Palm OS 5 Simulator has? I

Ending a FrmDoDialog session

2003-01-22 Thread Gordon, Douglas
Usually when you put up a form with FrmDoDialog, the window is taken down and the function returns to the caller automatically when the user taps a button. If I have my own event handler for the window, what is the method for finishing up the dialog without the user having tapped a button? My

RE: Ending a FrmDoDialog session

2003-01-22 Thread Robert McKenzie
Easiest is to add (yourself) a ctlSelect on your dialog's OK button. If you don't have an appropriate button, you can just add one to your form and make it invisible (not usable). Make sure you don't handle your ctlSelect event and the FrmDoDialog's event loop will end your dialog and return

Re: Changing the stack size w/ CW9

2003-01-22 Thread Jan Slodicka
Is there any possibility to monitor the available stack size? - Original Message - From: Ben Combee [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Wednesday, January 22, 2003 7:23 PM Subject: Re: Changing the stack size w/ CW9 At 08:12 2003-1-22 -0700, you wrote:

Button Contol with no frame

2003-01-22 Thread venkatesh moh
Hey All, Is there any way to draw a control of type buttonCtl with no border. I see that the controlAttr structure has a field for this but there are no functions provided to acces this field. Any ideas please ? Thanks, Venki. __ Do you Yahoo!?

Re: stack overflowed

2003-01-22 Thread Chris Antos
And Chris Antos wrote: Metrowerks (and IIRC also GCC) pushes function call arguments onto the stack ... but does not pop them until the function returns (or in certain looping situations). Don't just IIRC, check the documentation :-). See also

Re: Changing the stack size w/ CW9

2003-01-22 Thread Ben Combee
At 22:45 2003-1-22 +0100, you wrote: Is there any possibility to monitor the available stack size? You can see the amount of stack each function in a file uses by adding the line #pragma warn_stack_usage 1 to the top of your file, and then compiling it. -- Ben Combee [EMAIL PROTECTED]

CW for Palm OS V9.1 update posted

2003-01-22 Thread Ben Combee
We have just posted the V9.1 update to CodeWarrior Development Studio for Palm OS. You must have V9.0 installed on your system to apply this update. This update addresses two problems: 1) PilRC Designer is updated to version 2.0.6 which fixes crashing problems, the skin selector, and some

Re: CW9 IDE

2003-01-22 Thread Brad Figler
If I set a break point in file A.cpp and I launch the debugger while in file B.cpp, the code breaks, but focus does not go to the line where the break point is. Instead, I have to search for the break point that was hit by the code. This only happens when I do not have the files maximized in the

Re: CW9 IDE

2003-01-22 Thread Ben Combee
At 15:11 2003-1-22 -0700, you wrote: If I set a break point in file A.cpp and I launch the debugger while in file B.cpp, the code breaks, but focus does not go to the line where the break point is. Instead, I have to search for the break point that was hit by the code. This only happens when I

Re: CW9 IDE

2003-01-22 Thread Brad Figler
Ben, I am not getting the all in one window. I am getting the actual source file window, and I can step through code. If I maximize my windows, then I get the all in one window (with the variables and stack, etc..)! I promise, I gave up drugs a long time ago! Brad Ben Combee [EMAIL

Re: Changing the stack size w/ CW9

2003-01-22 Thread Jan Slodicka
Thank you. I tried it and got for this function void DoTestFS() { int err=0 ; const char *filePath ; char buf[80] ; clock_t t0, t1 ; //... } this warning: Warning. Function DoTestFS() uses 80 bytes of stack All variables are used, so the report is a bit strange. Moreover this procedure

Re: Changing the stack size w/ CW9

2003-01-22 Thread Ben Combee
At 23:46 2003-1-22 +0100, you wrote: Thank you. I tried it and got for this function void DoTestFS() { int err=0 ; const char *filePath ; char buf[80] ; clock_t t0, t1 ; //... } this warning: Warning. Function DoTestFS() uses 80 bytes of stack All variables are used, so the report is a

Re: CW9 IDE

2003-01-22 Thread Ben Combee
At 15:36 2003-1-22 -0700, you wrote: Ben, I am not getting the all in one window. I am getting the actual source file window, and I can step through code. If I maximize my windows, then I get the all in one window (with the variables and stack, etc..)! I promise, I gave up drugs a long time

Re: Palm OS 5.2, tungsten/sony?

2003-01-22 Thread Mike
Ok, cool I think I got it now, thanks! So CW 8 produces 68k opcodes. But on an ARM platform, the PACE has to interpret these 68K op codes, even for API calls. So what the PDF is saying is the actual APIs in the OS are ARM Native. But what it doesn't say (and what I was missing) is that anything

Re: Connecting a Tungsten to the network

2003-01-22 Thread Stuart Eichert
Has anyone written a driver to use the Palm USB cradle as a COM port? If it were a COM port I assume I could run RAS or MochaPPP as a PPP server on Windows? How about on Mac OS X? Stuart On Tue, Jan 21, 2003 at 08:37:19PM -0800, venkatesh moh wrote: I have a Palm OS 5 Tungsten device with a

Re: ANN: SysZLib with armlet released

2003-01-22 Thread Alan Ingleby
On a similar thread, have you considered using a version that has x86let code, for the simulator? Christian Vandendorpe [EMAIL PROTECTED] wrote in message news:110015@palm-dev-forum... Have you considered making a version that just has the ARM code? This would keep it at a reasonable size.

Re: Where can I find PalmOS 4.1.2 ROM??

2003-01-22 Thread Alan Ingleby
If the device has a flash rom, then you can probably upgrade it to 4.1.2, but the versions in the seeding area are full roms, which are bigger than 2 megs, and therefore won't fit onto most devices. IMHO, I'd stick with 4.1, because I have using Jot for grafitti input. Alan Kamil Brzeziñski

Table drawing/C question/problem

2003-01-22 Thread Andy Black
Hi, In my program I have a table that I want to draw a note icon in a column if the record from my database has a note entry. However, every entry is drawing the note icon. From what I can tell my code should work. after I unpack the packedCE record into a ceRecord I have the following code:

Re: Table drawing/C question/problem

2003-01-22 Thread DonelMac
Andy Black wrote: Hi, In my program I have a table that I want to draw a note icon in a column if the record from my database has a note entry. However, every entry is drawing the note icon. From what I can tell my code should work. after I unpack the packedCE record into a ceRecord I have

quick lists question

2003-01-22 Thread David McNab
I'm using a list, where I've set the choices with LstSetListChoices(). If, at a later stage, I call LstSetListChoices() again, does PalmOS free the memory of the choices list and choice strings, or is that my responsibility? Thx David -- For information on using the Palm Developer Forums, or

RE: quick lists question

2003-01-22 Thread Bob Whiteman
David, I think that this Palm OS Knowledge Base article will answer your question: http://kb.palmsource.com/cgi-bin/palmsource.cfg/php/enduser/std_adp.php?p_faqid=293 -Bob Whiteman = Developer Technical Services Engineer - Comms PalmSource, Inc.

ConvertHHToPC()?

2003-01-22 Thread Su Duy Trinh
Hi alll, I have a struct for a PDB database on Palm handheld created by Codewarrior like: #define CON_DB_TYPE('DATA') #define CON_DB_NAME (ConDB) #define CON_CREATOR_ID ('cont') typedef struct { int con_pk; int con_incomplete; charcon_name [CON_NAME+1]; char

CodeWarrior for Palm 8 available on ebay..

2003-01-22 Thread Ryan Dary
Hello. I just put my CodeWarrior up for grabs on eBay. I don't need it anymore. Includes the Mac and Windows version. Just opened and used for a month. http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItemitem=2302978946 Thanks, Ryan Dary = www.ryandary.com

Re: Palm OS 5.2, tungsten/sony?

2003-01-22 Thread Ben Combee
At 18:02 2003-1-22 -0700, you wrote: Ok, cool I think I got it now, thanks! So CW 8 produces 68k opcodes. But on an ARM platform, the PACE has to interpret these 68K op codes, even for API calls. So what the PDF is saying is the actual APIs in the OS are ARM Native. But what it doesn't say

TblSetCustomDrawProcedure in OS 5

2003-01-22 Thread DNR
Hi everyone, In my program i have a custom table which uses TblSetCustomDrawProcedure to call a callback proceudre which draws items of the table. This works fine in devices which have OS version less than 5. But in OS5 (both in Simulator and Tungsten T) it seems the program does not go in to the

Re: Palm OS 5.2, tungsten/sony?

2003-01-22 Thread Rob Larson
Ben Combee [EMAIL PROTECTED] wrote in message news:110199@palm-dev-forum... There isn't a way for normal software developers to have completely ARM-native applications on current Palm OS devices. Arm native applications require some sort of system call structure like the Trap instruction

error: crt0.c:35: multiple definition of 'start'

2003-01-22 Thread Veronica Loell
I am trying to run build-prc and I get the following error message: $ make m68k-palmos-gcc ppavotid.o -o ppavotid ppavotid.o: In function `start': crt0.c:35: multiple definition of `start' /usr/m68k-palmos/lib/crt0.o:crt0.c:35: first defined here collect2: ld returned 1 exit

Re: error: crt0.c:35: multiple definition of 'start'

2003-01-22 Thread Daniel Seifert
Am Don, 2003-01-23 um 08.23 schrieb Veronica Loell: Hi, ppavotid.o: In function `start': crt0.c:35: multiple definition of `start' /usr/m68k-palmos/lib/crt0.o:crt0.c:35: first defined here The symbol start is defined in crt0.o, so you can't use a function called start in your app (unless