Serial communication and Springboard

2002-12-17 Thread Agus Silas
Hi, I use a Visor Neo and the Magellan GPS Companion connected on the Springboard connector. I guess that the Companion use the serial protocol to communicate since I need to fix the speed using their command ( MglnStart (4800) ) eventhough it is connected on the Springboard connector. The

StrPrintF limitations under OS 2.0

2002-12-17 Thread Larry Gilbert
I've been playing with someone else's program and I noticed something funny: calls to StrPrintF were causing POSE to halt with an Unsupported error while emulating a PalmPilot with OS 2.0. I did a search back through the archives of this newsgroup and found that someone else had run into

Re: Universal connector

2002-12-17 Thread Henk Jonas
Hi, Isn't it described at palm.com somewhere? At least it was for the M100 serial connector. As far as I can see it, VOUT is the 5?? V voltage which is mainly used to trigger the hotsync by connecting VOUT with HS IRQ. What ID and DETECT are, I don't know, but I would guess it's for the USB

Strange addressbook example in SDK 4.0 (Was: Accessing the AddressBook data)

2002-12-17 Thread Henk Jonas
Hm, I just had a look into the example source and found a strange behaviour or maybe I'm just blind... in file AddressDB.c starting from line 1695 PrvAddrPackedDBRecord* d=0; Int16len; void * srcP; UInt8companyFieldOffset; flags.allBits = 0;

Re: Tungsten-CW for debugging

2002-12-17 Thread Rob Larson
Ben - So what will happen with CW V8 debugger? Does it sometimes just stop a little further on in the code than expected, or does it get totally confused? Your mention of overlaying code with the TRAP #0 leads me to a related question. How do you gain access to code segment? I had to remove

Re: Accessing the Address Book data

2002-12-17 Thread Miken
The attachment will show all records in address DB. If it is what you do want to get,please contact me. begin 666 MyAddress.prc M37E!91R97-S`0`!NB4/B;HE#XD` M87!P;$UY860*8V]D90`!M-O M94``@``!W1D871A``RV=$92301,```-P$U05(#Z

Re: Universal connector

2002-12-17 Thread Brian Hall
[[ This message was both posted and mailed: see the To, Cc, and Newsgroups headers for details. ]] In article 105424@palm-dev-forum, DT [EMAIL PROTECTED] wrote: We are building a serial cable to connect our m125 to one of our own devices via RS232. Our device normally communicates with a

how to build a female serial connector for Palm V [OT?]

2002-12-17 Thread dex
I want to reuse a Palm V keyboard with my m500. Is there anyone who knows how to build a Palm V serial female connector. The 1st idea is to cannibal a Palm V, but I prefer to avoid to destroy a Palm. Any suggestion will be welcome dex -- For information on using the Palm Developer Forums, or

Re: SDCard security

2002-12-17 Thread dex
In article 98119@palm-dev-forum, [EMAIL PROTECTED] says... I would like to use SDCard-security-functions in my application. I think this can be done by calling VFSCustomControl, but for this I need a filesystem that supports the SDCard-API and exports a list of api-selectors. Does the

How to get all address in sim card?

2002-12-17 Thread Miken
I use sdk4.0+Cw7.1+treo sdk.Please help me ,and thanks. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Strange addressbook example in SDK 4.0 (Was: Accessing the Address Book data)

2002-12-17 Thread John Marshall
On Tue, Dec 17, 2002 at 10:06:21AM +0100, Henk Jonas wrote: Hm, I just had a look into the example source and found a strange behaviour or maybe I'm just blind... [...] DmWrite(recordP, (Int32)d-options, s-options, sizeof(s-options)); offset = (Int32)d-firstField; d is a

how to receive selective data by using exchange manager

2002-12-17 Thread geeta more
Hi all , i want to know how to receive selective data by using exchange manager ... Right now my application is receiving data of type TXT . I set my application as a default application .. so whenever any data with .TXT occurs , i am only getting it ... But my actual requirment is

RE: How to set Custom Palette?

2002-12-17 Thread Alexandre Barreto
The reference is too simple... don't show any example and don't say much thing... its something using WinSetpattern() but i don't knoiw how to make it.. for set the color table tu mach my pic.. for exemple: color 21 is a dark grey but on default color table in plamOS its some pink.. how can

Re: looking for Memory Management documentation

