Chinese / Codewarrior

2004-04-21 Thread Edward P. Ross
Is it required to upgrade to Codewarrior 9.3 in order to compile Chinese language programs? I believe I have 9.1 installed now. Thanks, Edward -- Acrocat Software, L.L.C. Do you workout? Get Results. Get PDAbs. http://www.Acrocat.com/PDAbs -- For information on using the Palm Developer

Re: Bug in StrNCompare on PalmOS5

2004-04-21 Thread Alexander Lange
Hello Ben, Could you try recoding this as a call to TxtCompare? StrNCompare uses this internally, and the call to TxtCompare should be faster than StrNCompare if you know that you're dealing with a single-byte string. With the kind help of Dan from PalmSource I determined that StrNCompare()

Re: Chinese / Codewarrior

2004-04-21 Thread []
Hi , Edward , You mean Constructor in CW 9 ?! I used CW 9.0 with PilRC and my Big-5 Chines fonts goes well . So I think CW 9.0 is ok in PilRC. If you are using Constructor, I'll suggest you to change with PilRC and take a try again. Best Regards Jim Lu - Original Message - From:

error gcc compiling report: internal error--unrecognizable insn:

2004-04-21 Thread Carol(Min) Li
Hi all, I've met a strange error message while compiling my program using gcc.(attached below) i have compiled this file under cw, and it passed well. i'm new to palm programming, have any one met such problem or any suggestion about it? Thank you very much! Carol [EMAIL PROTECTED] v2]$ make

Simulators and sockets

2004-04-21 Thread Wojtek
Hi. I encounter some strange behaviour. My app started on simulators fails to create socket (on 5.2 socket() returns netErrNoMoreSockets, on 5.4 Sim fails with write to 0x00 ). Then, after first sync with desktop (simulator net sync) it starts working: - on 5.2 every launch works ok,socket

PLEASE HELP - Im getting crazy

2004-04-21 Thread Pit
Hi all, i am getting an error, which i can not identify. It occurs when i close my tool, per clicking on the Home-Symbol in the button bar. I try to debug this. When the PilotMain function is exited, there is some Assembler Code executed. The following command, lets rise an fatal exception.

Address example

2004-04-21 Thread DongDong
I'm studying Address example under CW9 example directory and trying to convert its resource to rcp format and let the resource header file AddressRsc.h regenerated by Pilrc Designer. And it looks there are some missing definition in the regenerated header file. I got back and copied the missing

Emulator for Palm Tungsten W

2004-04-21 Thread mahrine
I am looking for an emulator of Palm Tungsten W. PleaseCan any one guide me?? Waiting for your reply Mahrine This message was sent using IMP, the Internet Messaging Program. -- For information on using the Palm Developer

Re: PLEASE HELP - Im getting crazy

2004-04-21 Thread Pascal LEVY
The following command, lets rise an fatal exception. 0124491A: 4E5Eunlk a6 This instruction pops a value from the stack and stores it in the A6 register, which is the stack frame pointer. My guess is that your application trashes the stack, so that the restored A6

zmodem protocol and palm os

2004-04-21 Thread Vivek
Hello, I want to use zmodem protocol and want to communicate with blutooth enabled device using BT library. I am need of some source/code links which will help me in my project . Vivek -- For information on using the Palm Developer Forums, or to unsubscribe, please see

Re: Emulator for Palm Tungsten W

2004-04-21 Thread Wojtek
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am looking for an emulator of Palm Tungsten W. PleaseCan any one guide me?? Waiting for your reply Mahrine This message was sent using IMP, the Internet

How to use Unix Makefiles in Metrowerks Codewarrior??

2004-04-21 Thread DJ
Hi, I would like to use the unix makefile in Codewarrior and compile for my environment. When I tried to use the Makefile Import Wizard, I am getting the error as need atleast one .lrf file. So, 1. How to create an lrf file? 2. and how to set the option for Metrowerks Tool Set?

RE: Serial Communication problem

