<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: wmain vs _tmain</title>
	<atom:link href="http://www.coderjoe.net/archive/2007/04/18/wmain-vs-_tmain/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.coderjoe.net/archive/2007/04/18/wmain-vs-_tmain/</link>
	<description>Me, myself, and my code.</description>
	<lastBuildDate>Sun, 24 Jan 2010 21:49:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: coderjoe</title>
		<link>http://www.coderjoe.net/archive/2007/04/18/wmain-vs-_tmain/comment-page-1/#comment-9721</link>
		<dc:creator>coderjoe</dc:creator>
		<pubDate>Mon, 30 Mar 2009 17:52:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.coderjoe.net/archive/2007/04/18/wmain-vs-_tmain/#comment-9721</guid>
		<description>@hatchetman82

Cross platform unicode command line argument handling has been something that has eluded me for a while. As such I tend to just avoid command line arguments and use configuration files instead.

However, a quick search showed a single thread in a QT mailing list which mentions one possible solution.
&lt;a href=&quot;http://lists.trolltech.com/qt-interest/2004-09/msg01171.html#msg01171&quot; rel=&quot;nofollow&quot;&gt;http://lists.trolltech.com/qt-interest/2004-09/msg01171.html#msg01171&lt;/a&gt;

The suggestion is to cast your (char **argv) first element to an pointer of unsigned short... then use your unicode string conversion tools of choice. (In their case they use the QT libraries, but I&#039;d imagine a similar solution would work for other tool sets.

I obviously haven&#039;t tried this solution, best of luck to you!
If you get it working I&#039;d love to hear how!

Cheers,
Joe</description>
		<content:encoded><![CDATA[<p>@hatchetman82</p>
<p>Cross platform unicode command line argument handling has been something that has eluded me for a while. As such I tend to just avoid command line arguments and use configuration files instead.</p>
<p>However, a quick search showed a single thread in a QT mailing list which mentions one possible solution.<br />
<a href="http://lists.trolltech.com/qt-interest/2004-09/msg01171.html#msg01171" rel="nofollow">http://lists.trolltech.com/qt-interest/2004-09/msg01171.html#msg01171</a></p>
<p>The suggestion is to cast your (char **argv) first element to an pointer of unsigned short&#8230; then use your unicode string conversion tools of choice. (In their case they use the QT libraries, but I&#8217;d imagine a similar solution would work for other tool sets.</p>
<p>I obviously haven&#8217;t tried this solution, best of luck to you!<br />
If you get it working I&#8217;d love to hear how!</p>
<p>Cheers,<br />
Joe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hatchetman82</title>
		<link>http://www.coderjoe.net/archive/2007/04/18/wmain-vs-_tmain/comment-page-1/#comment-9717</link>
		<dc:creator>hatchetman82</dc:creator>
		<pubDate>Mon, 30 Mar 2009 16:53:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.coderjoe.net/archive/2007/04/18/wmain-vs-_tmain/#comment-9717</guid>
		<description>first of all thank you. i just got tired of staring at those long #define chains that plague the simplest of hello-world project trying to figure that one out. too bad i only resorted to googling it after 20 minutes.
the question (for me at least) is this: if wmain is windows-specific, is there a &quot;standard&quot; (as in ANSI, cross-platform standard) way to write unicode-capable C programs ?</description>
		<content:encoded><![CDATA[<p>first of all thank you. i just got tired of staring at those long #define chains that plague the simplest of hello-world project trying to figure that one out. too bad i only resorted to googling it after 20 minutes.<br />
the question (for me at least) is this: if wmain is windows-specific, is there a &#8220;standard&#8221; (as in ANSI, cross-platform standard) way to write unicode-capable C programs ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2008-09-09 &#171; dstelow notes&#8230;</title>
		<link>http://www.coderjoe.net/archive/2007/04/18/wmain-vs-_tmain/comment-page-1/#comment-6566</link>
		<dc:creator>links for 2008-09-09 &#171; dstelow notes&#8230;</dc:creator>
		<pubDate>Tue, 09 Sep 2008 23:39:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.coderjoe.net/archive/2007/04/18/wmain-vs-_tmain/#comment-6566</guid>
		<description>[...] wmain vs _tmain &#124; CoderJoe.net One more time. &#8230;What is wmain, what is _tmain, and how do they relate? (tags: dev c++) [...]</description>
		<content:encoded><![CDATA[<p>[...] wmain vs _tmain | CoderJoe.net One more time. &#8230;What is wmain, what is _tmain, and how do they relate? (tags: dev c++) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dstelow</title>
		<link>http://www.coderjoe.net/archive/2007/04/18/wmain-vs-_tmain/comment-page-1/#comment-6547</link>
		<dc:creator>dstelow</dc:creator>
		<pubDate>Tue, 09 Sep 2008 03:18:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.coderjoe.net/archive/2007/04/18/wmain-vs-_tmain/#comment-6547</guid>
		<description>Most excellent!</description>
		<content:encoded><![CDATA[<p>Most excellent!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: noogat</title>
		<link>http://www.coderjoe.net/archive/2007/04/18/wmain-vs-_tmain/comment-page-1/#comment-5276</link>
		<dc:creator>noogat</dc:creator>
		<pubDate>Sun, 29 Jun 2008 18:12:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.coderjoe.net/archive/2007/04/18/wmain-vs-_tmain/#comment-5276</guid>
		<description>Damn, finally, a clear answer. Thanks.</description>
		<content:encoded><![CDATA[<p>Damn, finally, a clear answer. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yl</title>
		<link>http://www.coderjoe.net/archive/2007/04/18/wmain-vs-_tmain/comment-page-1/#comment-5165</link>
		<dc:creator>yl</dc:creator>
		<pubDate>Fri, 20 Jun 2008 15:12:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.coderjoe.net/archive/2007/04/18/wmain-vs-_tmain/#comment-5165</guid>
		<description>Very clear! Thanks</description>
		<content:encoded><![CDATA[<p>Very clear! Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeff</title>
		<link>http://www.coderjoe.net/archive/2007/04/18/wmain-vs-_tmain/comment-page-1/#comment-5126</link>
		<dc:creator>jeff</dc:creator>
		<pubDate>Tue, 17 Jun 2008 19:45:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.coderjoe.net/archive/2007/04/18/wmain-vs-_tmain/#comment-5126</guid>
		<description>just what I was looking for, thanks coder joe.</description>
		<content:encoded><![CDATA[<p>just what I was looking for, thanks coder joe.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: youdontneedmyname</title>
		<link>http://www.coderjoe.net/archive/2007/04/18/wmain-vs-_tmain/comment-page-1/#comment-3255</link>
		<dc:creator>youdontneedmyname</dc:creator>
		<pubDate>Fri, 08 Feb 2008 22:12:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.coderjoe.net/archive/2007/04/18/wmain-vs-_tmain/#comment-3255</guid>
		<description>Very helpful. Thanks!</description>
		<content:encoded><![CDATA[<p>Very helpful. Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.257 seconds -->
