<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>Creating something from nothing - and knowing it [Developer-friendly virtual file implementation for .NET refined!]</title><link>http://blogs.msdn.com/b/delay/archive/2009/11/16/creating-something-from-nothing-and-knowing-it-developer-friendly-virtual-file-implementation-for-net-refined.aspx</link><description>A couple of weeks ago I wrote about VirtualFileDataObject, my developer-friendly virtual file implementation for .NET and WPF . I followed that up by adding support for asynchronous behavior to improve the user experience during long-running operations</description><dc:language>en</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Creating something from nothing - and knowing it [Developer-friendly virtual file implementation for .NET refined!]</title><link>http://blogs.msdn.com/b/delay/archive/2009/11/16/creating-something-from-nothing-and-knowing-it-developer-friendly-virtual-file-implementation-for-net-refined.aspx#10380015</link><pubDate>Fri, 21 Dec 2012 05:54:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10380015</guid><dc:creator>David Anson</dc:creator><description>&lt;p&gt;Alex Nossov,&lt;/p&gt;
&lt;p&gt;Thanks - I&amp;#39;ll keep that in mind if I ever update this sample in the future!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10380015" width="1" height="1"&gt;</description></item><item><title>re: Creating something from nothing - and knowing it [Developer-friendly virtual file implementation for .NET refined!]</title><link>http://blogs.msdn.com/b/delay/archive/2009/11/16/creating-something-from-nothing-and-knowing-it-developer-friendly-virtual-file-implementation-for-net-refined.aspx#10379936</link><pubDate>Thu, 20 Dec 2012 22:37:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10379936</guid><dc:creator>Alex Nossov</dc:creator><description>&lt;p&gt;Great explanation and example of Drag source! Would highly appreciate to see C# code working as Drop Target with your demo application for Virtual File. Thanks again.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10379936" width="1" height="1"&gt;</description></item><item><title>re: Creating something from nothing - and knowing it [Developer-friendly virtual file implementation for .NET refined!]</title><link>http://blogs.msdn.com/b/delay/archive/2009/11/16/creating-something-from-nothing-and-knowing-it-developer-friendly-virtual-file-implementation-for-net-refined.aspx#10311244</link><pubDate>Tue, 29 May 2012 08:48:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10311244</guid><dc:creator>Basile Cornet</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;Thank you for your answer.&lt;/p&gt;
&lt;p&gt;We may have to change how we handle drag and drop, if I rely on the post by Raymond Chen.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10311244" width="1" height="1"&gt;</description></item><item><title>re: Creating something from nothing - and knowing it [Developer-friendly virtual file implementation for .NET refined!]</title><link>http://blogs.msdn.com/b/delay/archive/2009/11/16/creating-something-from-nothing-and-knowing-it-developer-friendly-virtual-file-implementation-for-net-refined.aspx#10310752</link><pubDate>Sun, 27 May 2012 05:32:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10310752</guid><dc:creator>David Anson</dc:creator><description>&lt;p&gt;Basile Cornet,&lt;/p&gt;
&lt;p&gt;Based on my understanding of your question, the following two links may be helpful:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://social.msdn.microsoft.com/Forums/en-US/csharplanguage/thread/454470ac-a9ea-4e1b-a341-b32672d56495"&gt;social.msdn.microsoft.com/.../454470ac-a9ea-4e1b-a341-b32672d56495&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://stackoverflow.com/questions/2261350/drag-drop-from-form-to-windows-get-drop-destination"&gt;stackoverflow.com/.../drag-drop-from-form-to-windows-get-drop-destination&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, the complete answer may be that it&amp;#39;s not possible to do this in general which is what Raymond Chen seems to suggest here:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/b/oldnewthing/archive/2007/05/07/2453927.aspx"&gt;blogs.msdn.com/.../2453927.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10310752" width="1" height="1"&gt;</description></item><item><title>re: Creating something from nothing - and knowing it [Developer-friendly virtual file implementation for .NET refined!]</title><link>http://blogs.msdn.com/b/delay/archive/2009/11/16/creating-something-from-nothing-and-knowing-it-developer-friendly-virtual-file-implementation-for-net-refined.aspx#10310366</link><pubDate>Fri, 25 May 2012 10:39:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10310366</guid><dc:creator>Basile Cornet</dc:creator><description>&lt;p&gt;Hi David!&lt;/p&gt;
&lt;p&gt;Thank you very much for this piece of code ! I&amp;#39;m still trying to figure out how everything work (inside), but it work well :)&lt;/p&gt;
&lt;p&gt;Do you now how I can retrieve the dropped file path ? I really like the way you handle download of file, but my case is a bit more complicated. So what I&amp;#39;m tring to do is, drag and drop a file with only its FileDescriptor information, and retrieve its location once windows created an empty file, and then handle myself the download in my application.&lt;/p&gt;
&lt;p&gt;For now I managed to drop a file, it is created by windows, but no way to retrieve its path, and more than that each time I try another drag and drop, windows keeps dropping the first one. It&amp;#39;s like the first d&amp;amp;d operation never ended.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10310366" width="1" height="1"&gt;</description></item><item><title>re: Creating something from nothing - and knowing it [Developer-friendly virtual file implementation for .NET refined!]</title><link>http://blogs.msdn.com/b/delay/archive/2009/11/16/creating-something-from-nothing-and-knowing-it-developer-friendly-virtual-file-implementation-for-net-refined.aspx#10281434</link><pubDate>Mon, 12 Mar 2012 16:06:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10281434</guid><dc:creator>David Anson</dc:creator><description>&lt;p&gt;Tim Dellas,&lt;/p&gt;
&lt;p&gt;It sounds like maybe something&amp;#39;s not working well with your system - Windows Explorer shouldn&amp;#39;t crash no matter what my sample tries to do. (And it doesn&amp;#39;t crash for other folks who have successfully used this code.) FYI that the sample application already does what you ask for - please have a look at the method TextUrlVirtualFile_MouseButtonDown to see how it asynchronously downloads a file to the drop location (with a busy indicator).&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10281434" width="1" height="1"&gt;</description></item><item><title>re: Creating something from nothing - and knowing it [Developer-friendly virtual file implementation for .NET refined!]</title><link>http://blogs.msdn.com/b/delay/archive/2009/11/16/creating-something-from-nothing-and-knowing-it-developer-friendly-virtual-file-implementation-for-net-refined.aspx#10281416</link><pubDate>Mon, 12 Mar 2012 15:34:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10281416</guid><dc:creator>Tim Dellas</dc:creator><description>&lt;p&gt;If I understand it right, I need to do additional implementation for the asynchronous work that needs to be done after the dragging has been done in the demo program. Sadly I came looking for this from a .NET background and have little experience with the C structures or the programming paradigms needed to implement this. Therefore I want to humbly suggest to show an example in the demo, like downloading a file and putting it to the dragged location - which would make this basically the copy-paste solution I (and I guess a lot of others) came looking for. I know this sounds a bit lame, but I fail to see the usefullness of a demo app that crashes the Windows Explorer when used.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10281416" width="1" height="1"&gt;</description></item><item><title>re: Creating something from nothing - and knowing it [Developer-friendly virtual file implementation for .NET refined!]</title><link>http://blogs.msdn.com/b/delay/archive/2009/11/16/creating-something-from-nothing-and-knowing-it-developer-friendly-virtual-file-implementation-for-net-refined.aspx#10077435</link><pubDate>Mon, 18 Oct 2010 17:22:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10077435</guid><dc:creator>David Anson</dc:creator><description>&lt;p&gt;Pro,&lt;/p&gt;
&lt;p&gt;That *is* weird - but I&amp;#39;m glad to hear you found the problem! Thanks for letting me know!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10077435" width="1" height="1"&gt;</description></item><item><title>re: Creating something from nothing - and knowing it [Developer-friendly virtual file implementation for .NET refined!]</title><link>http://blogs.msdn.com/b/delay/archive/2009/11/16/creating-something-from-nothing-and-knowing-it-developer-friendly-virtual-file-implementation-for-net-refined.aspx#10077241</link><pubDate>Mon, 18 Oct 2010 09:40:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10077241</guid><dc:creator>Pro</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Thanks for your answer!&lt;/p&gt;
&lt;p&gt;I found the problem! It was the start action! The start action called a method to show the wait screen. But invoking the UI thread caused a very weird deadlock. I don&amp;#39;t know why this happen but it definitly causes the problem :-(&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10077241" width="1" height="1"&gt;</description></item><item><title>re: Creating something from nothing - and knowing it [Developer-friendly virtual file implementation for .NET refined!]</title><link>http://blogs.msdn.com/b/delay/archive/2009/11/16/creating-something-from-nothing-and-knowing-it-developer-friendly-virtual-file-implementation-for-net-refined.aspx#10076517</link><pubDate>Fri, 15 Oct 2010 17:15:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10076517</guid><dc:creator>David Anson</dc:creator><description>&lt;p&gt;Pro,&lt;/p&gt;
&lt;p&gt;As I recall, the sample works for your scenario, so I&amp;#39;m wondering if maybe the problem you&amp;#39;re seeing has to do with something you&amp;#39;re doing a little differently. Offhand, I&amp;#39;m not sure what that would be, but I recall things being very picky about exactly how they were configured. If you agree the sample seems to work okay, you might start by trying to identify the differences vs. your implementation. Alternatively, gradually turn the sample into your implementation and see when it breaks. :)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10076517" width="1" height="1"&gt;</description></item></channel></rss>