<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Give an example using file_select_ex()</title>
		<link>http://www.allegro.cc/forums/view/588258</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sat, 04 Nov 2006 12:58:55 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>hi,</p><p>      I tried using file_select_ex() fn. But did not work. Can anyone give me an example using this fn.</p><p>      Should i use Dialog for this?</p><p>      Thank You
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (raja peter)</author>
		<pubDate>Sat, 28 Oct 2006 15:53:08 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>In what way didn&#39;t it work? Can you show some code that shows what you did?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Evert)</author>
		<pubDate>Sat, 28 Oct 2006 15:59:01 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p> file_select_ex(&quot;Select Image&quot;,&quot;c:&quot;,&quot;GIF;JPG&quot;,480,100,50);
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (raja peter)</author>
		<pubDate>Sat, 28 Oct 2006 16:09:37 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">the manual said:</div><div class="quote"><p>
The user selection is returned by altering the path buffer, whose maximum capacity in bytes is specified by the size parameter. Note that it <b>should have room</b> for at least 80 characters (not bytes), so you should <b>reserve</b> 6x that amount, just to be sure.
</p></div></div><p>
You figure it out from here.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (miran)</author>
		<pubDate>Sat, 28 Oct 2006 18:43:36 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>raja: miran is correct with the snippit from the manual.</p><p>Does doing it like this change anything?
</p><div class="source-code snippet"><div class="inner"><pre>  <span class="k1">char</span> path<span class="k2">[</span><span class="n">255</span><span class="k2">]</span><span class="k2">;</span>

  <a href="http://www.allegro.cc/manual/file_select_ex" target="_blank"><span class="a">file_select_ex</span></a><span class="k2">(</span><span class="s">"Select Image"</span>,path,<span class="s">"GIF;JPG"</span>,<span class="n">480</span>,<span class="n">100</span>,<span class="n">50</span><span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>

...the difference being &#39;path&#39; is not hard-coded into your <tt>file_select_ex</tt> call as &quot;c:&quot;, but rather as &#39;path&#39; defined as an array of &#39;char&#39;?</p><p>-TT
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (TeamTerradactyl)</author>
		<pubDate>Sat, 28 Oct 2006 21:24:37 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>TeamTerradactyl&#39;s idea is correct, but you should make &quot;path&quot; an array of 480.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Vasco Freitas)</author>
		<pubDate>Sat, 04 Nov 2006 12:58:55 +0000</pubDate>
	</item>
</rss>
