Re: number format mask

2005-05-13 Thread Chris Brooks
Not directly on the Palm platform. You'll have to implement it yourself. Dilek Özgü wrote: Hi I want to format a number using a mask like this : ###,###,###.## double a; a = 19000.50; I will print "a value" as 19,000.50 or 125000.40 => 125,000.40 Is there any function for doing this (formattin

Re: LifeDrive Mobile Manager

2005-05-10 Thread Chris Brooks
Amazon first advertised "A Dance With Dragons" by Geoge R R Martin as available in May 2002. I am still waiting for the author to finish writing it. So forgive me if I have a little chuckle at 8 days Dr. Vesselin Bontchev wrote: ha! you'll be lucky, they've only just admitted to it existin

Re: LifeDrive Mobile Manager

2005-05-10 Thread Chris Brooks
ha! you'll be lucky, they've only just admitted to it existing, I hardly think the SDK is the next thing to be released anyeway there'a more info here... http://www.clieuk.co.uk/index.shtml and on a serious point, I'd imagine it would have VFS or NVFS as an access method, purely for backward

Re: Looking for an ARM compiler

2005-05-06 Thread Chris Brooks
Ben, What about PODS? Ben Combee wrote: At 09:41 AM 5/6/2005, you wrote: Hello, I'm lloking for an ARM compiler to build a PNO object. I'm moving there some math code which is a bit too heavy for my realtime application. Months ago I tried this, but the ARM compilers of that time wasn't able to

Re: Getting Screen Shots from a 650

2005-05-05 Thread Chris Brooks
oooh no 3 ways... take a picture of the device and photoshopan emulator screenshot onto it... Scott Erickson wrote: Hi, How can I take a screen shot of my app while it is running on the device? Im using a treo 650, I could take them from the simulator with normal Windows screen shots, but t

Re: Getting Screen Shots from a 650

2005-05-05 Thread Chris Brooks
2 ways... emulator or camera :-) Scott Erickson wrote: Hi, How can I take a screen shot of my app while it is running on the device? Im using a treo 650, I could take them from the simulator with normal Windows screen shots, but the skin isnt the same and they dont look very good. This is

Re: charge for contract work?

2005-05-05 Thread Chris Brooks
12 days to write, so I made 2 days for free :-) regards, Chris Brooks. Mishael Kim wrote: just wondering how much you guys charge for contract work. It's a fairly small simple application that I think should take about a week to finish. Thanks. -- For information on using the Pal

Re: Where is the entry point of the applications?

2005-05-04 Thread Chris Brooks
so 6% is 'popular' - I think not. "Majority" means "more than the others" (or "more than the half" in some contexts). In that aspect, the majority of computer users are Windows users. "Popular" means that there is a large enough population of users - even though other OSes might have even more us

Re: Where is the entry point of the applications?

2005-05-04 Thread Chris Brooks
ickly. It has no chance to spread to a widescale audience. >> Virus writers target any *popular* platform - not necessarily only the majority one. What is the difference between 'popular' and 'majority' exactly? Chris Brooks. -- For information on using the Palm Develop

Re: Simple code in Pascal -> C

2005-05-04 Thread Chris Brooks
Andre, This line... StrCopy( FieldText, RecordPtr[*Offset]); Should read StrCopy( FieldText, RecordPtr+(*Offset)); The problem you have there is because using [] means an index into an array... for example char test[10]; test[3] = 'A'; this code makes the fourth character (indexes start at z

Re: Where is the entry point of the applications?

2005-05-04 Thread Chris Brooks
a larger audience. Still, I'm sure we've all been over this ground far too much. regards, Chris Brooks. Dr. Vesselin Bontchev wrote: Quicker than non existent PalmOS viruses :-) PalmOS viruses are not "non existent". There is a whole one of them. :-) See, for instance, this

Re: Where is the entry point of the applications?

2005-05-03 Thread Chris Brooks
Smoking kills you slowly. But, I guess, you're not in a hurry. :-) Quicker than non existent PalmOS viruses :-) Chris Brooks. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Where is the entry point of the applications?

2005-05-03 Thread Chris Brooks
Your original Question. "there is some startup code that calls PilotMain" and my answer was correct. so it *was* your question "The position of the entry point in the code 1 resource is probably also compiler-dependent" No, it would not be, the *name* could be different, the position could

Re: Where is the entry point of the applications?

