Re: pdbc is yielding bad databases

2004-05-16 Thread Ben Combee
At 04:44 PM 5/16/2004, you wrote:
I'm having a lot of trouble using pdbc 0.9.5 under linux, either compiled 
for linux or through wine. First of all, it throws syntax errors on 
examples I give it. I got through that but then databases that I created 
gave the following error when I tried to load them into pose

Could not install the Palm OS file "out.pdb" because Palm
OS error 0x0203 (dmErrInvalidParam) occurred.
I've even tried taking a database, running it through pdbdec, and then 
through pdbc. Pdbc throws errors on the data. So, can anybody help me with 
pdbc?

If not, I would be happy to use any other tool. All I want to do is create 
a 1MB database that is full of ASCII. I want each record to be about 65536 
bytes in size and for the data to be essentially contiguous through the 
records. Is there an easier Linux or Windows tool to do this?
65536 bytes per record is too large... using 64000 as a limit will work on 
all devices -- the limit is just below 64K, varying among OS versions.

If that doesn't help, here's a few suggestions.
1) Use 'par' to make a file stream database.  That uses 4K chunking, but 
there's already support in the OS to read and write these like files.

2) Use a tool like 'split' to chunk your ASCII text into 64000-byte chunks, 
and then use 'par' to assemble that into a PDB file in your own format.

3) 'par' comes with libprc, a library that easily lets you read and write 
your own PDB files using C/C++.

4) There's a prc/pdb writing module for PHP that could be used for this 
purpose, if you know that language.

5) Use Perl and the Palm::PDB module from CPAN.
-- Ben Combee, DTS technical lead, PalmSource, Inc.
   Read "Combee on Palm OS" at http://palmos.combee.net/

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Who owns game's intelligent property?

2004-05-16 Thread Ben Combee
At 04:52 PM 5/16/2004, you wrote:
I would like to develop some game sharewares, but I do
not know who owns the intelligent propoertie of games
like Solitaires, Tetris, Socoban, Tic Tac Toe and
bubble etc.
It depends on the game.  Some, like Solitaire and Tic-Tac-Toe are so old as 
to be in the public domain.  Others, like Tetris and Puzzle Bobble, have 
active IP owners that will go after people duplicating their games or 
abusing their trademarks.  For Tetris, the rights owner is The Tetris 
Company at www.tetris.com.  It's unlikely they'd grant more rights on Palm 
OS, as there is already an official version for this platform.

-- Ben Combee, DTS technical lead, PalmSource, Inc.
   Read "Combee on Palm OS" at http://palmos.combee.net/

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: pdbc is yielding bad databases

2004-05-16 Thread Eric Allen
I just discovered par after I sent my message and figured out about the 
size limit. 64000 with par worked like a charm! Thanks.

Ben Combee wrote:
At 04:44 PM 5/16/2004, you wrote:
I'm having a lot of trouble using pdbc 0.9.5 under linux, either 
compiled for linux or through wine. First of all, it throws syntax 
errors on examples I give it. I got through that but then databases 
that I created gave the following error when I tried to load them into 
pose

Could not install the Palm OS file "out.pdb" because Palm
OS error 0x0203 (dmErrInvalidParam) occurred.
I've even tried taking a database, running it through pdbdec, and then 
through pdbc. Pdbc throws errors on the data. So, can anybody help me 
with pdbc?

If not, I would be happy to use any other tool. All I want to do is 
create a 1MB database that is full of ASCII. I want each record to be 
about 65536 bytes in size and for the data to be essentially 
contiguous through the records. Is there an easier Linux or Windows 
tool to do this?

65536 bytes per record is too large... using 64000 as a limit will work 
on all devices -- the limit is just below 64K, varying among OS versions.

If that doesn't help, here's a few suggestions.
1) Use 'par' to make a file stream database.  That uses 4K chunking, but 
there's already support in the OS to read and write these like files.

2) Use a tool like 'split' to chunk your ASCII text into 64000-byte 
chunks, and then use 'par' to assemble that into a PDB file in your own 
format.

3) 'par' comes with libprc, a library that easily lets you read and 
write your own PDB files using C/C++.

4) There's a prc/pdb writing module for PHP that could be used for this 
purpose, if you know that language.

5) Use Perl and the Palm::PDB module from CPAN.
-- Ben Combee, DTS technical lead, PalmSource, Inc.
   Read "Combee on Palm OS" at http://palmos.combee.net/

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


PODS: import existing GCC project?