2004-04-21 Thread manolo perez
You can use this... works with palm Vx (palm os 3.5)and palm zire (palm os 4.1) Err v_error; UInt refSerial ; v_error = SysLibFind(Serial Library, refSerial); if (v_error){ ErrDisplay(Error al intentar abrir la libreria de comunicaciones);

Can i store a handle in the application preferences block.

2004-04-21 Thread Pit
Hi, i have a MemHandle in a struct which holds a char**, which stores multipe strings. When the application is exited, i want to store the struct in the application preferences block. After starting the application again, i want to get the stored struct out of the application preferences block.

Re: Can i store a handle in the application preferences block.

2004-04-21 Thread Chris Apers
You cannot store handle or memory pointer on app pref because the system free all handles/memory blocks when you exit your app you need to store this in another way in a database for example as records. - Original Message - From: Pit [EMAIL PROTECTED] Newsgroups: palm-dev-forum To: Palm

How to determine if an app is running on the Simulator?

2004-04-21 Thread Emilio Millan
Does anyone know a way to determine programmatically whether or not an app is running on the Simulator? I'd like to know this so I can avoid calling SysGlueTrapExists() when running on the Simulator. (Calling SysGlueTrapExists() on the Simulator causes a debugger break.) Emilio -- For

Re: Can i store a handle in the application preferences block.

2004-04-21 Thread Pit
This is also actually logic. But when i store a char** in the prefs, i can not get it back, when i call the following UInt16 size = sizeof (AppPrefs); PrefGetAppPreferences (CREATORID, 0, myAppPrefs, size, false); myAppPrefs.itemStrings1 shows invalid pointer Chris Apers [EMAIL PROTECTED]

Re: Can i store a handle in the application preferences block.

2004-04-21 Thread Chris Apers
If this is a simple string (why a char** ??) you can use : char itemStrings1[100]; - Original Message - From: Pit [EMAIL PROTECTED] Newsgroups: palm-dev-forum To: Palm Developer Forum [EMAIL PROTECTED] Sent: Wednesday, April 21, 2004 3:08 PM Subject: Re: Can i store a handle in the

Re: Problem with MemHandleResize - memErrChunkLocked

2004-04-21 Thread Roger Stringer
The whole objective seems wrong! It will save a 4 byte pointer inside a memory area, and you could just save that into the feature directly, so on the surface you are gaining nothing. So what is pit really trying to achieve? MemHandleLock returns a pointer to the memory area, which can be

Re: Can i store a handle in the application preferences block.

2004-04-21 Thread Pit
i want to store multiple strings, so i need char** Chris Apers [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] If this is a simple string (why a char** ??) you can use : char itemStrings1[100]; - Original Message - From: Pit [EMAIL PROTECTED] Newsgroups:

Launching Web Browser!

2004-04-21 Thread Keyur Patwa
Hi Combee, U had told me that I can expect sample code for launching web browser this week at Palm source Knowledge Base. I serarched for it but couldn't find anything! Can you please tell me if you have uploaded that example yet and if yes then where I can find it! Waiting for your reply!

RE: Launching Web Browser!

2004-04-21 Thread Karen Keefer
The Web Browser article just got up there this morning - I just downloaded it. Sort by decreasing date, and it should be the top article. Karen Keefer -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Keyur Patwa Sent: Wednesday, April 21, 2004 9:56 AM To:

[newbie question] opening databases....chicken and egg?

2004-04-21 Thread Salli
Hi, I have several databases which I wish to open at the start of my application. I don't want to limit my application to looking on card 0 as I would like the databases to be able to be transferred to any card (they are read only). The problem I have is that if I want to open the db by name

Re: How to determine if an app is running on the Simulator?

2004-04-21 Thread Emilio Millan
I can *partially* answer my own question. Some Simulators (Garmin's and at least some of the non-device-specific ones from PalmSource) return a Company ID of 'psys' and a Device ID of ''. But the T3 Simulator returns exactly what the T3 returns, so this isn't a complete solution. Emilio

Re: Launching Web Browser!

2004-04-21 Thread Dan Sandler
Keyur, The direct link to the KB entry: http://kb.palmsource.com/cgi-bin/palmsource.cfg/php/enduser/std_adp.php?p_faqid=731 (Ben Combee just published it last night: http://palmos.combee.net/blog/KBStandardEditMenu.html ) -- Dan Sandler PalmSource, Inc. Keyur Patwa wrote: Hi Combee, U had

Re: [newbie question] opening databases....chicken and egg?

2004-04-21 Thread Simon Dick
On Wed, 2004-04-21 at 15:08, Salli wrote: Hi, I have several databases which I wish to open at the start of my application. I don't want to limit my application to looking on card 0 as I would like the databases to be able to be transferred to any card (they are read only). The problem

RE: Launching Web Browser!

2004-04-21 Thread Keyur Patwa
Thanks a lot guys! U guys are simply great and quite fast at responding! Thanks again, Keyur -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Chinese / Codewarrior

2004-04-21 Thread Edward P. Ross
Hi Jim - Well, after I upgraded to CW 9.3 I now get a 'Palm OS Simp Chinese' option in the 'Transliteration:' combo box in the Post Linker. I was just hesitant to upgrade, but it was necessary. I am going to give Constructor a go today - I had good luck with it with Japanese so we'll see.

Re: How to determine if an app is running on the Simulator?

2004-04-21 Thread Emilio Millan
Well, I think I found my answer: Get the processor ID and if it's an Intel x86, I'm on the Simulator. Here's the code snippet: UInt32 idProcessor=0x; Err err = FtrGet(sysFtrCreator, sysFtrNumProcessorID, idProcessor); if ((idProcessor sysFtrNumProcessorMask) ==

Re: Bug in StrNCompare on PalmOS5

2004-04-21 Thread Matt Graham
Alexander Lange wrote: With the kind help of Dan from PalmSource I determined that StrNCompare() fails on strings larger than 32KB in size. Actually, most of the String Manager functions will have that limitation because they use UInt16 internally. The string I was working with was about 38KB.

Re: Making a list item visible

2004-04-21 Thread Matt Graham
Jeff Leal wrote: I've got a popup list that is activated by a trigger. The list is scrollable and sometime the selection is hidden when the list comes up. I know ther is a LstMakeItemVisible, but I cannot get it to work, or I'm calling it in the wrong event. You should be able to call

RE: Interested in soliciting developers

2004-04-21 Thread Caspar Heiden, vd
Ahem... Could this be it? (From the docs) Comments: Does not visually update the list. You must call LstDrawList() to update it. Good luck, Caspar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Baxter Sent: Friday, April 09, 2004 8:44 PM To: Palm

Re: Can i store a handle in the application preferences block.

2004-04-21 Thread Robert Moynihan
Pit wrote: This is also actually logic. But when i store a char** in the prefs, i can not get it back, when i call the following UInt16 size = sizeof (AppPrefs); PrefGetAppPreferences (CREATORID, 0, myAppPrefs, size, false); myAppPrefs.itemStrings1 shows invalid pointer Hi Pit, You are storing

Re: Creating multiple databases

2004-04-21 Thread Matt Graham
Kyle Dorian wrote: Is there anything different that needs to be done to allow multiple databases to be opened at the same time? No. Multiple databases can be opened fine if you do it right. -- For information on using the Palm Developer Forums, or to unsubscribe, please see

RE: Can i store a handle in the application preferences block.

2004-04-21 Thread Hays, Jonathan \(GE Infrastructure\)
You cannot store handle or memory pointer on app pref because the system free all handles/memory blocks when you exit your app you need to store this in another way in a database for example as records. Yes, the system will free all handles/memory unless you set the system as the owner. To do

Re: [newbie question] opening databases....chicken and egg?

2004-04-21 Thread Dave Carrigan
On Wed, Apr 21, 2004 at 03:08:50PM +0100, Salli wrote: I have several databases which I wish to open at the start of my application. I don't want to limit my application to looking on card 0 as I would like the databases to be able to be transferred to any card (they are read only). The

RE: How to determine if an app is running on the Simulator?

2004-04-21 Thread Hays, Jonathan \(GE Infrastructure\)
FYI, the answers are found in HostControl.h Use this snippet to determine if you are on the emulator or simulator: HostIDType hostID = HostGetHostID(); bool simulatorPresent = (hostID == hostIDPalmOSSimulator); bool emulatorPresent = (hostID == hostIDPalmOSEmulator); -Jon

[ANN] Palm Programmer Wanted

2004-04-21 Thread Joel Shafer
Mobility Texas, formerly known as Cutting Edge Software, is the leading developer of innovative business and productivity software solutions for handheld mobile computing users. These solutions allow users to greatly increase the functionality of their handheld devices. To learn more about

RE: [newbie question] opening databases....chicken and egg?

2004-04-21 Thread Hays, Jonathan \(GE Infrastructure\)
Simon is right. The card will almost always be 0. However, if for some reason you do want to support the old handspring devices/springboard modules, you have to use DmGetNextDatabaseByTypeCreator to find your database. -Jon Jonathan Hays Palm OS

Re: [ANN] Palm Programmer Wanted

2004-04-21 Thread Aaron Ardiri
If you are interested in pursuing this excellent opportunity, please forward your resume with salary history to [EMAIL PROTECTED] or fax to 480-477-3551. salary history? :) no-one relocates people anymore ... us europeans just missout --- Aaron Ardiri PalmOS Certified Developer [EMAIL

skipping lines in a field

2004-04-21 Thread Ornstein, Adam
Hi, Im trying to set text to a field - which has been completed successfully, only I haven't been able to format it. I know that on other objects using \r within the text will enable me to go to the next line, but this does not seem to be the case for field objects. Any suggestions? -- For

Handedness preference?

2004-04-21 Thread Joseph J. Strout
I don't have a device that supports Graffiti 2, but I'm told by one of my users that such devices have a Handedness setting somewhere in the system preferences. Is it possible for my app to get the value of that setting? I'd like to rearrange the UI a bit if I can know that the user is

RE: Can i store a handle in the application preferences block.

2004-04-21 Thread Ben Combee
At 08:56 AM 4/21/2004, you wrote: You cannot store handle or memory pointer on app pref because the system free all handles/memory blocks when you exit your app you need to store this in another way in a database for example as records. Yes, the system will free all handles/memory unless you set

Re: How to use Unix Makefiles in Metrowerks Codewarrior??

2004-04-21 Thread Ben Combee
At 03:04 AM 4/21/2004, you wrote: Hi, I would like to use the unix makefile in Codewarrior and compile for my environment. When I tried to use the Makefile Import Wizard, I am getting the error as need atleast one .lrf file. CodeWarrior for Palm OS doesn't have the needed plugins to

Re: Chinese / Codewarrior

2004-04-21 Thread Ben Combee
At 11:59 PM 4/20/2004, you wrote: Is it required to upgrade to Codewarrior 9.3 in order to compile Chinese language programs? I believe I have 9.1 installed now. It's a really good idea to update to V9.3 anyway, since the update it free. However, the only determining factor really is the Palm

Re: [newbie question] opening databases....chicken and egg?

2004-04-21 Thread Ben Combee
At 09:00 AM 4/21/2004, you wrote: Given that there aren't really any palm devices that have more than one memory card, what you're doing is fine, because you'll never have to use anything besides card 0. However, for completeness, what you could have done is use a different type for each database,

Re: SoftKey Support in Palm

2004-04-21 Thread Ben Combee
At 12:35 AM 5/28/2004, you wrote: Hi All, I am trying to implement softkeys for Palm 6.0 device. But whatever devices/simulators I saw for Palm no one had any hardkeys on device for supporting softkeys. Basically I need to handle the keydown events for hardkeys on device and need to handle them

Trouble with Treo 600 Navigator

2004-04-21 Thread Richard Coutts
I have some code to detect when a navigator is present and handle the event if (errNone == FtrGet(navFtrCreator, navFtrVersion, version)) { if (EvtKeydownIsVirtual(eventP) (eventP-data.keyDown.chr == vchrNavChange)) { if (NavKeyPressed(eventP,

Re: Allocating memory on a Palm

2004-04-21 Thread Ralph Curtis
It's in the Palm OS documentation. See File Streaming Functions. You'll find FileOpen, FileRead, FileWrite, etc, eg. FileHand FileOpen (UInt16 cardNo, const Char *nameP, UInt32 type, UInt32 creator, UInt32 openMode, Err *errP) Int32 FileWrite (FileHand stream, const void *dataP, Int32 objSize,

bitmap memory leaks

2004-04-21 Thread Ornstein, Adam
Hi, I have a form with a bitmap on it as a splash screen (all specified in the resource file). I thought that this wouldn't be a problem, that the system should automatically take care of the memory on that form... When I exit the program I get 4 memory leaks. How can I go about re-allocting

Re: Trouble with Treo 600 Navigator

2004-04-21 Thread Lazar Otasevic
i use ftrget like this: FtrGet(hsFtrCreator, hsFtrIDNavigationSupported, ver) read more docs! Richard Coutts [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have some code to detect when a navigator is present and handle the event if (errNone == FtrGet(navFtrCreator,

Re: skipping lines in a field

2004-04-21 Thread ernie nichols
Ornstein, Adam wrote: Hi, Im trying to set text to a field - which has been completed successfully, only I haven't been able to format it. I know that on other objects using \r within the text will enable me to go to the next line, but this does not seem to be the case for field objects. Any

Re: bitmap memory leaks

2004-04-21 Thread Ben Combee
At 02:21 PM 4/21/2004, Ornstein, Adam wrote: Hi, I have a form with a bitmap on it as a splash screen (all specified in the resource file). I thought that this wouldn't be a problem, that the system should automatically take care of the memory on that form... When I exit the program I get 4

Re: Detect app launch?

2004-04-21 Thread Ben Combee
At 02:56 PM 4/21/2004, you wrote: Hi, How to detect if a certain app is launched. I want to be able to detect from a sound callback (SndStreamCreate) that is running in the background, if someone launched a particular application. Any ideas? There is a system notification,

Re: Trouble with Treo 600 Navigator

2004-04-21 Thread Ben Combee
At 12:25 PM 4/21/2004, Richard Coutts wrote: This doesn't work with the Treo 600 -- the FtrGet returns something other than errNone and none of the subsequent code gets run. If someone could clue me in or post some code that does the equivalent of what I need for the Treo 600, I'd be indebted.

Re: Creating multiple databases

2004-04-21 Thread Kyle Dorian
Thanks for your thoughts. I've checked that the error occurs when calling my shutdown routine which closes the database (i.e. when calling DmCloseDatabase). DmOpenDatabaseInfo isn't called during the shutdown routine - the only time it is called is when creating the database. Ben Combee [EMAIL

Re: Creating multiple databases

2004-04-21 Thread Ben Combee
At 04:15 PM 4/21/2004, Kyle Dorian wrote: Thanks for your thoughts. I've checked that the error occurs when calling my shutdown routine which closes the database (i.e. when calling DmCloseDatabase). DmOpenDatabaseInfo isn't called during the shutdown routine - the only time it is called is when

Re: Handedness preference?

2004-04-21 Thread Scott Dreslinski
I have almost made this to easy for you. handedness = PrefGetPreference(prefHandednessChoice); prefHandednessChoice is from preferences.h, looks like it was added for os 5.3 It will give you // Handedness states #define prefRightHanded 0 #define prefLeftHanded 1 -- Scott Dreslinski [EMAIL

general DIA support code

2004-04-21 Thread Alexander R. Pruss
A while back I asked if there was any GPL-compatible DIA support code that could be used in place of CollapseUtils. I ended up writing my own, compatible with Sony OS4, Sony OS5, Palm DIA and Handera (the last with a bit more work perhaps). The code lets you describe the resize via data in

Re: Handedness preference?

2004-04-21 Thread Joseph J. Strout
At 10:01 PM -0400 4/21/04, Scott Dreslinski wrote: handedness = PrefGetPreference(prefHandednessChoice); prefHandednessChoice is from preferences.h, looks like it was added for os 5.3 It will give you // Handedness states #define prefRightHanded 0 #define prefLeftHanded 1 Aha, thank you. At

Drawing on the Dynamic InputArea

2004-04-21 Thread LionScribe
Is there any way to draw on the Dynamic Input Area of the T3 while it is open (not collapsed). The WinDraw methods don't seem to work, since it's outside the Draw Window. Any suggestions? LionScribe begin 666 Arye Schreiber.vcf M0D5'24XZ5D-!4D0-E9%4E-)3TXZ,BXQ#0I..E-C:')E:6)ECM!GEE.SM-

Re: Handedness preference?

2004-04-21 Thread Ben Combee
Aha, thank you. At http://www.palmos.com/dev/support/docs/palmos/Preferences.html I see that prefHandednessChoice is documented as reserved for future use -- I guess 5.3 is that future. In previous versions of the OS, as I understand it, this will always return 0 (and on a debug ROM, it

Re: SoftKey Support in Palm

2004-04-21 Thread Pravin Tamkhane
There are no announced Palm OS Cobalt devices, so no device configurations have been specified. The current Palm OS Cobalt simulator supports using F1-F5 to stand for the standard application hard keys and the power button. Can you give an example of what you mean by soft keys. A discussion

Re: SoftKey Support in Palm

2004-04-21 Thread Ben Combee
At 10:31 PM 11/27/2003, you wrote: There are no announced Palm OS Cobalt devices, so no device configurations have been specified. The current Palm OS Cobalt simulator supports using F1-F5 to stand for the standard application hard keys and the power button. Can you give an example of what