<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Win32 Tip: Set Working Directory to App Directory</title>
	<link>http://gdmike.statbuff.com/2006/07/05/win32-tip-set-working-directory-to-app-directory/</link>
	<description>News, opinions, articles, tips &#038; tricks on game development with an Indie twist.</description>
	<pubDate>Fri, 21 Nov 2008 20:59:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: gdmike</title>
		<link>http://gdmike.statbuff.com/2006/07/05/win32-tip-set-working-directory-to-app-directory/#comment-33792</link>
		<dc:creator>gdmike</dc:creator>
		<pubDate>Sun, 30 Mar 2008 10:34:21 +0000</pubDate>
		<guid>http://gdmike.statbuff.com/2006/07/05/win32-tip-set-working-directory-to-app-directory/#comment-33792</guid>
		<description>Nice catch! Corrected in the post.</description>
		<content:encoded><![CDATA[<p>Nice catch! Corrected in the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan Blomquist</title>
		<link>http://gdmike.statbuff.com/2006/07/05/win32-tip-set-working-directory-to-app-directory/#comment-32832</link>
		<dc:creator>Nathan Blomquist</dc:creator>
		<pubDate>Tue, 04 Mar 2008 21:36:56 +0000</pubDate>
		<guid>http://gdmike.statbuff.com/2006/07/05/win32-tip-set-working-directory-to-app-directory/#comment-32832</guid>
		<description>Great little post!

One problem:
The call to SetCurrentDirectory() should have appPath passed in, not appDir.  strrchr() returns a pointer to the last position of the character in the original string.  Therefore setting it to 0 (zero) results in an empty string beginning at appDir. Passing appPath to SetCurrentDirectory works because appDir is set to 0 (zero), which is really just pointing into appPath!

-- Nate</description>
		<content:encoded><![CDATA[<p>Great little post!</p>
<p>One problem:<br />
The call to SetCurrentDirectory() should have appPath passed in, not appDir.  strrchr() returns a pointer to the last position of the character in the original string.  Therefore setting it to 0 (zero) results in an empty string beginning at appDir. Passing appPath to SetCurrentDirectory works because appDir is set to 0 (zero), which is really just pointing into appPath!</p>
<p>&#8211; Nate</p>
]]></content:encoded>
	</item>
</channel>
</rss>