2005-05-03 Thread Chris Brooks
Yeah, I was right... it's declared like this:- UInt32 __Startup__ ( void ) { } Dr. Vesselin Bontchev wrote: Hello folks, When an executable application is loaded by PalmOS, where is the point that receives control first? No, it is not PilotMain - it's much before that; there is some startup code

Re: Where is the entry point of the applications?

2005-05-03 Thread Chris Brooks
I believe it's called __startup__ Chris Brooks Dr. Vesselin Bontchev wrote: Hello folks, When an executable application is loaded by PalmOS, where is the point that receives control first? No, it is not PilotMain - it's much before that; there is some startup code that calls PilotMa

Re: Adding the fields in data base

2005-05-03 Thread Chris Brooks
Archana, Without a bit more information, and possible the section of the code in question we can't really help. Provide some more info and I'll be happy to take a look. Chris Brooks Archana Brahmankar wrote: Hi, I have one data base & two structure in database. One is for Class n

Re: Cool shadow effect

2005-05-03 Thread Chris Brooks
Kristian, For the colour shadow effect (assuming you're running 16-bit colour) you could get the data from the screen where the shadow is to be applied, then lower each RGB value a littel it and copy it back to the screen. You could also look at the copy options, on WinPaintBitmap or similar wh

Re: Parse errors when making a class

2005-04-27 Thread Chris Brooks
and the .h to .hpp if the class is all in-line. - Original Message - From: Dr. Vesselin Bontchev <[EMAIL PROTECTED]> To: Palm Developer Forum Sent: Wednesday, April 27, 2005 2:45 PM Subject: Re: Parse errors when making a class > Scott, I've read somewhere that if the source file doesn

Re: Problems with NetLibGetHostByName()

2005-04-26 Thread Chris Brooks
umm did you allocate a hostPtr? Chris. - Protected by: http://mail.spaminspector.com - Original Message - From: "Scott Erickson" <[EMAIL PROTECTED]> Newsgroups: palm-dev-forum To: "Palm Developer Forum" Sent: Tuesday

Re: palm-dev-forum digest: April 25, 2005

2005-04-26 Thread Chris Brooks
please don't send tests which are 84K in size! Chris. p.s. the forum works, there is no need to test it :-) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: hires mode - is it possible to switch it off?

2005-04-26 Thread Chris Brooks
m is that i have no idea how > to change MemMove api with my code, i know nothing about hacks and traps... > > Chris Brooks wrote: > > What the author has done is to create a bitmap 160x160 the used MemMove to > > copy the back buffer to the screen, this makes you get a

Re: hires mode - is it possible to switch it off?

2005-04-26 Thread Chris Brooks
to move it to the screen. This causes Pixel doubling (or more), so the game looks low-res and blocky, but at least it works. If you want to see what I mean try my freeware game CaveRun ( look on PalmGear for it) I think it should work with a T5. Chris Brooks p.s. I really must make it hi-res

Re: error checking and debuging on the device

2005-04-25 Thread Chris Brooks
Scott Have you tried putting the device in debug mode, and using it as the debug target? Chris. - Original Message - From: Scott Erickson <[EMAIL PROTECTED]> Newsgroups: palm-dev-forum To: Palm Developer Forum Sent: Monday, April 25, 2005 3:14 PM Subject: error checking and debuging on

Re: Testing Tools

2005-04-22 Thread Chris Brooks
1. The emulator/simulator will warn you about any memory still allocated when you exit the Palm App. 2. GUI testing is down to you, there isn't anything that smart available for any system I have ever come across. If you wanted it automanted, you could use the emulator/simulator and WebRunner. 3.

Re: multiple applications

2005-04-19 Thread Chris Brooks
As a matter of interest - could you have an Application and a Shared Library with the same Creator ID, so if you delete the App the Lib goes to? - Protected by: http://mail.spaminspector.com - Original Message - From:

Re: multiple applications

2005-04-19 Thread Chris Brooks
hey will show up as one item in 'delete' Best to use separate creator ID's for the programs. Chris Brooks. - Protected by: http://mail.spaminspector.com - Original Message - From: "Tony Janke&quo

Re: multiple applications

2005-04-19 Thread Chris Brooks
Tony, Items are clumped together by Creator ID, so if you have 3 programs and 5 databases then they will show up as one item in 'delete' Best to use separate creator ID's for the programs. Chris Brooks. - Pro

Re: List with scroll... error in code (illegal conversions....)

2005-04-18 Thread Chris Brooks
You need to Cast the type for GetObjectPtr like this:- ListPtr listP; listP =(ListPtr) GetObjectPtr (form, PATsList) Chris. Andre Augusto wrote: Hello, and thanks for the Tip!!! By the way, usually this errors appear to me because I have some examples written in C, but I compile to C++, because o

Re: external databases

2005-04-15 Thread Chris Brooks
The best way to do this is export the data from the MDB into a CSV file, then use something like pdbdump to convert it to a PDB file. direct conversion would require you to write a databse read/writer yourself, using C++ VB or something like that. Chris sachin jesukaran wrote: hi, i want to kn

Re: reading stored memory

2005-04-13 Thread Chris Brooks
Vesselin, I was j/k :-) I don't personally know the answer, but you might have a look at the projects which are making Linux run on the PlamOS, they have boot-kernels which may supply the answer to you question. Chris B

