<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Code Monkey Codes</title>
	<atom:link href="http://www.codemonkeycodes.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codemonkeycodes.com</link>
	<description>A place where I can post my software projects and occasionally go on about our technologically driven society</description>
	<lastBuildDate>Sun, 07 Aug 2011 20:09:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on My Tweets For The Week Of 2011-08-01 by Nisha</title>
		<link>http://www.codemonkeycodes.com/2011/08/01/my-tweets-for-the-week-of-2011-08-01/comment-page-1/#comment-333</link>
		<dc:creator>Nisha</dc:creator>
		<pubDate>Sun, 07 Aug 2011 20:09:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemonkeycodes.com/2011/08/01/my-tweets-for-the-week-of-2011-08-01/#comment-333</guid>
		<description>Stumbled on your site through Yahoo. You know I am subscribing to your rss feed.</description>
		<content:encoded><![CDATA[<p>Stumbled on your site through Yahoo. You know I am subscribing to your rss feed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on IThumbnailProvider Re-Visited by MFC_Convert</title>
		<link>http://www.codemonkeycodes.com/2010/01/11/ithumbnailprovider-re-visited/comment-page-1/#comment-313</link>
		<dc:creator>MFC_Convert</dc:creator>
		<pubDate>Wed, 06 Jul 2011 21:55:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemonkeycodes.com/?p=264#comment-313</guid>
		<description>Thanks a lot Jeremy. The post was straightforward and easy to adapt to. Great Writeup. 10/10.

-Cheers
MFC convert</description>
		<content:encoded><![CDATA[<p>Thanks a lot Jeremy. The post was straightforward and easy to adapt to. Great Writeup. 10/10.</p>
<p>-Cheers<br />
MFC convert</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ThumbnailProvider and 64bit Operating Systems by Jeremy</title>
		<link>http://www.codemonkeycodes.com/2009/09/30/thumbnailprovider-and-64bit-operating-systems/comment-page-1/#comment-312</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Wed, 06 Jul 2011 17:33:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemonkeycodes.com/?p=196#comment-312</guid>
		<description>You can find the source as part of this post here: http://www.codemonkeycodes.com/2010/01/11/ithumbnailprovider-re-visited/

It doesn&#039;t have the source for the PreviewPane though, if you need that, let me know and I&#039;ll see what I can do.</description>
		<content:encoded><![CDATA[<p>You can find the source as part of this post here: <a href="http://www.codemonkeycodes.com/2010/01/11/ithumbnailprovider-re-visited/" rel="nofollow">http://www.codemonkeycodes.com/2010/01/11/ithumbnailprovider-re-visited/</a></p>
<p>It doesn&#8217;t have the source for the PreviewPane though, if you need that, let me know and I&#8217;ll see what I can do.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ThumbnailProvider and 64bit Operating Systems by MFC_Convert</title>
		<link>http://www.codemonkeycodes.com/2009/09/30/thumbnailprovider-and-64bit-operating-systems/comment-page-1/#comment-311</link>
		<dc:creator>MFC_Convert</dc:creator>
		<pubDate>Wed, 06 Jul 2011 17:24:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemonkeycodes.com/?p=196#comment-311</guid>
		<description>Hi Jeremy,

I am a newbie to Win Prog. I am trying to create a thumbnail and preview for a Custom doc as a part of my project. I was wondering if you could share your Ithumbnailprovider Impl. Would be really helpful. TIA.

-Cheers
MFC_Convert</description>
		<content:encoded><![CDATA[<p>Hi Jeremy,</p>
<p>I am a newbie to Win Prog. I am trying to create a thumbnail and preview for a Custom doc as a part of my project. I was wondering if you could share your Ithumbnailprovider Impl. Would be really helpful. TIA.</p>
<p>-Cheers<br />
MFC_Convert</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on IThumbnailProvider Re-Visited by Jeremy</title>
		<link>http://www.codemonkeycodes.com/2010/01/11/ithumbnailprovider-re-visited/comment-page-1/#comment-310</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Wed, 06 Jul 2011 17:15:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemonkeycodes.com/?p=264#comment-310</guid>
		<description>Paul, I&#039;m glad you ( and Dan ) found this helpful.  It really pleases me that people are still finding this article helpful even a year after I wrote it :)</description>
		<content:encoded><![CDATA[<p>Paul, I&#8217;m glad you ( and Dan ) found this helpful.  It really pleases me that people are still finding this article helpful even a year after I wrote it <img src='http://www.codemonkeycodes.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on IThumbnailProvider Re-Visited by Marko</title>
		<link>http://www.codemonkeycodes.com/2010/01/11/ithumbnailprovider-re-visited/comment-page-1/#comment-308</link>
		<dc:creator>Marko</dc:creator>
		<pubDate>Tue, 05 Jul 2011 14:30:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemonkeycodes.com/?p=264#comment-308</guid>
		<description>Could you give us your code please?

Thanks</description>
		<content:encoded><![CDATA[<p>Could you give us your code please?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on IThumbnailProvider Re-Visited by Paul</title>
		<link>http://www.codemonkeycodes.com/2010/01/11/ithumbnailprovider-re-visited/comment-page-1/#comment-306</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Mon, 04 Jul 2011 15:32:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemonkeycodes.com/?p=264#comment-306</guid>
		<description>Thanks Jeremy! After trying numerous samples to try and get this to work, yours was the first one that actually did - and was very easy to use to boot!

One thing to note for people trying to use this, if it works the result is a completely blank icon (instead of the default blank page icon). I think it was you and Dan having a conversation on another page I found, and a slight variation on your suggested &quot;Hello World&quot; implementation of GetThumbnail is this:

&lt;code&gt;
	*phbmp = NULL; *pdwAlpha = WTSAT_UNKNOWN;

	ULONG_PTR token;
	GdiplusStartupInput input;
	if (Ok == GdiplusStartup(&amp;token, &amp;input, NULL))
	{
		//gcImage.LogBuffer();
		Bitmap * pBitmap = new Bitmap(188, 141);
		if( pBitmap )
		{
			Graphics xGraphics( pBitmap );
			Font xFont( L&quot;Arial&quot;, 12, FontStyleRegular, UnitPoint );
			SolidBrush xBrush( Color( 0, 0, 0) );
			xGraphics.DrawString(L&quot;Hello!&quot;, 6, &amp;xFont, PointF(0.0f,0.0f), &amp;xBrush );				
			Color color(255, 0, 0);
			pBitmap-&gt;GetHBITMAP(color, phbmp);
		}
	}

	GdiplusShutdown(token);

	if( *phbmp != NULL )
		return NOERROR;

	return E_NOTIMPL;
&lt;/code&gt;

Not forgetting to add #include &quot;Gdiplus.h&quot; and link to &quot;gdiplus.lib&quot;.

Interestingly, Dan works at the same company as myself, and sits a few desks away - yet we discovered this page separately and for different purposes.</description>
		<content:encoded><![CDATA[<p>Thanks Jeremy! After trying numerous samples to try and get this to work, yours was the first one that actually did &#8211; and was very easy to use to boot!</p>
<p>One thing to note for people trying to use this, if it works the result is a completely blank icon (instead of the default blank page icon). I think it was you and Dan having a conversation on another page I found, and a slight variation on your suggested &#8220;Hello World&#8221; implementation of GetThumbnail is this:</p>
<p><code><br />
	*phbmp = NULL; *pdwAlpha = WTSAT_UNKNOWN;</p>
<p>	ULONG_PTR token;<br />
	GdiplusStartupInput input;<br />
	if (Ok == GdiplusStartup(&amp;token, &amp;input, NULL))<br />
	{<br />
		//gcImage.LogBuffer();<br />
		Bitmap * pBitmap = new Bitmap(188, 141);<br />
		if( pBitmap )<br />
		{<br />
			Graphics xGraphics( pBitmap );<br />
			Font xFont( L"Arial", 12, FontStyleRegular, UnitPoint );<br />
			SolidBrush xBrush( Color( 0, 0, 0) );<br />
			xGraphics.DrawString(L"Hello!", 6, &amp;xFont, PointF(0.0f,0.0f), &amp;xBrush );<br />
			Color color(255, 0, 0);<br />
			pBitmap-&gt;GetHBITMAP(color, phbmp);<br />
		}<br />
	}</p>
<p>	GdiplusShutdown(token);</p>
<p>	if( *phbmp != NULL )<br />
		return NOERROR;</p>
<p>	return E_NOTIMPL;<br />
</code></p>
<p>Not forgetting to add #include &#8220;Gdiplus.h&#8221; and link to &#8220;gdiplus.lib&#8221;.</p>
<p>Interestingly, Dan works at the same company as myself, and sits a few desks away &#8211; yet we discovered this page separately and for different purposes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on IThumbnailProvider Re-Visited by Jeremy</title>
		<link>http://www.codemonkeycodes.com/2010/01/11/ithumbnailprovider-re-visited/comment-page-1/#comment-265</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Tue, 29 Mar 2011 21:09:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemonkeycodes.com/?p=264#comment-265</guid>
		<description>Ralfn,

Have you tried this on Windows 7? According to Microsoft, it &quot;shouldn&#039;t be written managed&quot;. When is it you set your IStream to null?</description>
		<content:encoded><![CDATA[<p>Ralfn,</p>
<p>Have you tried this on Windows 7? According to Microsoft, it &#8220;shouldn&#8217;t be written managed&#8221;. When is it you set your IStream to null?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on IThumbnailProvider Re-Visited by Ralfn</title>
		<link>http://www.codemonkeycodes.com/2010/01/11/ithumbnailprovider-re-visited/comment-page-1/#comment-260</link>
		<dc:creator>Ralfn</dc:creator>
		<pubDate>Fri, 11 Mar 2011 12:40:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemonkeycodes.com/?p=264#comment-260</guid>
		<description>I successfully implemented a ThumbnailProvider in C# by setting all references to IStream to null and calling GC.Collect after the image has been gathered from the stream. Works like a charm.</description>
		<content:encoded><![CDATA[<p>I successfully implemented a ThumbnailProvider in C# by setting all references to IStream to null and calling GC.Collect after the image has been gathered from the stream. Works like a charm.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on About by Matt Ready</title>
		<link>http://www.codemonkeycodes.com/about/comment-page-1/#comment-243</link>
		<dc:creator>Matt Ready</dc:creator>
		<pubDate>Sun, 16 Jan 2011 00:04:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemonkeycodes.com/?page_id=2#comment-243</guid>
		<description>Hi Jeremy,

Congratulations on sticking with P90x.  I tried that...and I lasted 3 days, but I swear I may get back into it.  Hmm..I am also 30 something and divorced and a geek...but I did play D&amp;D when I was a teen...and I totally would play it again if I had the chance :)  But alas I am too too busy.

Matt</description>
		<content:encoded><![CDATA[<p>Hi Jeremy,</p>
<p>Congratulations on sticking with P90x.  I tried that&#8230;and I lasted 3 days, but I swear I may get back into it.  Hmm..I am also 30 something and divorced and a geek&#8230;but I did play D&amp;D when I was a teen&#8230;and I totally would play it again if I had the chance <img src='http://www.codemonkeycodes.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   But alas I am too too busy.</p>
<p>Matt</p>
]]></content:encoded>
	</item>
</channel>
</rss>

