Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3368: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3370: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3371: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3372: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
OrbWorks Community Forum • View topic - BMP/GIF/whatever to PDB converter
Page 3 of 4

PostPosted: Fri Mar 08, 2002 1:56 pm
by jstadolnik
Read the FastBmp documentation. The ID you use depends on the features you want to take advantage of, notably on whether you plan to use load&lock or load-on-demand drawing modes.

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm

PostPosted: Fri Mar 08, 2002 2:50 pm
by delta
thanks, in the map_demo.c from PToolbox the function "FastBmp(0,0,4)" is in "lock&load" and bitmap ID is 4 right?

how about the command line "PilRC myfile.rcp" in Dos? i got the invalid filename error.

PostPosted: Fri Mar 08, 2002 3:58 pm
by jstadolnik
No, 4 is the index, not the resource id.

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm

PostPosted: Sat Mar 09, 2002 12:34 am
by delta
i read the "readme" in PilRC. i had downloaded the .zip(sources) of the PilRC v2.9

How can i compile the PilRC? I don't have Microsoft Dev Studio installed.

Also, the inside .zip(win32) package of the PilRC v2.9; there is an error "CYGWIN1.DLL" not found when i tried to run the PilRC.exe

How can i run PilRC?

PostPosted: Sat Mar 09, 2002 1:09 am
by jstadolnik
It looks like you'll have to install Cygwin (a gcc for windows port) to get the CYGWIN1.DLL. See this link for instructions: http://www.palmos.com/dev/tools/gcc/install-win.html

Joe


The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm

PostPosted: Sat Mar 09, 2002 3:14 am
by delta
thanks joe,

Finally it works.
Actually, i just copy the missing CYGWIN1.DLL into the PilRC(win32) folder and it works.
After trial and error, I managed to convert and load the .bin into the .prc file.
And trying out the "FastBmp(0,0,4)" and replaced it with "FastBmp(0,0,6)" then set the line in .rcp file "BITMAP ID 6 "bitmap.bmp" COMPRESS". The program actually retrieves the exact bitmap resource.

PostPosted: Sat Mar 09, 2002 3:41 am
by jstadolnik
Your're still mixing up bitmap index and bitmap resource ID. When in lock&load mode FastBmp addresses bitmap in an index notion, not by resource ID. You're just getting lucky in that the index and resource ID are both 6.

Change your bitmap's resource ID in the .rcp to 1000 and it should still work.

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm

PostPosted: Sat Mar 09, 2002 10:46 am
by delta
strange encounter...

here is what i done:
in map.rcp i write "BITMAP ID 500 "bitmap.bmp" COMPRESS"
then run the command in Dos: "pilRC map.rcp"
then run the command in Dos: par c -a "resource|backup" map.prc map DATA JHSG *.bin

the map.prc is generated and i set FastBmp(0,0,0) and open the map.prc in program with OpenBmpDb("map") and run in PocketC and when i execute the program it have the error"PToolboxLib.cpp, Line:424, memory alloc failure".

i tried changing the bitmap's resource ID in the .rcp to 1000 and the FastBmp(0,0,0) and repeat the same procedure and still got the same error.

it is the command i used for par is wrong?
information: i am using only one .bin file.

PostPosted: Sat Mar 09, 2002 12:59 pm
by jstadolnik
You are exceeding the available amount of heap space, likely with the scratch buffer. See the "screen buffer" section for more details on this issue.

Either you find a way of not using scratch buffers (perhaps by drawing the bitmap directly on the screen rather than to a scrach buffer) or by reducing the size of your bitmap.

Pre-OS3.5 systems also have much less heap memory than OS3.5+ systems... if you happen to be using an older unit.

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm

PostPosted: Sat Mar 09, 2002 1:01 pm
by jstadolnik
Also, JHSU is one of my creator ID's. You need to get and use your own. See the link I mentioned earlier.

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm

PostPosted: Sat Mar 09, 2002 4:25 pm
by delta
my bitmap.prc is only 8K. The strange part is, if i were to add in 5 bitmaps into the bitmap.prc (5x8K) then it can work.

PostPosted: Sat Mar 09, 2002 6:20 pm
by jstadolnik
It sounds like you don't understand what BmpInfo() is doing.

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm

PostPosted: Sun Mar 10, 2002 1:23 am
by delta
thanks, BmpInfo index also needs to set 0.

PostPosted: Sun Mar 10, 2002 2:51 am
by jstadolnik
Need any more teeth extracted? Surely you must have molar or two left? <img src=icon_smile.gif border=0 align=middle>

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm

PostPosted: Sun Mar 10, 2002 3:08 am
by delta
:-)
haha...