2004-05-16 Thread Gregg Woodcock
I cannot believe there is no (easily located) step-by-step guide to convert
a standard manual bsh:make project for use in PODS.  Has anybody done this?
Right now I have a doze *.c and *.h files, one *.prc, a few *.bmp, and a
makefile.  I have several make targets:
pay, compiles the shareware version
free, compiles the freeware version
beta, compiles the beta-test version
a "plain" (no target) 'make' will do whichever of the above was last done.

I noticed that PODS does not install the bash shell, either so I cannot
compile my PRC at all now!
Will somebody who has done this conversion before kindly talk me through the
steps?


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


prc vs. pdb

2004-05-16 Thread Eric Allen
Is there some whitepaper or article out there detailing the respective 
advantages and disadvantages of prc and pdb formats? I'm trying to 
decided which format I want to use for my application and the best 
documentation I can find is at 
http://www.palmsource.com/developers/newsletter/20030818.html#dev_insights. 
Is there a better comparison out there?

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


CodeWarrior9: Program Name Change?

2004-05-16 Thread PalmOS Developer Forum
Hey. My company is in the process of creating a game in CodeWarrior9. One of
my programmers named the actual name of the game that appears on the Palm
123. He thought he could change the name later. Well now he and I do not
know how to rename the name that appears on the Palm. Is it possible to
change the name that appears on the Palm? Thanks in advance for any help!



- Justin Goldberg



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: prc vs. pdb

2004-05-16 Thread Robert Moynihan
Eric Allen wrote:
Is there some whitepaper or article out there detailing the respective 
advantages and disadvantages of prc and pdb formats? I'm trying to 
decided which format I want to use for my application and the best 
documentation I can find is at 
http://www.palmsource.com/developers/newsletter/20030818.html#dev_insights. 
Is there a better comparison out there?

Well, in general terms PRC is "PalmResourceCode", containing executable 
code modules, and PDB is "PalmDataBase", containing data records.  As 
far as I know, ALL palm apps and libraries are PRC files, and probably 
MOST of those apps accesss PDB files in some way or another.  Bob.

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: prc vs. pdb

2004-05-16 Thread David Williams
Think of prcs as part of your application's constant data, pdbs are part 
of your writeable data. Further, prcs' access methods enhance their use 
as constant data. pdbs have access methods (while simple) that are 
useful as writeable datastores.

pdbs changes can easily be backed up to the desktop or sunc with a 
conduit. Changing prcs would be akin to a self modifying program - lots 
of fun, but generally a bad idea.

For purely constant data (big piles of read only data that your program 
uses) you might chose prcs or pdbs. Again, it probably comes down to how 
you want to access it. If the type/id thing works, a prc might be 
easier. In general the simple index model of a pdb, commonly combined 
with an overlayed application specific index, will be best. That is, 
unless you have a good reson not to, use a pdb.

For code, bitmaps, or any other widget that will ends up being directly 
passed to a PalmOS routine, a prc is the obvious choice.

hope that helps,
djw
On Sun, 16 May 2004 19:00, Eric Allen wrote:
Is there some whitepaper or article out there detailing the respective 
advantages and disadvantages of prc and pdb formats? I'm trying to 
decided which format I want to use for my application and the best 
documentation I can find is at 
http://www.palmsource.com/developers/newsletter/20030818.html#dev_insights. 
Is there a better comparison out there?

--
For information on using the Palm Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: CodeWarrior9: Program Name Change?

2004-05-16 Thread wax wacky


 Goto the project settings. Under that select 'Palm OS 68K Target'. Under 
'Standard Resources' change the field labeled ' Application Name('tAIN')'.

This will change the name that appeares on the PalmOS launcher.

 Hope this is of your assistance.!

bye
wax




- Original Message -
From: "PalmOS Developer Forum" <[EMAIL PROTECTED]>
Date: Sun, 16 May 2004 20:03:33 -0700
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Subject: CodeWarrior9: Program Name Change?

Hey. My company is in the process of creating a game in CodeWarrior9. One of
my programmers named the actual name of the game that appears on the Palm
123. He thought he could change the name later. Well now he and I do not
know how to rename the name that appears on the Palm. Is it possible to
change the name that appears on the Palm? Thanks in advance for any help!



- Justin Goldberg



-- 
__
IndiaInfo Mail - the free e-mail service with a difference! www.indiainfo.com 
Check out our value-added Premium features, such as an extra 20MB for mail storage, 
POP3, e-mail forwarding, and ads-free mailboxes!

Powered by Outblaze

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: CodeWarrior9: Program Name Change?

