<?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>Scriptionary Blog &#187; Win32</title>
	<atom:link href="http://blog.scriptionary.com/tag/win32/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.scriptionary.com</link>
	<description>The informal yet informational sub-site</description>
	<lastBuildDate>Fri, 19 Feb 2010 16:21:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>DirectX Developer Blog</title>
		<link>http://blog.scriptionary.com/2009/09/16/directx-developer-blog/</link>
		<comments>http://blog.scriptionary.com/2009/09/16/directx-developer-blog/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 14:33:30 +0000</pubDate>
		<dc:creator>Eddy Luten</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[directx]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Win32]]></category>

		<guid isPermaLink="false">http://blog.scriptionary.com/2009/09/16/directx-developer-blog/</guid>
		<description><![CDATA[Apparently, the DirectX team has had a blog since late April of this year it&#8217;s just not very popular I guess.
They&#8217;ve posted a shipload of information over the last couple of months, so if you&#8217;re like me and had no idea this existed, you&#8217;ll have quite some reading to catch up to. It&#8217;s mostly about [...]]]></description>
			<content:encoded><![CDATA[<p>Apparently, the DirectX team has had <a href="http://blogs.msdn.com/DirectX/" target="_blank">a blog since late April of this year</a> it&#8217;s just not very popular I guess.</p>
<p>They&#8217;ve posted a shipload of information over the last couple of months, so if you&#8217;re like me and had no idea this existed, you&#8217;ll have quite some reading to catch up to. It&#8217;s mostly about Windows 7 and the new graphics APIs (Direct2D, DirectWrite, etc.) but it&#8217;s interesting nonetheless.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scriptionary.com/2009/09/16/directx-developer-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>August 2009 DirectX SDK</title>
		<link>http://blog.scriptionary.com/2009/09/10/august-2009-directx-sdk/</link>
		<comments>http://blog.scriptionary.com/2009/09/10/august-2009-directx-sdk/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 15:00:06 +0000</pubDate>
		<dc:creator>Eddy Luten</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[directx]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Win32]]></category>

		<guid isPermaLink="false">http://blog.scriptionary.com/?p=270</guid>
		<description><![CDATA[Yeah, I don&#8217;t have the DX11 logo yet&#8230;Today the August 2009 DirectX SDK was released on MSDN, strangely enough the August SDK was released in September.
This release contains the first official release of Direct3D 11 (RTM), which was previously only a technical preview. According to the release notes, this version of Direct3D 11 will only [...]]]></description>
			<content:encoded><![CDATA[<p><span style="text-align:center;float: right;margin-left:5px;border:1px solid silver;padding:3px;"><img src="http://blog.scriptionary.com/wp-content/uploads/2009/03/directx10_logo.png" alt="DirectX 10 Logo" title="DirectX 10 Logo" style="border: none;" /><br /><small>Yeah, I don&#8217;t have the DX11 logo yet&hellip;</small></span>Today the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=b66e14b8-8505-4b17-bf80-edb2df5abad4&#038;displaylang=en" target="_blank">August 2009 DirectX SDK</a> was released on MSDN, strangely enough the August SDK was released in September.</p>
<p>This release contains the first official release of Direct3D 11 (RTM), which was previously only a technical preview. According to the release notes, this version of Direct3D 11 will only work on the RTM version of Windows 7, not on the RC and Beta versions. So I guess only vendors and MSDN subscribers will be able to develop software until Windows 7 hits the retail market.</p>
<p>There&#8217;s also the issue of pure Direct3D 11 hardware not being sold yet but that should be right around the corner if the SDK is here.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scriptionary.com/2009/09/10/august-2009-directx-sdk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Don&#8217;t use Turbo C, that&#8217;d be great yeah..</title>
		<link>http://blog.scriptionary.com/2009/04/29/dont-use-turbo-c-thatd-be-great-yeah/</link>
		<comments>http://blog.scriptionary.com/2009/04/29/dont-use-turbo-c-thatd-be-great-yeah/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 06:50:57 +0000</pubDate>
		<dc:creator>Eddy Luten</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bad thing]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[Win32]]></category>

		<guid isPermaLink="false">http://blog.scriptionary.com/?p=177</guid>
		<description><![CDATA[I don&#8217;t know how many times I&#8217;ve ran into people that need help with a piece of C code that should run perfectly fine but for some reason it just doesn&#8217;t. Of course, after much going back and forward, you find out that the person you&#8217;re trying to help is using Borland&#8217;s Turbo C compiler [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.scriptionary.com/wp-content/uploads/2009/04/boxshot-96x100.jpg" alt="Turbo C++" title="Turbo C++" style="float: right; margin-left: 5px; border: none;" />I don&#8217;t know how many times I&#8217;ve ran into people that need help with a piece of C code that should run perfectly fine but for some reason it just doesn&#8217;t. Of course, after much going back and forward, you find out that the person you&#8217;re trying to help is using Borland&#8217;s Turbo C compiler version 2.01, released 20 years ago in 1989..</p>
<p>While the compiler is freely download-able from several websites labeled as an &#8220;Antique&#8221;, it&#8217;s really not a great tool to start programming with on modern systems. If you really (really) want to use Turbo C, buy an old 286 and go at it but don&#8217;t use your Intel Core i7. Here&#8217;s why. <small>PS, this also applies to Turbo C++</small></p>
<p><strong style="font-size: 24px;">1.</strong> The compiler is <em title="Holy freaking excrement, this number should really tell you something">20</em> years old, it won&#8217;t support the current C99 standard so many things you might have learned, you now have to unlearn in order to get the program working.</p>
<p><strong style="font-size: 24px;">2.</strong> Turbo C is an MS-DOS compiler, chances are if you are learning C now, you have never used DOS in your life; there&#8217;s no reason to go back, nostalgia doesn&#8217;t apply to DOS. Furthermore, Windows does not support DOS programs from the 80&#8217;s, so you would have to emulate DOS in order to get your programs working properly.</p>
<p><strong style="font-size: 24px;">3.</strong> There are many free compilers available that are 100% compatible with today&#8217;s hardware and not bound by any limitations. Even if your Turbo C compiler is 32 bit compatible, it&#8217;s not a great match for your 64 bit CPU and Operating System.</p>
<p><strong style="font-size: 24px;">4.</strong> You&#8217;re stuck on the command line interface with no way out. Even if you make the best command line program for DOS, nobody besides yourself will ever want to use it. Converting your program to Win32 requires a new compiler that will yell at you for using coding practices from 1989 and break your program.</p>
<p>In other words, if the following code compiles without warning, you know you need another compiler.</p>
<pre>#include &lt;stdio.h&gt;

main()
{
    printf("Hello, World!");
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.scriptionary.com/2009/04/29/dont-use-turbo-c-thatd-be-great-yeah/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>March 2009 DirectX SDK</title>
		<link>http://blog.scriptionary.com/2009/03/24/march-2009-directx-sdk/</link>
		<comments>http://blog.scriptionary.com/2009/03/24/march-2009-directx-sdk/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 18:02:32 +0000</pubDate>
		<dc:creator>Eddy Luten</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[directx]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Win32]]></category>

		<guid isPermaLink="false">http://blog.scriptionary.com/?p=136</guid>
		<description><![CDATA[OK, so only one day after I publicly whined &#8220;where is the DX SDK?&#8221; Microsoft has released the March 2009 version. Go figure. Get it here at DirectX 2009 SDK @ MS Download.
Also, there seems to be some interesting stuff bundled with this version of the SDK, here&#8217;s my take on the important stuff:

Technical Previews

Direct2D
DirectWrite
DXGI [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.scriptionary.com/wp-content/uploads/2009/03/directx10_logo.png" alt="DirectX 10 Logo" title="DirectX 10 Logo" style="float: right; margin-left: 5px; border: none;" />OK, so only <em>one</em> day after I publicly whined <a href="http://blog.scriptionary.com/2009/03/23/wheres-the-directx-sdk/">&ldquo;where is the DX SDK?&rdquo;</a> Microsoft has released the March 2009 version. Go figure. Get it here at <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=24a541d6-0486-4453-8641-1eee9e21b282&#038;displaylang=en" target="_blank">DirectX 2009 SDK @ MS Download</a>.</p>
<p>Also, there seems to be some interesting stuff bundled with this version of the SDK, here&#8217;s my take on the important stuff:</p>
<ul>
<li><strong>Technical Previews</strong>
<ul>
<li>Direct2D</li>
<li>DirectWrite</li>
<li>DXGI 1.1</li>
</ul>
</li>
<li>PIX works on the Windows 7 beta</li>
<li>Several updated samples</li>
</ul>
<p>Check out the details at the link posted above. Also, it doesn&#8217;t look like the online MSDN library docs have been updated yet but usually that happens pretty quickly.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scriptionary.com/2009/03/24/march-2009-directx-sdk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Where&#8217;s the DirectX SDK</title>
		<link>http://blog.scriptionary.com/2009/03/23/wheres-the-directx-sdk/</link>
		<comments>http://blog.scriptionary.com/2009/03/23/wheres-the-directx-sdk/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 15:20:14 +0000</pubDate>
		<dc:creator>Eddy Luten</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[directx]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Win32]]></category>

		<guid isPermaLink="false">http://blog.scriptionary.com/?p=103</guid>
		<description><![CDATA[I wonder what kind of development is going on at Microsoft as there hasn&#8217;t been an update for the DirectX SDK since November of 2008. This is quite out-of-sync with their regular release schedule of a new SDK every 3 months.
My guess would be that with the release date of Windows 7 inching closer, the [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.scriptionary.com/wp-content/uploads/2009/03/directx10_logo.png" alt="DirectX 10 Logo" title="DirectX 10 Logo" style="float: right; margin-left: 5px; border: none;"/>I wonder what kind of development is going on at Microsoft as there hasn&#8217;t been an update for the DirectX SDK since November of 2008. This is quite out-of-sync with their regular release schedule of a new SDK every 3 months.</p>
<p>My guess would be that with the release date of Windows 7 inching closer, the development for DirectX 11 has to be completed soon. Of course this is 100% speculation.</p>
<p>If anyone has a clue, let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scriptionary.com/2009/03/23/wheres-the-directx-sdk/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Hungarian Notation: What to do?</title>
		<link>http://blog.scriptionary.com/2009/01/21/hungarian-notation-what-to-do/</link>
		<comments>http://blog.scriptionary.com/2009/01/21/hungarian-notation-what-to-do/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 22:52:17 +0000</pubDate>
		<dc:creator>Eddy Luten</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hungarian notation]]></category>
		<category><![CDATA[visual basic]]></category>
		<category><![CDATA[Win32]]></category>

		<guid isPermaLink="false">http://blog.scriptionary.com/?p=63</guid>
		<description><![CDATA[Edit: FYI, by Hungarian notation, I mean Systems Hungarian such as bIsSucky.
It seems I&#8217;m in some kind of pickle. For some reason, two of the programmers at the company I work for still use Hungarian notation.
In case you don&#8217;t know what that is, in short: Hungarian notation prefixes an abbreviation of either the data type [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Edit:</strong> FYI, by Hungarian notation, I mean Systems Hungarian such as <code>bIsSucky</code>.</p>
<p>It seems I&#8217;m in some kind of <a href="http://www.phrases.org.uk/meanings/196000.html" target="_blank" title="Yes it's a phrase, click here to see the meaning">pickle</a>. For some reason, two of the programmers at the company I work for still use <a href="http://en.wikipedia.org/wiki/Hungarian_notation" target="_blank">Hungarian notation</a>.</p>
<p>In case you don&#8217;t know what that is, in short: Hungarian notation prefixes an abbreviation of either the data type or purpose of the variable to its name. For example, Microsoft&#8217;s WINAPI still uses it, hence we have things such as hInstance, nShow, szCompany, etc. So it&#8217;s quite ugly and confusing to the programmer.</p>
<p>Yet these two programmers still cling to their old ways and <em>refuse</em> to give up on this ancient method. Even in VB.NET. One of these programmers happens to be <a href="http://blog.scriptionary.com/2008/10/30/aspnet-name-ambiguous-by-nature/">Joe the Programmer</a> mentioned before, go figure.</p>
<p>I was asked by one of them &#8220;Why <em>not</em> use Hungarian notation?&#8221; In case you dind&#8217;t know, dear reader, the name of the variable should give away the data type, use <a href="http://en.wikipedia.org/wiki/CamelCase" target="_blank">UpperCamelCase</a> and logic for your naming conventions. Turns out, UpperCamelCase is a programming convention in this company, so why we were arguing, I don&#8217;t know. Now if only logic were a convention, we&#8217;d be set.</p>
<p>But it was like pissing against the wind as neither them nor I were persuaded in the end. <strong>How would you persuade a person to switch to a different methodology?</strong> By them using Hungarian notation, people who will eventually take over their source code will want to shoot themselves.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scriptionary.com/2009/01/21/hungarian-notation-what-to-do/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DirectX SDK November 2008</title>
		<link>http://blog.scriptionary.com/2008/11/06/directx-sdk-november-2008/</link>
		<comments>http://blog.scriptionary.com/2008/11/06/directx-sdk-november-2008/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 15:46:28 +0000</pubDate>
		<dc:creator>Eddy Luten</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[directx]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Win32]]></category>

		<guid isPermaLink="false">http://blog.scriptionary.com/?p=58</guid>
		<description><![CDATA[Just released, get it while it&#8217;s hot.
It doesn&#8217;t look like there are any DirectX 11 previews in there. Is it my imagination or were those supposed to be in it? Thanks Aras for the confirmation that the DirectX 11 preview are actually in there.
EDIT2: The new DirectX redistributable was released today.
]]></description>
			<content:encoded><![CDATA[<p>Just released, <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=5493f76a-6d37-478d-ba17-28b1cca4865a&#038;DisplayLang=en">get it while it&#8217;s hot</a>.</p>
<p><del>It doesn&#8217;t look like there are any DirectX 11 previews in there. Is it my imagination or were those supposed to be in it?</del> Thanks Aras for the confirmation that the DirectX 11 preview <strong>are</strong> actually in there.</p>
<p>EDIT2: The new DirectX redistributable <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=886acb56-c91a-4a8e-8bb8-9f20f1244a8e&#038;DisplayLang=en">was released today</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scriptionary.com/2008/11/06/directx-sdk-november-2008/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>What if .NET would be Discontinued?</title>
		<link>http://blog.scriptionary.com/2008/11/03/what-if-net-would-be-discontinued/</link>
		<comments>http://blog.scriptionary.com/2008/11/03/what-if-net-would-be-discontinued/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 02:09:45 +0000</pubDate>
		<dc:creator>Eddy Luten</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Win32]]></category>

		<guid isPermaLink="false">http://blog.scriptionary.com/?p=53</guid>
		<description><![CDATA[I&#8217;m not known as a person who particularly likes the .NET framework but I still have to use it. The .NET Framework is basically a massive library of general purpose functions, much like the Standard Library is to C or the Standard Template Library is to C++.
But what if it all would be discontinued?
It&#8217;s not [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.scriptionary.com/wp-content/uploads/2008/11/microsoftnet-logo-100x54.jpg" alt="" title="Microsoft .NET Logo" width="100" height="54" style="float: right; margin: 5px;" />I&#8217;m not known as a person who particularly likes the .NET framework but I still have to use it. The .NET Framework is basically a massive library of general purpose functions, much like the Standard Library is to C or the Standard Template Library is to C++.</p>
<p>But what if it all would be discontinued?</p>
<p>It&#8217;s not an impossibility and rather likely considering Microsoft&#8217;s track-record. The millions of applications, libraries and websites created with .NET would be useless.</p>
<p>I&#8217;ve been *fortunate* enough to be part of a VB6 (CGI) to ASP.NET (VB) conversion team and, trust me when I say this, <strong>you don&#8217;t want to be part of such an effort</strong>. These conversions require truckloads of time and money, and if you work for a mid-sized to large corporation, this could <em>easily</em> lead into the millions of dollars.</p>
<p><img src="http://blog.scriptionary.com/wp-content/uploads/2008/11/foxpro_logo.gif" alt="" title="Microsoft Visual FoxPro Logo" width="70" height="75" style="float: left; margin: 5px;" />Now imagine all of your code obsolete. Everything you&#8217;ve coded since .NET 1.0. What would you do? Let&#8217;s take FoxPro as an example. Microsoft bought FoxPro in 1992 and released a couple of versions under the &#8220;Visual&#8221;-family of products. The last version was released in 2007 and a statement of Microsoft suggests that this is the last version.</p>
<p>No migration tools to any other language are being provided.</p>
<p>Another product would be J#, which will be retired in 2015. Keep in mind that J# is a fairly recent product and was only released with Visual Studio.NET.</p>
<p>How far will .NET go before a turning point is reached? Consider that .NET was first released publicly in 2002 and will be a decade old in less than four years. Knowing Microsoft, the end is quite possibly much nearer than you think.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scriptionary.com/2008/11/03/what-if-net-would-be-discontinued/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2010 CTP Released</title>
		<link>http://blog.scriptionary.com/2008/10/30/visual-studio-2010-ctp-released/</link>
		<comments>http://blog.scriptionary.com/2008/10/30/visual-studio-2010-ctp-released/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 21:35:53 +0000</pubDate>
		<dc:creator>Eddy Luten</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Win32]]></category>

		<guid isPermaLink="false">http://blog.scriptionary.com/?p=50</guid>
		<description><![CDATA[Maybe this news is a bit old but Visual Studio 2010 CTP was released, you can get it at the following location:
Visual Studio 2010 CTP Site
For you who don&#8217;t know, CTP means Community Technology Preview and can almost be regarded as a public beta version.
For C/C++ developers, you can find more info on the next [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.scriptionary.com/wp-content/uploads/2008/10/visual-studio-2010.jpg" alt="" title="Visual Studio 2010 CTP Banner" width="486" height="47" style="border: none;" />Maybe this news is a bit old but Visual Studio 2010 CTP was released, you can get it at the following location:</p>
<p><a href="https://connect.microsoft.com/VisualStudio/content/content.aspx?ContentID=9790">Visual Studio 2010 CTP Site</a></p>
<p>For you who don&#8217;t know, CTP means Community Technology Preview and can almost be regarded as a public beta version.</p>
<p>For C/C++ developers, you can find more info on the next version of Visual C++ 2010 on the <a href="http://blogs.msdn.com/vcblog/archive/2008/10/28/visual-studio-2010-ctp-released.aspx">Visual C++ Team Blog</a>. I&#8217;m glad to see that IntelliSense for VC++ is being improved since in 2008/2005 it&#8217;s a quite horrible technology. This version also has support for some C++0x functionality.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scriptionary.com/2008/10/30/visual-studio-2010-ctp-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET &#8211; Name Ambiguous by Nature?</title>
		<link>http://blog.scriptionary.com/2008/10/30/aspnet-name-ambiguous-by-nature/</link>
		<comments>http://blog.scriptionary.com/2008/10/30/aspnet-name-ambiguous-by-nature/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 16:15:22 +0000</pubDate>
		<dc:creator>Eddy Luten</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Win32]]></category>

		<guid isPermaLink="false">http://blog.scriptionary.com/?p=48</guid>
		<description><![CDATA[First of all, I have to mention that this colleague has been a C and ASM programmer for most of his lengthy professional career, I won&#8217;t mention his name here but let&#8217;s just call him &#8220;Joe the Programmer&#8221; in light of current braindead naming schemes.
Joe the Programmer recently started programming with the .NET framework but [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.scriptionary.com/wp-content/uploads/2008/10/aspnet.png" alt="The ASP.NET logo" title="aspnet" width="108" height="44" style="margin: 5px; float: right;" />First of all, I have to mention that this colleague has been a C and ASM programmer for most of his lengthy professional career, I won&#8217;t mention his name here but let&#8217;s just call him &#8220;Joe the Programmer&#8221; in light of current braindead naming schemes.</p>
<p>Joe the Programmer recently started programming with the .NET framework but yesterday came to a stop. When he was asked to help out with .NET development using ASP.NET, he took some time and to his amazement couldn&#8217;t find the ASP.NET programming language in the Visual Studio &#8220;new project&#8221; dialog.</p>
<p>At first this made me chuckle and I brushed it off, but then I realized he was <strong>correct to assume</strong> that there should be an ASP.NET programming language. After all, there used to be an ASP programming language although it looked suspiciously much like BASIC.</p>
<p>After explaining that ASP.NET is not as much a language but a technology, he went on his way and continued programming.</p>
<p>This all made me think that maybe the name, ASP.NET, is ambiguous, vague and might be a concept difficult to grasp for guys like Joe the Programmer. I just hope that he has a concept of OOP to go along with his newly found knowledge of ASP.NET.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scriptionary.com/2008/10/30/aspnet-name-ambiguous-by-nature/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CriticalSection wrapper class</title>
		<link>http://blog.scriptionary.com/2008/08/22/criticalsection-wrapper-class/</link>
		<comments>http://blog.scriptionary.com/2008/08/22/criticalsection-wrapper-class/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 15:09:39 +0000</pubDate>
		<dc:creator>Eddy Luten</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[posix]]></category>
		<category><![CDATA[pthreads]]></category>
		<category><![CDATA[snippets]]></category>
		<category><![CDATA[Win32]]></category>

		<guid isPermaLink="false">http://blog.scriptionary.com/?p=41</guid>
		<description><![CDATA[What: A C++ wrapper around both WINAPI (Microsoft Windows) and PThreads (POSIX threads) functionality.
Why: To abstract cross platform functionality.
Remarks: On  windows, CRITICAL_SECTION objects cannot be shared cross-process. This means that the class is tied to your application or DLL process. Comments are in Doxygen/Javadoc style.


#ifdef _WIN32
#include &#60;windows.h&#62;
#else
#include &#60;unistd.h&#62;
#include &#60;pthread.h&#62;
#endif

/**
 * @class A wrapper-class around [...]]]></description>
			<content:encoded><![CDATA[<p><strong>What:</strong> A C++ wrapper around both WINAPI (Microsoft Windows) and PThreads (POSIX threads) functionality.<br />
<strong>Why:</strong> To abstract cross platform functionality.<br />
<strong>Remarks:</strong> On  windows, CRITICAL_SECTION objects cannot be shared cross-process. This means that the class is tied to your application or DLL process. Comments are in Doxygen/Javadoc style.<br />
<span id="more-41"></span></p>
<pre style="overflow: auto; height: 400px; background-color: #EFEFEF; margin: 5px; padding: 5px; border: 1px solid #CCC;">
#ifdef _WIN32
#include &lt;windows.h&gt;
#else
#include &lt;unistd.h&gt;
#include &lt;pthread.h&gt;
#endif

/**
 * @class A wrapper-class around Critical Section functionality, WIN32 &#038; PTHREADS.
 */
class CriticalSection
{
public:
	/**
	 * @brief CriticalSection class constructor.
	 */
	explicit CriticalSection(void)
	{
	#ifdef _WIN32
		if (0 == InitializeCriticalSectionAndSpinCount(&#038;this-&gt;m_cSection, 0))
			throw("Could not create a CriticalSection");
	#else
		if (pthread_mutex_init(&#038;this-&gt;m_cSection, NULL) != 0)
			throw("Could not create a CriticalSection");
	#endif
	}; // CriticalSection()

	/**
	 * @brief CriticalSection class destructor
	 */
	~CriticalSection(void)
	{
		this-&gt;WaitForFinish(); // acquire ownership
	#ifdef _WIN32
		DeleteCriticalSection(&#038;this-&gt;m_cSection);
	#else
		pthread_mutex_destroy(&#038;this-&gt;m_cSection);
	#endif
	}; // ~CriticalSection()

	/**
	 * @fn void WaitForFinish(void)
	 * @brief Waits for the critical section to unlock.
	 * This function puts the waiting thread in a waiting
	 * state.
	 * @see TryEnter()
	 * @return void
	 */
	void WaitForFinish(void)
	{
		while(!this-&gt;TryEnter())
		{
		#ifdef _WIN32
			Sleep(1); // put waiting thread to sleep for 1ms
		#else
			usleep(1000); // put waiting thread to sleep for 1ms (1000us)
		#endif
		};
	}; // WaitForFinish()

	/**
	 * @fn void Enter(void)
	 * @brief Wait for unlock and enter the CriticalSection object.
	 * @see TryEnter()
	 * @return void
	 */
	void Enter(void)
	{
		this-&gt;WaitForFinish(); // acquire ownership
	#ifdef _WIN32
		EnterCriticalSection(&#038;this-&gt;m_cSection);
	#else
		pthread_mutex_lock(&#038;this-&gt;m_cSection);
	#endif
	}; // Enter()

	/**
	 * @fn void Leave(void)
	 * @brief Leaves the critical section object.
	 * This function will only work if the current thread
	 * holds the current lock on the CriticalSection object
	 * called by Enter()
	 * @see Enter()
	 * @return void
	 */
	void Leave(void)
	{
	#ifdef _WIN32
		LeaveCriticalSection(&#038;this-&gt;m_cSection);
	#else
		pthread_mutex_unlock(&#038;this-&gt;m_cSection);
	#endif
	}; // Leave()

	/**
	 * @fn bool TryEnter(void)
	 * @brief Attempt to enter the CriticalSection object
	 * @return bool(true) on success, bool(false) if otherwise
	 */
	bool TryEnter(void)
	{
		// Attempt to acquire ownership:
	#ifdef _WIN32
		return(TRUE == TryEnterCriticalSection(&#038;this-&gt;m_cSection));
	#else
		return(0 == pthread_mutex_trylock(&#038;this-&gt;m_cSection));
	#endif
	}; // TryEnter()

private:
#ifdef _WIN32
	CRITICAL_SECTION m_cSection; //!&lt; internal system critical section object (windows)
#else
	pthread_mutex_t m_cSection; //!&lt; internal system critical section object (*nix)
#endif
}; // class CriticalSection
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.scriptionary.com/2008/08/22/criticalsection-wrapper-class/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>&#8220;Don&#8217;t worry, it&#8217;s just a warning.&#8221;</title>
		<link>http://blog.scriptionary.com/2008/08/15/dont-worry-its-just-a-warning/</link>
		<comments>http://blog.scriptionary.com/2008/08/15/dont-worry-its-just-a-warning/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 15:34:28 +0000</pubDate>
		<dc:creator>Eddy Luten</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bad thing]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Win32]]></category>

		<guid isPermaLink="false">http://blog.scriptionary.com/?p=36</guid>
		<description><![CDATA[I don&#8217;t like Visual Basic, yet in many Microsoft shops, VB is still being used especially in combination with ASP.NET. The problem with Visual Basic is that it&#8217;s not very strongly typed. Conventions are often thrown out of the window and Senior VB developers often hold their seniority as experience which, is more fiction than [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t like Visual Basic, yet in many Microsoft shops, VB is still being used especially in combination with ASP.NET. The problem with Visual Basic is that it&#8217;s not very strongly typed. Conventions are often thrown out of the window and Senior VB developers often hold their seniority as experience which, is more fiction than fact.</p>
<p>How many more times do I have to see <code>Function</code>s which don&#8217;t return anything and should have been declared as <code>Subs</code>.</p>
<p>Or: <code>Variable 'XYZ' is used before it has been assigned a value.</code><br />
Or: <code>Variable declaration without an 'As' clause; type of Object assumed.</code></p>
<p><img src="http://blog.scriptionary.com/wp-content/uploads/2008/08/vb.png" alt="Visual Basic Errors" title="VB Errors and Warnings" style="float: right; margin-left: 5px;" />Ugh. You&#8217;d think that people with 15 years of development experience wouldn&#8217;t dismiss this kind of stuff and just do the right thing.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scriptionary.com/2008/08/15/dont-worry-its-just-a-warning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting there</title>
		<link>http://blog.scriptionary.com/2008/03/23/getting-there/</link>
		<comments>http://blog.scriptionary.com/2008/03/23/getting-there/#comments</comments>
		<pubDate>Sun, 23 Mar 2008 21:30:58 +0000</pubDate>
		<dc:creator>Eddy Luten</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[graphics programming]]></category>
		<category><![CDATA[Win32]]></category>

		<guid isPermaLink="false">http://blog.scriptionary.com/2008/03/23/getting-there/</guid>
		<description><![CDATA[Scriptionary is growing again. Several articles have been added to the Wiki and a few articles are still coming up. Notably, two articles have been recovered from the old site: Got a minute? Refactor your code and CPUs Maximum Throughput and Overhead which haven&#8217;t been altered from their original formats.
Besides the old, new things have [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://scriptionary.com/">Scriptionary</a> is growing again. Several articles have been added to the Wiki and a few articles are still coming up. Notably, two articles have been recovered from the old site: <a href="http://scriptionary.com/Got_a_minute%3F_Refactor_your_code">Got a minute? Refactor your code</a> and <a href="http://scriptionary.com/CPUs_Maximum_Throughput_and_Overhead">CPUs Maximum Throughput and Overhead</a> which haven&#8217;t been altered from their original formats.</p>
<p>Besides the old, new things have been introduced to Scriptionary such as the <a href="http://scriptionary.com/Creating_a_Window_Wrapper_Class" title="Creating a Window Wrapper Class">Creating a Window Wrapper Class</a> and <a href="http://scriptionary.com/Getting_Screen_Modes" title="Getting Screen Modes">Getting Screen Modes</a> articles for Microsoft Windows Graphics Programmers.</p>
<p><strong>Edit:</strong> Additionally, you can keep track of the pages by visiting the <a href="http://scriptionary.com/Special:Allpages">&#8220;All Pages&#8221; page</a> on the wiki.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scriptionary.com/2008/03/23/getting-there/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