2002-12-17 Thread Richard Coutts
Sorry about the vagueness of my post. I'm programming with CW8 and C++. I've been working on my first App for about 8 months now and its just about done, but I've been working with complete naivette of the memory limits of the devices. My app is a drawing program and the dynamic memory allocated

Reporting error when resizing slider ....

2002-12-17 Thread Niilo Minkkinen
What to do when resizing slider's Width and Emulator is saying always that : ..SysFatalAlert with the message Control.c Line : 1707, Backgound must be at least half as wide as slider. If I decrease or increase Width from default 114, same thing. -- For information on using the Palm Developer

Re: C Question

2002-12-17 Thread Marco Pantaleoni
On Mon, Dec 16, 2002 at 05:48:23PM -0500, Tony Goggin wrote: Op #1: *fRecPOne = *fRecPTwo; Op #2: MemMove(fRecPOne, fRecPTwo, sizeof(FlightDB)); Actually I would have expected these operations to be identical as well, except for overlapping memory areas (MemMove should

Re: how to build a female serial connector for Palm V [OT?]

2002-12-17 Thread Dave Lippincott
You could purchase the connector from the Palm Plugged-In program. - Original Message - From: dex [EMAIL PROTECTED] Newsgroups: palm-dev-forum To: Palm Developer Forum [EMAIL PROTECTED] Sent: Tuesday, December 17, 2002 5:11 AM Subject: how to build a female serial connector for Palm V

Re: looking for Memory Management documentation