Re: Creating CSV files

2005-04-13 Thread Chris Brooks
If you like quick, dirty and perl all at the same time, you could just do a hotsync then use pdbdump to extract the data. have a google for "pdbdump perl" and you should b able to find the perl modules you need. ULStudent:Robert.Conlon wrote: Hi, I have created an application that contains

Re: reading stored memory

2005-04-13 Thread Chris Brooks
he he he, thinking of writing a virus then? Dr. Vesselin Bontchev wrote: BTW, where is the bootstrap loader of PalmOS? Can it be accessed and can it be modified on those devices that have Flash ROM? Regards, Vesselin -- For information on using the Palm Developer Forums, or to unsubscribe, ple

Re: reading stored memory

2005-04-13 Thread Chris Brooks
How about when the virus installs itself into flash? Miro Pomsar wrote: The "no-notify" reset is such a "know-clean state" as no applications (not even system) are launched (notified). I would consider this a virus-free environment, I don't know (which doesn't imply there is) any way this could be

Re: Problem with MemHandleLock

2005-04-12 Thread Chris Brooks
You don't seem to be setting the Recordindex value. it will not be initialised when you run. Set it to Zero and try again. Chris. chirag chauhan wrote: Hi, I am getting error "MemoryMgr.c, Line: 4384, Free Handle." at MemHandleLock function. I have search forums and I found out that "This means

Re: GetField error in C++ (codewarrior)

2005-04-12 Thread Chris Brooks
Andre, Yes, return NULL Andre Augusto wrote: Hello everybody! I want to use the next funciton, in a C++ app for Palm, using Codewarrior v9. The problem is when I compile the project, there is an error that I can't solve. The function is intended to read the text from a field. In the last lin

Re: Placing a bitmap on a form

2005-04-11 Thread Chris Brooks
ge numbers of bitmaps and things, rather than using the editor. Chris Brooks. - Protected by: http://mail.spaminspector.com - Original Message - From: "Scott Erickson" <[EMAIL PROTECTED]> Newsgroups

Re: Running a Background Procsess On Garnet

2005-04-08 Thread Chris Brooks
sorry, it's Garnet not Cobalt. Same feeling apply though. Scott Erickson wrote: I work for a software firm that develops anti-v software for smartphones and PDAs. FB-4, Inc. (www.fb-4.com) I am trying to port our windows mobile VirusGard program over to Palm OS Garnet. - Original Message

Re: Running a Background Procsess On Garnet

2005-04-08 Thread Chris Brooks
What a waste of time, there no viruses for Cobalt you're just feeding on peoples parsanoia. Nothing personal, but I hate this kind of software, it's marketing to peoples insecurities, not to peoples needs. I'll get my coat. Scott Erickson wrote: I work for a software firm that develops anti-v

Re: Problem with ASM code

2005-04-07 Thread Chris Brooks
the assembler you are using is 68000 and you're trying to convert it to x86. The best thing to do here is to use something like unsigned char racer_gamn[] = { 0x03,0xff,0x00,0x00,0xff,0x00,0x00,0xf1...etc }; now where GetGamn() is called in the code, just use racer_gamn. Chris Brooks. V

Re: sqlite database

2005-04-06 Thread Chris Brooks
The Obvious place to go is SQLite itself this is the link for the PalmOS port. http://www.sqlite.org/cvstrac/wiki?p=SqlitePalm Frédéric DESSALLIEN wrote: hi all, Does anyone have heared of sqlite on Palm ? I think it's quite complicated to compile on 64k and i have heared about a try based on

Re: alignment

