<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Misterdom's World &#187; exe</title>
	<atom:link href="http://www.guinard.org/~misterdom/tag/exe/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.guinard.org/~misterdom</link>
	<description>My Computing Logbook</description>
	<lastBuildDate>Sat, 24 Dec 2011 09:31:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Distributing a Visual Studio C++ Exe That Does not Need the Windows .NET Framework</title>
		<link>http://www.guinard.org/~misterdom/2009/09/17/distributing-a-visual-studio-c-exe/</link>
		<comments>http://www.guinard.org/~misterdom/2009/09/17/distributing-a-visual-studio-c-exe/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 11:49:24 +0000</pubDate>
		<dc:creator>misterdom</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Visual Studio .Net]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[exe]]></category>
		<category><![CDATA[framework]]></category>

		<guid isPermaLink="false">http://www.guinard.org/~misterdom/?p=108</guid>
		<description><![CDATA[If like me you export your Visual Studio (2008) .NET C++ project as an EXE, copy it on another machine and get: &#8220;This application has failed to start because the application configuration is incorrect&#8221;. Then it might be because the target machine is actually missing the Microsoft .NET Framework.
Since I did not really felt like [...]]]></description>
			<content:encoded><![CDATA[<p>If like me you export your Visual Studio (2008) .NET C++ project as an EXE, copy it on another machine and get: &#8220;This application has failed to start because the application configuration is incorrect&#8221;. Then it might be because the target machine is actually missing the Microsoft .NET Framework.</p>
<p>Since I did not really felt like asking all the future users of my app to install the .NET framework, I started looking for a way of embedding these libs in my final app.</p>
<p>While it is apparently not possible to do so without requiring a special (commercial) tool, there is a workaround that worked for me. By forcing the C/C++ to by statically linked the framework functions actually are embedded into the EXE (which, btw, gets much bigger then).</p>
<p>To do so (in Visual Studio .NET 2008 C/C++, Express) do:<br />
Property Page -> Configuration Properties -> C/C++ -> Code Generation then &#8220;Runtime Library&#8221; should be set to an &#8220;non-dll&#8221; option such as Multi-threaded (for the release target) or Multi-threaded Debug (to debug your app).</p>
<p>Here we go!</p>
<p>Sources:<br />
<a href="http://stackoverflow.com/questions/271290/can-visual-studio-2008-standard-create-a-single-exe-that-does-not-require-net-fr">http://stackoverflow.com/questions/271290/can-visual-studio-2008-standard-create-a-single-exe-that-does-not-require-net-fr</a></p>
<p><a href="http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/36971526-95f3-4a9f-a601-1843c86332c1">http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/36971526-95f3-4a9f-a601-1843c86332c1</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.guinard.org/~misterdom/2009/09/17/distributing-a-visual-studio-c-exe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

