<?xml version="1.0" encoding="utf-8"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>DaniWeb IT Discussion Community</title>
		<link>http://www.daniweb.com/forums/</link>
		<description>Tech support, programming, web development, and internet marketing community. Forums to get free computer help and support.</description>
		<language>en-US</language>
		<lastBuildDate>Sat, 05 Dec 2009 01:21:04 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.daniweb.com/alphaimages/misc/rss.jpg</url>
			<title>DaniWeb IT Discussion Community</title>
			<link>http://www.daniweb.com/forums/</link>
		</image>
		<item>
			<title>Code Snippet Fast Animation with the Windows GDI</title>
			<link>http://www.daniweb.com/code/snippet241875.html</link>
			<pubDate>Fri, 27 Nov 2009 20:15:57 GMT</pubDate>
			<description><![CDATA[Quite a while ago, I made *this* (http://www.daniweb.com/code/snippet217147.html) snippet. This code is basically the same, except that it adds animation. 
 
This method of blitting is very fast assuming you don't use a surface that's too large. On a 500 x 500 surface, I managed 350fps using only...]]></description>
			<content:encoded><![CDATA[<div>Quite a while ago, I made <a rel="nofollow" class="t" href="http://www.daniweb.com/code/snippet217147.html" target="_blank"><span style="font-weight:bold">this</span></a> snippet. This code is basically the same, except that it adds animation.<br />
<br />
This method of blitting is very fast assuming you don't use a surface that's too large. On a 500 x 500 surface, I managed 350fps using only 0-1% of the cpu. This snippet may appear much slower because of the amount of CPU it's applying to each pixel, but the blitting itself is very fast. Also, don't forget that an average game will only redraw parts of the window that need redrawing, this redraws the whole surface every time.<br />
<br />
So, as long as you know what you're doing, Windows GDI isn't actually that slow :icon_lol:<br />
<br />
<span style="font-weight:bold">Attached executable:<br />
<a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12743" target="_blank">Attachment 12743</a><br />
<br />
Preview Image:<br />
<a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12744" target="_blank">Attachment 12744</a></span><br />
<br />
<span style="font-style:italic">edit: Running in Debug may reduce speed by a lot, set it as Release.</span></div>  <br /> <div style="padding:5px">    <fieldset class="fieldset"> <legend>Attached Images</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/png.gif" alt="File Type: png" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12744&amp;d=1259352832" target="_blank">prev.png</a> (135.8 KB)</td> </tr> </table> </fieldset>   <fieldset class="fieldset"> <legend>Attached Files</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/zip.gif" alt="File Type: zip" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12743&amp;d=1259352692">GDI Animation.zip</a> (32.3 KB)</td> </tr> </table> </fieldset>  </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>William Hemsworth</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241875.html</guid>
		</item>
		<item>
			<title>Word wrap problem</title>
			<link>http://www.daniweb.com/forums/thread240529.html</link>
			<pubDate>Sun, 22 Nov 2009 23:33:58 GMT</pubDate>
			<description><![CDATA[Words aren't wrapping correctly, if one word exceeds the line length, you should wrap it anyway. Problem happens in my Control Panel under 'My Recently Viewed Threads' from this (http://www.daniweb.com/forums/thread240476.html) link.]]></description>
			<content:encoded><![CDATA[<div>Words aren't wrapping correctly, if one word exceeds the line length, you should wrap it anyway. Problem happens in my Control Panel under 'My Recently Viewed Threads' from <a rel="nofollow" class="t" href="http://www.daniweb.com/forums/thread240476.html" target="_blank">this</a> link.</div>  <br /> <div style="padding:5px">    <fieldset class="fieldset"> <legend>Attached Images</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/jpg.gif" alt="File Type: jpg" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12677&amp;d=1258932731" target="_blank">Untitled.jpg</a> (130.1 KB)</td> </tr> </table> </fieldset>   </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum26.html">DaniWeb Community Feedback</category>
			<dc:creator>William Hemsworth</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240529.html</guid>
		</item>
		<item>
			<title>Code Snippet Conversion to any base, with a fixed number of digits</title>
			<link>http://www.daniweb.com/code/snippet234892.html</link>
			<pubDate>Sat, 31 Oct 2009 13:02:01 GMT</pubDate>
			<description><![CDATA[Here's a function that manually converts an integer to any base between 2 and 36, the parameter list is: 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox"...]]></description>
			<content:encoded><![CDATA[<div>Here's a function that manually converts an integer to any base between 2 and 36, the parameter list is:<br />
 <pre style="margin:20px; line-height:13px">void toBase(<br />
&nbsp;  int value,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Integer value to convert<br />
&nbsp;  char *target,&nbsp; &nbsp; &nbsp; &nbsp; // Pointer to a large enough buffer<br />
&nbsp;  int base,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Base (from 2 to 36)<br />
&nbsp;  int fixedDigitCount&nbsp; &nbsp; &nbsp; &nbsp; // The minimum number of digits it must contain<br />
);</pre><br />
This gives me the following output:<div style="margin:20px; margin-top:5px; "> <div class="smallfont" style="margin-bottom:2px">Quote:</div> <table cellpadding="5" cellspacing="0" border="0" width="100%"> <tr> <td class="alt2"> <hr />  Binary with no fixed number of digits (1 to 15):<br />
1 10 11 100 101 110 111 1000 1001 1010 1011 1100 1101 1110 1111<br />
<br />
Binary with 4 fixed digits (1 to 15):<br />
0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111<br />
<br />
<br />
Octal with no fixed number of digits (1 to 15):<br />
1 2 3 4 5 6 7 10 11 12 13 14 15 16 17<br />
<br />
Octal with 3 fixed digits (1 to 15):<br />
001 002 003 004 005 006 007 010 011 012 013 014 015 016 017<br />
<br />
<br />
Decimal with no fixed number of digits (1 to 15):<br />
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15<br />
<br />
Decimal with 4 fixed digits (1 to 15):<br />
0001 0002 0003 0004 0005 0006 0007 0008 0009 0010 0011 0012 0013 0014 0015<br />
<br />
<br />
Hex with no fixed number of digits (1 to 15):<br />
1 2 3 4 5 6 7 8 9 A B C D E F<br />
<br />
Hex with 2 fixed digits (1 to 15):<br />
01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F  <hr /> </td> </tr> </table> </div></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>William Hemsworth</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234892.html</guid>
		</item>
		<item>
			<title>Daniweb running slow</title>
			<link>http://www.daniweb.com/forums/thread228381.html</link>
			<pubDate>Wed, 07 Oct 2009 16:58:57 GMT</pubDate>
			<description><![CDATA[Each page is taking me 20-30 seconds to load, it's pretty frustrating :icon_neutral: 
Is there a reason for this?]]></description>
			<content:encoded><![CDATA[<div>Each page is taking me 20-30 seconds to load, it's pretty frustrating :icon_neutral:<br />
Is there a reason for this?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum26.html">DaniWeb Community Feedback</category>
			<dc:creator>William Hemsworth</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread228381.html</guid>
		</item>
		<item>
			<title>Derren Brown predicts lottery results</title>
			<link>http://www.daniweb.com/forums/thread221857.html</link>
			<pubDate>Wed, 09 Sep 2009 23:01:20 GMT</pubDate>
			<description><![CDATA[Just watched this on TV under an hour ago. 
http://www.youtube.com/watch?v=cHZ2mQczkcg 
 
It was amazing. We switched to the channel the lottery was on, and both were live. He managed to predict the results perfectly. I don't think he used any illusions, but I will be very interested to see how he...]]></description>
			<content:encoded><![CDATA[<div>Just watched this on TV under an hour ago.<br />
<a rel="nofollow" class="t" href="http://www.youtube.com/watch?v=cHZ2mQczkcg" target="_blank">http://www.youtube.com/watch?v=cHZ2mQczkcg</a><br />
<br />
It was amazing. We switched to the channel the lottery was on, and both were live. He managed to predict the results perfectly. I don't think he used any illusions, but I will be very interested to see how he pulled off such a trick when he says how he did on friday.<br />
<br />
Anybody got any ideas as to how you think he did it? :P</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum6.html"><![CDATA[Geeks' Lounge]]></category>
			<dc:creator>William Hemsworth</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread221857.html</guid>
		</item>
	</channel>
</rss>
