Spécial ! |
Version mobile de l'aldweb Site m.aldweb.com Ni Français, ni Anglais ?Essayez donc l'un de ces drapeaux :
|
|
Météo / Spam / www |
Météo Lyon
aldweb contre le SPAM
|
|
|
|
|
|
|
- Forum - iziBasic
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Sujet n° 1093 |
Creating resource file with Pilrc |
le 11/02/2005 @ 17:54 par Lugato
|
Hi to all,
Anyone knows if is it possible to create a .rsrc with Pilrc ???
I created a xxx.prc file with many bmp´s but in iziBasic I can´t use any image
Is it possible to convert a .prc file to a .rsrc file or any other solution ???
|
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1 -------- le 11/02/2005 @ 19:31 par aldweb
visiteur |
Hello Lugato,
Yes, you can use PILRC to build a resource file. Then, what I don't know is if PILRC can generate a self sufficient .prc file.
I personally include the PILRC generated resource file in a PRC thanks to a HSPascal compilation of a fake source code. I get a PRC file that I then hotsync to my Palm.
At this stage, I just have to change its type to Rsrc in Bird (or RsrcEdit) and to remove the code 0 and code 1 resources (these are the fake code added by HSPascal).
Cheers
@+ aldweb |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 2 -------- le 12/02/2005 @ 00:47 par Leonard Zajaczkowski
visiteur |
I'm using pilrc-3.2 and it seems to work for me...
The RCP (called bmp3.rcp) file I created looks like this:
BITMAPFAMILYEX ID 7 BEGIN BITMAP "simon7.bmp" BPP 8 DENSITY 72 TRANSPARENT 255 255 255 END
BITMAPFAMILYEX ID 8 BEGIN BITMAP "simon8.bmp" BPP 8 DENSITY 72 END
ICON ID 1000 BEGIN BITMAP "simon9.bmp" BPP 8 DENSITY 72 TRANSPARENT 255 255 255 END
ICON ID 1001 BEGIN BITMAP "simon10.bmp" BPP 8 DENSITY 72 TRANSPARENT 255 255 255 END
Then I use a batch file that looks like this:
PilRC -name psimonlr.rsrc -ro -o psimonlr.rsrc.prc bmp3.rcp
The above command is all on one line...
I end up with a file called: 'psimonlr.rsrc.prc' which I hotsync and use.
The only thing that I found odd, is when I create hi-res graphics (bpp 16 density 144) I have to FORCECOMPRESS them and they are not editable on the palm.
Mind you I just started using pilrc so this is the extent of my knowledge, so far. |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 3 -------- le 12/02/2005 @ 06:15 par Montalvo
visiteur |
Also, find for a program called: "PIBUILDER". This one runs on Windows, and it is an editor to create resources for your application. You will need PILRC, of course, to "compile" your resources into a PRC file.
You can find this program at: http://pibuilder.sourceforge.net/
|
|
|
sujet actif
sujet clos
Important!
Nouveau message -
Rectifier message
Clôturer sujet
Remonter
|
|
|
|
|
|