2005-04-06 Thread Chris Brooks
How about changing attr.justification = rightAlign; to attr.justification = leftAlign; if you want it left justified? Orasanu Iuliana wrote: I tried this: AppInfo Info; field = FrmGetObjectPtr(form, FrmGetObjectIndex(form, MainListaTable)); FldGetAttributes (field, &attr); attr.justification = rig

penMoveEvent failure

2005-04-01 Thread Chris Brooks
Hi, I have a form which is not picking up penMoveEvent, another form in the same application is working fine, but the first one is not. Can anyone think of a reason for this, I'm at a complete loss. Chris Brooks __ Do You Yahoo!? Every

Re: Signature2 quality

2005-02-17 Thread Chris Brooks
Ian, Have you tried averaging the pen position over a number of steps? I found with my drawing program, it gave much smoother lines than just taking the absolute position each time. Chris. - Protected by: http://mail.spaminspe

Re: Touching T3's screen reduces performance by more than 30%

2005-02-16 Thread Chris Brooks
that rate. Chris. - Protected by: http://mail.spaminspector.com - Original Message - From: "Chris Brooks" <[EMAIL PROTECTED]> To: "Palm Developer Forum" Sent: Wednesday, February 16, 2005 2:3

Re: Touching T3's screen reduces performance by more than 30%

2005-02-16 Thread Chris Brooks
Marek, I initially developed the game on a M515, then also on a T3 after I had newer OS troubles (nothing beats testing on the real thing) It's freeware, look for CaveRun on PalmGear, and try for yourself, touching the screen makes no difference at all to the game. Here is the event loop used in

Re: Palm's equivalent of C++'s "cout"?

2005-02-16 Thread Chris Brooks
JSY, There's no cout , the PalmOS is a GUI, so you'll have to use StrPrintF() to format it, and WinDrawChars() to put it on the screen. For converting a string to an integer use StrAToI() Chris. - Protected by: http://mail.spam

Re: Touching T3's screen reduces performance by more than 30%

2005-02-15 Thread Chris Brooks
Marek, I had a similar problem with my event loop in a game. I solved it by detecting pen events right after GetEvent(&event,0); rather than passing them through all the normal hoops. Another way it to ignore them total and just get the pen state directly in each iteration of the game loop. Ho

Re: The best installers for Palm OS applications

2005-02-10 Thread Chris Brooks
The ones that work. - Protected by: http://mail.spaminspector.com - Original Message - From: "Edgar T. LÃpez" <[EMAIL PROTECTED]> To: "Palm Developer Forum" Sent: Thursday, February 10, 2005 10:28 PM Subject: The best

Re: Retriving the phone number

2005-01-06 Thread Chris Brooks
ashutosh, You're right, this has nothing to do with Palms, you're better off posting this in a GSM forum. However, I think the command you need is AT+CNUM which retuns the subscriber (i.e. phone) number. regards, Chris - Prot

RE: global function

2003-09-18 Thread Chris Brooks
Pablo, Put this in your header file :- CString FloatATexto(float numero, int cantDecimales); and the rest of the function in one source file only, then it will work. -Original Message- From: Pablo Martin Vera [mailto:[EMAIL PROTECTED] Sent: 18 September 2003 13:57 To: Palm Developer F

RE: (newbie need help)My app doesn't return to the aplications sc reen (Home).

2003-09-17 Thread Chris Brooks
Ricardo, What exactly is the problem, what symptoms are you seeing? Chris p.s. this code is very ropey :- if (selectedDev < gDiscoveredBdAddr){ s=(Char *)MemPtrNew(sizeof(BDevs[selectedDev].friendlyName)); StrCopy(s,BDevs[selectedDev].friendlyName); } else { s=(Char *)MemPtrNew(sizeof(

RE: drawing

2003-09-17 Thread Chris Brooks
A quick and easy way of doing this is to have a bitmap placed on the form, which is the size of the LCD display, 160x160 or whatever, the bitmap will be drawn first, and the controls on top of it. -Original Message- From: Pablo Martin Vera [mailto:[EMAIL PROTECTED] Sent: 17 September 2003

RE: newie question on c++

2003-09-17 Thread Chris Brooks
n definition, just place it in a header file, and include that header file into every source file which needs it. Chris Brooks -Original Message- From: Pablo Martin Vera [mailto:[EMAIL PROTECTED] Sent: 17 September 2003 13:33 To: Palm Developer Forum Subject: newie question on c++ Where shal