<?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>Searbe &#187; Bad User Experience</title>
	<atom:link href="http://www.searbe.co.uk/tag/bad-user-experience/feed" rel="self" type="application/rss+xml" />
	<link>http://www.searbe.co.uk</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 19 Aug 2010 12:29:33 +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>Web Authoring Component failed to install, Cannot open include file: &#8216;windows.h&#8217; or &#8216;d3dx9.h&#8217;, Cannot open file &#8216;dxerr.lib&#8217; &#8211; Solutions</title>
		<link>http://www.searbe.co.uk/web-authoring-component-failed-to-install-cannot-open-include-file-windowsh-or-d3dx9h-cannot-open-file-dxerrlib-solutions</link>
		<comments>http://www.searbe.co.uk/web-authoring-component-failed-to-install-cannot-open-include-file-windowsh-or-d3dx9h-cannot-open-file-dxerrlib-solutions#comments</comments>
		<pubDate>Sun, 08 Mar 2009 13:19:45 +0000</pubDate>
		<dc:creator>searbe</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Bad User Experience]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.searbe.co.uk/?p=37</guid>
		<description><![CDATA[Oh WOW you really do forget how much of a headache getting Visual C++ ready to use is. Fixing these errors is so majorly counter-intuitive, and from the point of view of someone who programs in C++ once in a blue moon it&#8217;s a total pig when you want to spend an evening programming then [...]]]></description>
			<content:encoded><![CDATA[<p>Oh <b>WOW</b> you really do forget how much of a headache getting Visual C++ ready to use is. Fixing these errors is so majorly counter-intuitive, and from the point of view of someone who programs in C++ once in a blue moon it&#8217;s a total pig when you want to spend an evening programming then realise you&#8217;ve reformatted and gotta install everything again.</p>
<p>Anyway a check-list to myself and hopefully will help others. To get Visual Studio and (optionally) set up with the DirectX SDK, there is a hell of a lot of messing around to do.</p>
<p>Download and install Visual Studio 2008.</p>
<h2>Microsoft Visual Studio Web Authoring Component failed to install &#8211; WebDesignerCore.EXE download</h2>
<p>First problem was this bugger. The suggestion I came across was &#8220;re-download VS 2008&#8243; as it&#8217;s corrupt. If Virgin Media hadn&#8217;t capped me to 250Kbps that wouldn&#8217;t be such a problem, but unfortunately the UK is a country where you&#8217;re not allowed to use your 10Mbps connection without severe punishment.</p>
<p>The solution here? Download WebDesignerCore.EXE &#8211; you can <a href="http://go.microsoft.com/fwlink/?LinkId=95934">get it from Microsoft.com</a>. Extract it using WinRAR (it can read the .exe as an archive). Install manually.</p>
<p>Now try to install Visual Studio 2008 again &#8211; it&#8217;ll probably work nicely.</p>
<p><em><strong>NOTE</strong></em>: If you still have problems with this component, you might like to try fiddling with the versioning <a href="http://www.screwtheweb.com/?p=6">as described at ScrewTheWeb.com</a> and <a href="http://msmvps.com/blogs/paulomorgado/archive/2008/03/23/web-authoring-component-install-fails-when-installing-visual-studio-2008.aspx">MSNVPS</a>.</p>
<h2>fatal error C1083: Cannot open include file: &#8216;windows.h&#8217;: No such file or directory</h2>
<p>Next up, cannot open include file windows.h. Great &#8211; it turns out the Windows Platform SDK doesn&#8217;t come with Visual Studio &#8211; a serious &#8220;WTF&#8221; there! It also turns out they&#8217;ve bloated the latest release by an extra gig &#8211; from ~400mb to ~1,300mb. So go <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=F26B1AA4-741A-433A-9BE5-FA919850BDBF&#038;displaylang=en">download the Windows Platform SDK</a>.</p>
<p>This was extra irritating on my 250Mbps cap. *grumble moan grumble*</p>
<h2>fatal error C1083: Cannot open include file: &#8216;d3dx9.h&#8217;: No such file or directory</h2>
<p>Argh &#8211; now what?! You need to set up Visual Studio to look for the DirectX SDK stuff. You did <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=5493F76A-6D37-478D-BA17-28B1CCA4865A&#038;displaylang=en">download and install the DirectX SDK</a>, right? Oh well good news &#8211; there&#8217;s another ~450MB for you to download.</p>
<p>Once that&#8217;s installed, in Visual Studio 2008, go to Tools -> Options -> Projects and Solutions -> VC++ Directories. In the top right drop-down menu, where it says &#8220;Executable Files&#8221;, change that to &#8220;Include Files&#8221;. Add to the list (double click just after the last entry to create a new one) your SDK Include directory &#8211; mine is &#8220;C:\Program Files (x86)\Microsoft DirectX SDK (November 2008)\Include&#8221;, but perhaps you installed yours somewhere more sensible.</p>
<h2>fatal error LNK1104: cannot open file &#8216;dxerr.lib&#8217;</h2>
<p>Joy! More errors! There must be some way to fix this properly, however you can solve it by copying from your &#8220;Microsoft DirectX SDK (November 2008)\Lib\x86&#8243; directory into your projects directory. You will get a bunch of these &#8211; including a d3dx9d.lib error &#8211; which shouldn&#8217;t be confused with the one above.</p>
<p>To get my simple project working I had to copy over:</p>
<ul>
<li>d3dx9d.lib</li>
<li>d3dx10d.lib</li>
<li>DxErr.lib</li>
<li>dxguid.lib</li>
</ul>
<h2>Fingers crossed, now everything works!</h2>
<p>It took a while, but now I can compile a fantastic DirectX project that shows me a blank blue screen. Deep breath. One evening wasted, hopefully I can actually get on with some programming today.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.searbe.co.uk/web-authoring-component-failed-to-install-cannot-open-include-file-windowsh-or-d3dx9h-cannot-open-file-dxerrlib-solutions/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
