<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>i need help</title>
		<link>http://www.allegro.cc/forums/view/590291</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Thu, 01 Mar 2007 09:57:11 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>im using allegro with dev-c++ and i installed all the directories and i can make programs without bitmaps fine but when i try to put a bitmap into the program it just crashes. ive copied examples from many different sources and websites but none of them work i have no idea of why it wont work!!!!!!!!!!!&gt;:(&gt;:(&gt;:(&gt;:(
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (chaseC)</author>
		<pubDate>Tue, 27 Feb 2007 09:23:39 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;ll say. Looks like your shift key is completely broken!</p><p>Post a piece of code that compiles and crashes, and post the bitmap that you try to load that doesn&#39;t work. <a href="http://www.allegro.cc/mockup.html">Read this before posting code</a> (the bottom line, specifically)
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CGamesPlay)</author>
		<pubDate>Tue, 27 Feb 2007 09:26:53 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>heres the source code</p><div class="source-code"><div class="toolbar"></div><div class="inner"><table width="100%"><tbody><tr><td class="number">1</td><td>&#160;</td></tr><tr><td class="number">2</td><td><span class="p">#include &lt;allegro.h&gt;</span></td></tr><tr><td class="number">3</td><td>&#160;</td></tr><tr><td class="number">4</td><td><a href="http://www.allegro.cc/manual/BITMAP" target="_blank"><span class="a">BITMAP</span></a> <span class="k3">*</span>x<span class="k2">;</span></td></tr><tr><td class="number">5</td><td>&#160;</td></tr><tr><td class="number">6</td><td> <span class="k1">int</span> main<span class="k2">(</span><span class="k2">)</span><span class="k2">{</span></td></tr><tr><td class="number">7</td><td>     </td></tr><tr><td class="number">8</td><td>     <a href="http://www.allegro.cc/manual/allegro_init" target="_blank"><span class="a">allegro_init</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">9</td><td>     <a href="http://www.allegro.cc/manual/install_keyboard" target="_blank"><span class="a">install_keyboard</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">10</td><td>     <a href="http://www.allegro.cc/manual/set_color_depth" target="_blank"><span class="a">set_color_depth</span></a><span class="k2">(</span><span class="n">16</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">11</td><td>     <a href="http://www.allegro.cc/manual/set_gfx_mode" target="_blank"><span class="a">set_gfx_mode</span></a><span class="k2">(</span> GFX_AUTODETECT, <span class="n">640</span>, <span class="n">480</span>, <span class="n">0</span>, <span class="n">0</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">12</td><td>     </td></tr><tr><td class="number">13</td><td>     x <span class="k3">=</span> <a href="http://www.allegro.cc/manual/load_bitmap" target="_blank"><span class="a">load_bitmap</span></a><span class="k2">(</span> <span class="s">"x.bmp"</span>, NULL<span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">14</td><td>     </td></tr><tr><td class="number">15</td><td>     <a href="http://www.allegro.cc/manual/acquire_screen" target="_blank"><span class="a">acquire_screen</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">16</td><td>     </td></tr><tr><td class="number">17</td><td>     <a href="http://www.allegro.cc/manual/draw_sprite" target="_blank"><span class="a">draw_sprite</span></a><span class="k2">(</span> <a href="http://www.allegro.cc/manual/screen" target="_blank"><span class="a">screen</span></a>, x, <span class="n">220</span>, <span class="n">340</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">18</td><td>     </td></tr><tr><td class="number">19</td><td>     <a href="http://www.allegro.cc/manual/release_screen" target="_blank"><span class="a">release_screen</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">20</td><td>     </td></tr><tr><td class="number">21</td><td>     <a href="http://www.allegro.cc/manual/readkey" target="_blank"><span class="a">readkey</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">22</td><td>     </td></tr><tr><td class="number">23</td><td>     <span class="k1">return</span> <span class="n">0</span><span class="k2">;</span></td></tr><tr><td class="number">24</td><td>     </td></tr><tr><td class="number">25</td><td>     <span class="k2">}</span></td></tr><tr><td class="number">26</td><td>     <a href="http://www.allegro.cc/manual/END_OF_MAIN" target="_blank"><span class="a">END_OF_MAIN</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span></td></tr></tbody></table></div></div><p>

it just comes up with a: send error/dont send error, popup</p><p>the X is for a tic-tac-toe game
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (chaseC)</author>
		<pubDate>Wed, 28 Feb 2007 06:30:45 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You need to check that the bitmap was actually loaded.</p><div class="source-code snippet"><div class="inner"><pre>x <span class="k3">=</span> <a href="http://www.allegro.cc/manual/load_bitmap" target="_blank"><span class="a">load_bitmap</span></a><span class="k2">(</span><span class="s">"x.bmp"</span>, NULL<span class="k2">)</span><span class="k2">;</span>
<span class="k1">if</span><span class="k2">(</span>x <span class="k3">=</span><span class="k3">=</span> NULL<span class="k2">)</span>
<span class="k2">{</span>
    <a href="http://www.allegro.cc/manual/set_gfx_mode" target="_blank"><span class="a">set_gfx_mode</span></a><span class="k2">(</span>GFX_TEXT, <span class="n">0</span>, <span class="n">0</span>, <span class="n">0</span>, <span class="n">0</span><span class="k2">)</span><span class="k2">;</span>
    <a href="http://www.allegro.cc/manual/allegro_message" target="_blank"><span class="a">allegro_message</span></a><span class="k2">(</span><span class="s">"The bitmap failed to load"</span><span class="k2">)</span><span class="k2">;</span>
    <span class="k1">return</span> <span class="n">1</span><span class="k2">;</span>
<span class="k2">}</span>
</pre></div></div><p>

When you do this, you will find that the bitmap is never loaded, and trying to draw it on the screen crashes. Possible problems: the bitmap is in the wrong folder.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CGamesPlay)</author>
		<pubDate>Wed, 28 Feb 2007 10:09:43 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>i thought that there might be a folder i had to put the bitmap in, what is it, right now he bitmap is just in my picures
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (chaseC)</author>
		<pubDate>Thu, 01 Mar 2007 05:14:50 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Where you put the images depends on whee you tell your program to look for them. If you don&#39;t specify a path, then the image needs to be in the same directory as the program. If you&#39;re running the program from an IDE, then what directory they need to be in depends on the IDE.</p><p>Oh, and please learn to write propely.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Thu, 01 Mar 2007 09:57:11 +0000</pubDate>
	</item>
</rss>
