<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ShawnVN&amp;#39;s Blog - All Comments</title><link>http://weblogs.asp.net/savanness/default.aspx</link><description>Programming for the Windows Tablet Foundation</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Thinking about Code   &amp;raquo; Toolbox Stupidity - Visual Studio 2003</title><link>http://weblogs.asp.net/savanness/archive/2003/04/10/5352.aspx#7054163</link><pubDate>Tue, 21 Apr 2009 20:39:06 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7054163</guid><dc:creator>Thinking about Code   » Toolbox Stupidity - Visual Studio 2003</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Thinking about Code &amp;nbsp; &amp;amp;raquo; Toolbox Stupidity - Visual Studio 2003&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7054163" width="1" height="1"&gt;</description></item><item><title>public MattBerther : ISerializable  &amp;raquo; Blog Archive   &amp;raquo; How to install a component to the VS.NET toolbox</title><link>http://weblogs.asp.net/savanness/archive/2003/04/24/6012.aspx#766646</link><pubDate>Tue, 31 Oct 2006 02:19:35 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:766646</guid><dc:creator>public MattBerther : ISerializable  » Blog Archive   » How to install a component to the VS.NET toolbox</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.mattberther.com/?p=386"&gt;http://www.mattberther.com/?p=386&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=766646" width="1" height="1"&gt;</description></item><item><title>re: WinFX Ink: Fun with VisualBrush</title><link>http://weblogs.asp.net/savanness/archive/2006/02/02/437248.aspx#438344</link><pubDate>Thu, 16 Feb 2006 03:42:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:438344</guid><dc:creator>网址</dc:creator><description>Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=438344" width="1" height="1"&gt;</description></item><item><title>re: WinFX Ink: Fun with VisualBrush</title><link>http://weblogs.asp.net/savanness/archive/2006/02/02/437248.aspx#438343</link><pubDate>Thu, 16 Feb 2006 03:40:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:438343</guid><dc:creator>博客</dc:creator><description>I think it&amp;#39;s very fun with VisualBrush .:)&lt;br /&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=438343" width="1" height="1"&gt;</description></item><item><title>re: Physics Illustrator Hints</title><link>http://weblogs.asp.net/savanness/archive/2005/05/22/408286.aspx#410389</link><pubDate>Sat, 04 Jun 2005 22:27:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:410389</guid><dc:creator>Gina</dc:creator><description>To export the animation? I guess I&amp;#39;m not understanding. Okay to see the animation phys ill saves it as a .physi file say I would like to save this movie as a Quicktime .mov and upload it to a website how do I do this? Thanks, Gina&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=410389" width="1" height="1"&gt;</description></item><item><title>re: Physics Illustrator Hints</title><link>http://weblogs.asp.net/savanness/archive/2005/05/22/408286.aspx#409401</link><pubDate>Fri, 27 May 2005 20:37:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:409401</guid><dc:creator>Shawn A. Van Ness</dc:creator><description>[Alt+PrtScn]?  ;-)&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=409401" width="1" height="1"&gt;</description></item><item><title>re: Physics Illustrator Hints</title><link>http://weblogs.asp.net/savanness/archive/2005/05/22/408286.aspx#408750</link><pubDate>Wed, 25 May 2005 01:59:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:408750</guid><dc:creator>Gina</dc:creator><description>I just got my Tablet PC today and I downloaded Physics Illustrator which is very cool, but I don&amp;#39;t see any way to export these files for others to see? Do you know of a way? Thanks, Gina www.nanogirl.com&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=408750" width="1" height="1"&gt;</description></item><item><title>re:A Bug Story</title><link>http://weblogs.asp.net/savanness/archive/2005/01/13/352542.aspx#399476</link><pubDate>Sun, 10 Apr 2005 13:51:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:399476</guid><dc:creator>TrackBack</dc:creator><description>^_^,Pretty Good!&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=399476" width="1" height="1"&gt;</description></item><item><title>A very useful trick for working with the DTE</title><link>http://weblogs.asp.net/savanness/archive/2003/04/24/6012.aspx#375930</link><pubDate>Fri, 18 Feb 2005 10:20:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:375930</guid><dc:creator>TrackBack</dc:creator><description>&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=375930" width="1" height="1"&gt;</description></item><item><title>re: A Bug Story</title><link>http://weblogs.asp.net/savanness/archive/2005/01/13/352542.aspx#355073</link><pubDate>Tue, 18 Jan 2005 10:40:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:355073</guid><dc:creator>John</dc:creator><description>Sorry for all the typos. There was just one too many, so I&amp;#39;m forced to post again or else I&amp;#39;ll lose sleep. :P&lt;br /&gt;&lt;br /&gt;After much debate it is the finding of this committee that the bug is in get_InstalledPrinters. get_InstalledPrinters does not need to initialise num2 to zero for the purposes of the first call to SafeNativeMethods.EnumPrinters. However, regardless of whether num2 is or is not initialised before the first call to EnumPrinters, get_InstalledPrinters should not be making assumptions as to num2&amp;#39;s value without first ensuring that EnumPrinters has either succeeded or has failed with ERROR_INSUFFICIENT_BUFFER. If EnumPrinters fails with any other error then the value of num2 should be assumed &amp;#39;undefined&amp;#39;, and if EnumPrinters succeeds at the first call then the value of num2 is irrelevant, although in that case you could assume it to be zero.&lt;br /&gt;&lt;br /&gt;get_InstalledPrinters should probably be implemented something like this (not that I&amp;#39;m comfortable with the notion of throwing exceptions from property getters): &lt;br /&gt;&lt;br /&gt;// ... &lt;br /&gt;&lt;br /&gt;int num2; &lt;br /&gt;int num3; &lt;br /&gt;int num1 = SafeNativeMethods.EnumPrinters( 6, null, num4, IntPtr.Zero, 0, out num2, out num3 ); &lt;br /&gt;&lt;br /&gt;if ( num1 != 0 ) { &lt;br /&gt;&lt;br /&gt;// first call succeeded (must have found no printers). &lt;br /&gt;&lt;br /&gt;Debug.Assert( num3 == 0, &amp;quot;There are no printers.&amp;quot; ); &lt;br /&gt;Debug.Assert( num2 == 0, &amp;quot;No buffer necessary.&amp;quot; ); &lt;br /&gt;&lt;br /&gt;return new string[ 0 ]; &lt;br /&gt;&lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;// first call failed.&lt;br /&gt;&lt;br /&gt;if ( Marshal.GetLastWin32Error() != ERROR_INSUFFICIENT_BUFFER ) { &lt;br /&gt;&lt;br /&gt;// first call failed for reasons other than insufficient buffer. &lt;br /&gt;&lt;br /&gt;// ( I&amp;#39;m not sure what exception gets thrown here, a check for &lt;br /&gt;// RPC_S_SERVER_UNAVAILABLE may be in order. ) &lt;br /&gt;&lt;br /&gt;throw new Win32Exception(); &lt;br /&gt;&lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;// first call failed because of insufficient buffer.&lt;br /&gt;&lt;br /&gt;IntPtr ptr1 = Marshal.AllocCoTaskMem( num2 ); &lt;br /&gt;num1 = SafeNativeMethods.EnumPrinters( 6, null, num4, ptr1, num2, out num2, out num3 ); &lt;br /&gt;&lt;br /&gt;if ( num1 == 0 ) { &lt;br /&gt;&lt;br /&gt;// second call failed for some reason. &lt;br /&gt;&lt;br /&gt;Marshal.FreeCoTaskMem( ptr1 ); &lt;br /&gt;throw new Win32Exception(); &lt;br /&gt;&lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;// EnumPrinters succeeded.&lt;br /&gt;&lt;br /&gt;textArray1 = new string[ num3 ]; &lt;br /&gt;&lt;br /&gt;// ... &lt;br /&gt;&lt;br /&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=355073" width="1" height="1"&gt;</description></item></channel></rss>