2004-05-16 Thread Ben Combee
At 10:03 PM 5/16/2004, you wrote:
Hey. My company is in the process of creating a game in CodeWarrior9. One of
my programmers named the actual name of the game that appears on the Palm
123. He thought he could change the name later. Well now he and I do not
know how to rename the name that appears on the Palm. Is it possible to
change the name that appears on the Palm? Thanks in advance for any help!
The name shown in the launcher is controlled by the application name 
resource.  It's set in your main .rsrc file if you use Constructor, in the 
.rcp file if you use PilRC, or in the Palm OS Target pref panel if you use 
the Palm OS 68K linker and have that option turned on.

There also is a database name which goes into the header of your PRC file 
and must be unique on the device.  That's set in either the PalmRez panel 
or the PRC File Settings panel, depending on your linker.


-- Ben Combee, DTS technical lead, PalmSource, Inc.
   Read "Combee on Palm OS" at http://palmos.combee.net/

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: PODS: import existing GCC project?

2004-05-16 Thread Ben Combee
At 06:34 PM 5/16/2004, you wrote:
I cannot believe there is no (easily located) step-by-step guide to convert
a standard manual bsh:make project for use in PODS.  Has anybody done this?
There's no guide, as the current version is an almost-documentation free 
technical preview.  We are working on documents that talk about how to 
migrate projects into PODS as part of the final 1.0 release coming this 
summer, but we wanted to get an early version out to developers at the 
conference in February, hence the 0.1.1 release.

As for bash -- the standard Cygwin install.exe will work with the 
PalmOSCygwin installation, so you can use that to pull in other utilities 
that weren't included with the download, including bash.  It's also a good 
idea to update the pilrc.exe that comes with PODS -- it's a very old 
version -- the current 3.2 beta build is on sourceforge.net/projects/pilrc.

Without seeing how you structured your makefile, I can't really recommend a 
migration strategy.  I will note that the build system has changed 
considerably from PODS 0.1.1 to the 1.0 release, so you'll have to rebuild 
any existing projects with the final tools when they are available.


-- Ben Combee, DTS technical lead, PalmSource, Inc.
   Read "Combee on Palm OS" at http://palmos.combee.net/

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


extern const variables link incorrectly

2004-05-16 Thread jimrandomh
Using prc-tools (2.3), if I declare some constant data in one compilation
unit and try to use it in another, I get garbage. If I move them into the
same unit, or make the data non-const, it works. I was able to reproduce
this on a single-segment test case, and the type or size of data doesn't
seem to matter. I've worked around it, but this is a fairly serious bug
which needs fixing.
(Nothing special in the makefile, I just took a generic 'hello world'
program and its makefile for the reduced test case.)
--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: extern const variables link incorrectly

2004-05-16 Thread Jochen Immendörfer
Hello,
a few months ago, I had the same problem. Ton van Overbeek told me, that this 
problem is known as bug #221845 
(http://sourceforge.net/tracker/index.php?func=detail&aid=221845&group_id=4429&atid=104429).
You can find his original answer here: 
http://www.escribe.com/computing/pcpqa/m84537.html

Jochen.

Am Sonntag, 16. Mai 2004 17:48 schrieb jimrandomh:
> Using prc-tools (2.3), if I declare some constant data in one compilation
> unit and try to use it in another, I get garbage. If I move them into the
> same unit, or make the data non-const, it works. I was able to reproduce
> this on a single-segment test case, and the type or size of data doesn't
> seem to matter. I've worked around it, but this is a fairly serious bug
> which needs fixing.
>
> (Nothing special in the makefile, I just took a generic 'hello world'
> program and its makefile for the reduced test case.)

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Who owns game's intelligent property?

2004-05-16 Thread Matthew Webster
I would like to develop some game sharewares, but I do
not know who owns the intelligent propoertie of games
like Solitaires, Tetris, Socoban, Tic Tac Toe and
bubble etc.

Any info will be helpful.

Thanks

Matt





__
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
http://promo.yahoo.com/sbc/

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


pdbc is yielding bad databases

2004-05-16 Thread Eric Allen
I'm having a lot of trouble using pdbc 0.9.5 under linux, either 
compiled for linux or through wine. First of all, it throws syntax 
errors on examples I give it. I got through that but then databases that 
I created gave the following error when I tried to load them into pose

Could not install the Palm OS file "out.pdb" because Palm
OS error 0x0203 (dmErrInvalidParam) occurred.
I've even tried taking a database, running it through pdbdec, and then 
through pdbc. Pdbc throws errors on the data. So, can anybody help me 
with pdbc?

If not, I would be happy to use any other tool. All I want to do is 
create a 1MB database that is full of ASCII. I want each record to be 
about 65536 bytes in size and for the data to be essentially contiguous 
through the records. Is there an easier Linux or Windows tool to do this?

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/