<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>My exe is not working on a specific computer</title>
		<link>http://www.allegro.cc/forums/view/613000</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sat, 20 Jul 2013 04:22:38 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hello,</p><p>I&#39;ve recently started learning allegro 5 in addition to C++ and I am loving it. I&#39;ve been following tutorials and eventually got to the point of where I made a simple space game. I was using Visual Studio Pro and used the setup wizard to create my setup.exe and my project.msi files. I used those files to install the game onto my computer and it worked fine, I installed it on my other computer which didn&#39;t have allegro 5 and it worked fine. However when I sent the two files to my friend they worked but when he tried to run the game.exe the program started in a &quot;minimized&quot; state and wouldn&#39;t maximize. I am at a loss for what the problem is. The only thing I could isolate down to possibly being an issue is the fact that the two machines that worked were windows 7 while his machine is windows 8, although I don&#39;t know what that means for me to be able to fix the problem.</p><p>Thanks in advance!</p><p>--Draze
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (DrazeSwift)</author>
		<pubDate>Fri, 19 Jul 2013 23:50:23 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>As a quick fix you can use <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms633548%28v=vs.85%29.aspx">ShowWindow</a> :</p><div class="source-code snippet"><div class="inner"><pre><span class="p">#include &lt;allegro5/allegro.h&gt;</span>
<span class="p">#include &lt;allegro5/allegro_windows.h&gt;</span>

<span class="c">//...setup allegro and such and create your window</span>

<a href="http://www.allegro.cc/manual/ALLEGRO_DISPLAY"><span class="a">ALLEGRO_DISPLAY</span></a><span class="k3">*</span> display <span class="k3">=</span> <a href="http://www.allegro.cc/manual/al_create_display"><span class="a">al_create_display</span></a><span class="k2">(</span>width,height<span class="k2">)</span><span class="k2">;</span>
<span class="k1">if</span> <span class="k2">(</span><span class="k3">!</span>display<span class="k2">)</span> <span class="k2">{</span>Fail<span class="k2">(</span><span class="k2">)</span><span class="k2">;</span><span class="k2">}</span>

HWND window_handle <span class="k3">=</span> <a href="http://www.allegro.cc/manual/al_get_win_window_handle"><span class="a">al_get_win_window_handle</span></a><span class="k2">(</span>display<span class="k2">)</span><span class="k2">;</span>

ShowWindow<span class="k2">(</span>window_handle , SW_RESTORE<span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Sat, 20 Jul 2013 03:09:50 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Also, try running one of the example programs on his computer.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Sat, 20 Jul 2013 04:22:38 +0000</pubDate>
	</item>
</rss>