2002-12-17 Thread Dave Lippincott
A start would be to look in the PalmSource Knowledge Base (www.palmsource.com/developers) There use to be a few articles detailing the Palm memory structure in it. - Original Message - From: Richard Coutts [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Monday,

Fatal Error on real Palm Device when multi-segmenting the application

2002-12-17 Thread Martin Pohl
Hello! I multi-segmented my application with multigen. When installing the application on the Emulator everything works fine (ROM-image is taken from my own m505). If I install the application on the real m505, the m505 will restart and show a fatal exception. The only way to get out of this is

Codewarrior Map file information

2002-12-17 Thread Martyn Honeyford
Hi, Does anyone (Ben?) know if it is possible to get Map file type information for each of the built objects in CodeWarrior 8.3 (9 is on order). Specifically I am looking for which functions are included in which object, their offset within the object and hopefully also, which functions they

Re: Fatal Error on real Palm Device when multi-segmenting the application

2002-12-17 Thread John Marshall
On Tue, Dec 17, 2002 at 03:22:54PM +0100, Martin Pohl wrote: I multi-segmented my application with multigen. When installing the application on the Emulator everything works fine (ROM-image is taken from my own m505). If I install the application on the real m505, the m505 will restart and

Re: how to build a female serial connector for Palm V [OT?]

2002-12-17 Thread dex
In article 105543@palm-dev-forum, [EMAIL PROTECTED] says... You could purchase the connector from the Palm Plugged-In program. - Original Message - From: dex [EMAIL PROTECTED] Newsgroups: palm-dev-forum To: Palm Developer Forum [EMAIL PROTECTED] Sent: Tuesday, December 17, 2002

Re: Codewarrior Map file information

2002-12-17 Thread Marshall Clow
Hi, Does anyone (Ben?) know if it is possible to get Map file type information for each of the built objects in CodeWarrior 8.3 (9 is on order). Specifically I am looking for which functions are included in which object, their offset within the object and hopefully also, which functions they

Re: how to build a female serial connector for Palm V [OT?]

2002-12-17 Thread Dave Lippincott
Did you look? (hint, hint) - Original Message - From: dex [EMAIL PROTECTED] Newsgroups: palm-dev-forum To: Palm Developer Forum [EMAIL PROTECTED] Sent: Tuesday, December 17, 2002 10:22 AM Subject: Re: how to build a female serial connector for Palm V [OT?] In article

Cygwin help [OT]

2002-12-17 Thread Dustin Davis
I'm hoping there are experienced Cygwin users here... I want to use a run command in TextPad to open my project and compile my code... I'm guessing I can do this with a batch file and a some sort of initialization file. In dos I typed bash --help and noticed there is a -- init-file option. Can

Re: Fatal Error on real Palm Device when multi-segmenting the application

2002-12-17 Thread Martin Pohl
Yes, I called a RomVersionCompatible() from inside PilotMain() and this routine was located in a different section/segment. It works perfectly now! Thanks a lot Martin -- For information on using the Palm Developer Forums, or to unsubscribe, please see

Re: Codewarrior Map file information

2002-12-17 Thread Martyn Honeyford
Marshall Clow wrote: If you disassemble a file (using the menu under the Project menu), you will see the object code and references for a single source file. Brilliant ! This is exactly what I was looking for. Now for a long shot, is there any way of (easily) calling the ide from the command

Re: Tungsten-CW for debugging

2002-12-17 Thread Ben Combee
At 01:08 2002-12-17 -0800, you wrote: Ben - So what will happen with CW V8 debugger? Does it sometimes just stop a little further on in the code than expected, or does it get totally confused? Both. Sometimes, the extra step is harmless, but it can really confuse the debugger. Usually it

Re: Codewarrior Map file information

2002-12-17 Thread Ben Combee
At 17:24 2002-12-17 +, Martyn Honeyford wrote: Marshall Clow wrote: If you disassemble a file (using the menu under the Project menu), you will see the object code and references for a single source file. Brilliant ! This is exactly what I was looking for. Now for a long shot, is there

network inquiry

2002-12-17 Thread Rodolphe Bréjaude
Hello, I would like to know if it is possible to search for Other Palm with bluetooth without having to use the graphic interface which search and after let you choose the device found in a list? I will make a program with codewarrior to connect my palm BT with other Palm BT, but I don't want to

Re: How to set Custom Palette?

2002-12-17 Thread Chris DiPierro
I don't know how to read a .pcx file, but I assume you can find a reference for that somewhere. However, as to setting the palette on the Palm, just lookup the command WinPalette The reference is too simple... don't show any example and don't say much thing... its something using

FrmDoDialog

2002-12-17 Thread Palm Developer
As I understand it, these are the steps taken to launch a form as a dialog (error checking etc not shown, for clarity): FormPtr frm = FrmInitForm(FORM_ID); FrmSetActiveForm(frm); /* Set fields etc here */ control = FrmDoDialog(frm); The problem I'm having is this. If I set the text of

Re: Recv beamed PRC w/o confirmation dlg. Then launch it.

2002-12-17 Thread kcorey
This sounds like a kinda bad idea. If you could get a program loaded without user intervention, what's to stop you from creating a virus launcher on your palm pilot and walking through the airport, infecting all the palm pilots that you see? -Ken On Fri, 2002-12-13 at 01:38, Jeff Ishaq wrote:

RE: FrmDoDialog

2002-12-17 Thread Robert McKenzie
Simple fix: FormPtr frm = FrmInitForm(FORM_ID); FrmSetActiveForm(frm); /* set fields etc here, WITHOUT calling FldDrawField */ /* now call this! */ FrmDrawForm(frm); control = FrmDoDialog(frm); ... -bob mckenzie, palmsource pdx -Original Message- From: Palm Developer [mailto:[EMAIL

RE: FrmDoDialog

2002-12-17 Thread Palm Developer
On Tue, 17 Dec 2002, Robert McKenzie wrote: Simple fix: FormPtr frm = FrmInitForm(FORM_ID); FrmSetActiveForm(frm); /* set fields etc here, WITHOUT calling FldDrawField */ /* now call this! */ FrmDrawForm(frm); control = FrmDoDialog(frm); ... -bob mckenzie, palmsource pdx Ah!

Accessing data from Address book

2002-12-17 Thread mlv srinivas
Hi Henk, Thanks a lot for your timely help. I'm working on the same lines. Thanks Srini From: Henk Jonas [EMAIL PROTECTED] Reply-To: Palm Developer Forum [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Subject: Strange addressbook example in SDK 4.0 (Was: Accessing the Address

Strange addressbook example in SDK 4.0 (Was: Accessing the Address Book data)

2002-12-17 Thread mlv srinivas
Hi Henk, Thanks a lot for your timely help. I'm working on the same lines. Thanks Srini _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus -- For information on using the Palm

RE: FrmDoDialog continued problems (fwd)

2002-12-17 Thread Palm Developer
On Tue, 17 Dec 2002, Robert McKenzie wrote: FormPtr frm = FrmInitForm(FORM_ID); FrmSetActiveForm(frm); /* set fields etc here, WITHOUT calling FldDrawField */ /* now call this! */ FrmDrawForm(frm); control = FrmDoDialog(frm); -bob mckenzie, palmsource pdx That solved the problem of

Re: FrmDoDialog

2002-12-17 Thread Ben Combee
At 13:07 2002-12-17 -0500, you wrote: As I understand it, these are the steps taken to launch a form as a dialog (error checking etc not shown, for clarity): FormPtr frm = FrmInitForm(FORM_ID); FrmSetActiveForm(frm); /* Set fields etc here */ control = FrmDoDialog(frm); The problem I'm

RE: FrmDoDialog continued problems (fwd)

2002-12-17 Thread Robert McKenzie
If the field values are changed by code (as opposed to by user action), you will need to explicitly redraw them. -Original Message- From: Palm Developer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 17, 2002 11:00 AM To: Palm Developer Forum Subject: RE: FrmDoDialog continued

Re: FrmDoDialog

2002-12-17 Thread Palm Developer
On Tue, 17 Dec 2002, Ben Combee wrote: Actually, two changes: 1) Don't call FrmSetActiveForm unless you need it for your field setting code 2) Call FrmDrawForm to draw the dialog before modifying its fields. If you pre-draw the form, things should work just fine. It will still be

Re: C Question

2002-12-17 Thread Matt Graham
David Eyler wrote: Thanks for all the help. It turns out that this point from Matthew, By shallow I mean it copies the data exactly (it copies the pointers inside the structure, not the data the pointers point to.) was my underlying problem, not the difference between the dereferencing copy

Re: C Question

2002-12-17 Thread Mike
It doesn't make sense to me that it would copy the data pointed to by pointers inside the structure. The SizeOf returns the size of the structure which doesn't take into consideration the size of the memory allocated to a pointer. In fact, there would be no way to know at compile time, how much

Re: [OT] Re: C Question

2002-12-17 Thread Matt Graham
Palm Developer wrote: On Tue, 17 Dec 2002, Chris Tutty wrote: #define MEMMOVE(d, s) MemMove(d, s, sizeof d) #define MEMMOVE(d,s) MemMove( d, s, sizeof(d) ) this needs the doesn't it? -- For information on using the Palm Developer Forums, or to unsubscribe, please see

Re: [OT] Re: C Question

2002-12-17 Thread Palm Developer
On Tue, 17 Dec 2002, Matt Graham wrote: Palm Developer wrote: On Tue, 17 Dec 2002, Chris Tutty wrote: #define MEMMOVE(d, s) MemMove(d, s, sizeof d) #define MEMMOVE(d,s) MemMove( d, s, sizeof(d) ) this needs the doesn't it? indeed it does! one more reason to avoid it ;) Si. --

Re: Strange addressbook example in SDK 4.0 (Was: Accessing the AddressBook data)

2002-12-17 Thread Henk Jonas
John, you are right, thank you for pointing me at this. But it is still a very strange programming style, isn't it? Henk John Marshall wrote: Only the address of the field is used; the contents are never accessed. It's a revolting, confusing, and non-portable [1] way of writing offsetof [2].

Problem with SysGetStackInfo on PalmOS 3.1.1?

2002-12-17 Thread Peter Deutsch
g'day, My environment: Win98/Cygwin/POSE 3.5/gcc 2.95.3-kgpd/sdk=various (3.5, 40, 50) Is there a known issue with the SysGetStackInfo() call pre-PalmOS 3.5? I've got this as a check at the start of my code and it works fine under 3.5, but returns an error indication under 3.1. I

Re: Cygwin help [OT]

2002-12-17 Thread Henk Jonas
If you have cygwin installed, you can just put cygwin commands in any comand line window. So, I guess there is no need to call bash, a .bat will do it... Henk Dustin Davis wrote: I'm hoping there are experienced Cygwin users here... I want to use a run command in TextPad to open my project

Re: Cygwin help [OT]

2002-12-17 Thread Dustin Davis
It won't work for me. Is there something you must specify on the install? Quoting Henk Jonas [EMAIL PROTECTED]: If you have cygwin installed, you can just put cygwin commands in any comand line window. So, I guess there is no need to call bash, a .bat will do it... Henk Dustin Davis

DmFindSortPosition question

2002-12-17 Thread christy
My db is sorted based on the 1st int (fid) and then on the 2nd int (sid). Not sure if the problem is with the comparing function, I don't think the find function is doing what it supposed to do. typedef struct{ Int32 fid; Int32 sid; Char fields; }DBPacked; typedef struct{ Int32 fid; Int32

RE: DmFindSortPosition question

2002-12-17 Thread Robert McKenzie
Just a guess, but because of possible wrapping / overflow problems, it is always safer to compare two values with each other rather than to subtract them and compare with 0. I.e. if (p1-fid p2-fid) is better than if ((p1-fid - p2-fid) 0) -Original Message- From: christy

Problems with new GCC

2002-12-17 Thread Stephen Gilfillan
Hi, I am using GCC and not CW. I would also like to be able to get new to return NULL instead of throwing an exception (for subsequent checking). I'm not able to include new as this file doesn't seem to exist in the GCC world. Consequently 'nothrow' is not recongnised by the GCC compiler. If

Accessing the Device Rom ID on Palm Simulator OS 5 problem

2002-12-17 Thread Stephen Gilfillan
The code snippet below is almost text book. It works fine on Pre OS 5 versions of PalmOS, returning the 12 character Device ROM ID. Without adding the null terminator (line 16), the returned string has a stange character at the end of it - so that's why it's there. However, running it on both

Re: Problem with SysGetStackInfo on PalmOS 3.1.1?

2002-12-17 Thread Ben Combee
Is there a known issue with the SysGetStackInfo() call pre-PalmOS 3.5? Yes. See this old message from the archives: http://www.escribe.com/computing/pcpqa/m6181.html See also http://www.escribe.com/computing/pcpqa/search.html?query=SysGetStackInfo for more info on the problem. -- Ben

Re: Accessing the Device Rom ID on Palm Simulator OS 5 problem

2002-12-17 Thread Ben Combee
At 23:18 2002-12-17 +, you wrote: The code snippet below is almost text book. It works fine on Pre OS 5 versions of PalmOS, returning the 12 character Device ROM ID. Without adding the null terminator (line 16), the returned string has a stange character at the end of it - so that's why

RE: DmFindSortPosition question

2002-12-17 Thread christy
Very good point. I modified the code to have the two variables compare against each other. I need to find a matching record from the databse (by fid and sid pair). If there is a match, I can subtract 1 from the return-value of DmFindSortPosition. However, how do I know that there is in fact no

RE: DmFindSortPosition question

2002-12-17 Thread Robert McKenzie
christy- You need to actually get the record and check for equality. i.e. /* use DmFindSortPosition here, passing it (amongst other things), index *. Boolean foundIt = false; // guard against no match whilst sorting first if (index 0) { MemHandle h = DmQueryRecord(pDb, --index);

RE: DmFindSortPosition question

2002-12-17 Thread christy
Thank you much, Robert. --- Robert McKenzie [EMAIL PROTECTED] wrote: christy- You need to actually get the record and check for equality. i.e. /* use DmFindSortPosition here, passing it (amongst other things), index *. Boolean foundIt = false; // guard against no match whilst

M130 and Network Hotsync

2002-12-17 Thread Alan Ingleby
I know this is not strictly a development issue, but I figure this is a good place to ask. (BTW: I have read through all archives, and not yet found a valid answer.) How can you get a M130 to do a network hotsync? I've tried installing netsync.prc, and that doesn't work. Tried changing various

Re: Problem with SysGetStackInfo on PalmOS 3.1.1?

2002-12-17 Thread Peter Deutsch
{ thwack! thwack! Thwack! } I don't what alternate reality plane my brain was visiting, I should have found that easily enough. Thanks a 1x10^6... - peterd Ben Combee wrote: Is there a known issue with the SysGetStackInfo() call pre-PalmOS 3.5? Yes.

PalmReg 1.0 - copy protection library for Palm OS

2002-12-17 Thread Vlad Karpinsky
Hello everybody, I'm glad to announce the release of PalmReg 1.0 PalmReg is a copy protection library for Palm OS. It allows a developer to implement copy protection using variety of methods. Major features are: * Supports Palm SDK 3.5 and Palm OS 3.0 and up * Easy to spell unique

Copying a resource...

2002-12-17 Thread Matthew Bevan
I'm trying to copy a resource from my main application into a sattelite file, that way I can leave the new file open without needing to worry about conflicts with the rest of my resources (it's bad when you try to hotsync and it opens a window from my app ;) What's the best way to do this?

different fonts in one Field

2002-12-17 Thread Michael Zaks
Hi, everybody! I want to use some different fonts in one text Field( multiline ). Is it possible? -- Best regards. Michael Zaks. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

PRC2OVL

2002-12-17 Thread Alexandre Kazantsev
(This is sent on behalf of my novice partner. For some reason his message to the forum is bouncing). Hello! I was given a task to localize English version of the project. I know that the PRC2OVL is an option here. But I need to clarify some details to start with. 1. From where this PRC2OVL file