<?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>Passing Strings to Unmanaged Code</title><link>http://blogs.msdn.com/b/tims/archive/2004/03/25/96036.aspx</link><description>I've just come across a nasty bug in some sample code (from us, I'm ashamed to say), that highlights the pitfalls of passing string buffers between managed and unmanaged code. 
 To go back a step or two, I've been trying to create a small application</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>Extracting Metadata from Windows Media files</title><link>http://blogs.msdn.com/b/tims/archive/2004/03/25/96036.aspx#9546641</link><pubDate>Mon, 13 Apr 2009 05:03:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9546641</guid><dc:creator>Tim Sneath</dc:creator><description>&lt;p&gt;In this article, I'll describe how to use the Windows Media Format SDK to access the metadata embedded&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9546641" width="1" height="1"&gt;</description></item><item><title>re: Passing Strings to Unmanaged Code</title><link>http://blogs.msdn.com/b/tims/archive/2004/03/25/96036.aspx#113461</link><pubDate>Thu, 15 Apr 2004 06:37:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:113461</guid><dc:creator>Michael Teper</dc:creator><description>Never mind! &lt;a target="_new" href="http://blogs.msdn.com/tims/articles/100730.aspx"&gt;http://blogs.msdn.com/tims/articles/100730.aspx&lt;/a&gt;. :)&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=113461" width="1" height="1"&gt;</description></item><item><title>re: Passing Strings to Unmanaged Code</title><link>http://blogs.msdn.com/b/tims/archive/2004/03/25/96036.aspx#113460</link><pubDate>Thu, 15 Apr 2004 06:36:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:113460</guid><dc:creator>Michael Teper</dc:creator><description>Tim, any chance of you posting your code? Or at least the metadata interrogator class?&lt;br&gt;&lt;br&gt;Thanks!!&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=113460" width="1" height="1"&gt;</description></item><item><title>Extracting Metadata from Windows Media files</title><link>http://blogs.msdn.com/b/tims/archive/2004/03/25/96036.aspx#104084</link><pubDate>Tue, 30 Mar 2004 22:34:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:104084</guid><dc:creator>Tim Sneath</dc:creator><description>&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=104084" width="1" height="1"&gt;</description></item><item><title>re: Passing Strings to Unmanaged Code</title><link>http://blogs.msdn.com/b/tims/archive/2004/03/25/96036.aspx#96139</link><pubDate>Fri, 26 Mar 2004 00:58:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:96139</guid><dc:creator>Tim Sneath</dc:creator><description>Oh - I meant to add in the article that by far the best book on this subject is &amp;quot;.NET and COM - The Complete Interoperability Guide&amp;quot; - as per the following:&lt;br&gt;   &lt;a target="_new" href="http://www.amazon.com/exec/obidos/ASIN/067232170X"&gt;http://www.amazon.com/exec/obidos/ASIN/067232170X&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=96139" width="1" height="1"&gt;</description></item><item><title>re: Passing Strings to Unmanaged Code</title><link>http://blogs.msdn.com/b/tims/archive/2004/03/25/96036.aspx#96109</link><pubDate>Fri, 26 Mar 2004 00:18:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:96109</guid><dc:creator>Tim Sneath</dc:creator><description>Oh trust me, you'll be delighted by Longhorn :-)&lt;br&gt;&lt;br&gt;WinFS has a much stronger understanding of the underlying metadata and will be able to do filtering, grouping and complex queries with a sub-second response. You can expect to see all these properties properly managed and surfaced via an XML schema. Check out the promotion / demotion stuff in this post:&lt;br&gt;&lt;a target="_new" href="http://blogs.msdn.com/tims/archive/2003/10/29/57428.aspx"&gt;http://blogs.msdn.com/tims/archive/2003/10/29/57428.aspx&lt;/a&gt;&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;&lt;br&gt;Tim&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=96109" width="1" height="1"&gt;</description></item><item><title>re: Passing Strings to Unmanaged Code</title><link>http://blogs.msdn.com/b/tims/archive/2004/03/25/96036.aspx#96101</link><pubDate>Fri, 26 Mar 2004 00:07:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:96101</guid><dc:creator>Sean</dc:creator><description>I've endeavoured to do the same thing on a number of occassions trying to get my media collection metadata into a DB ..&lt;br&gt;&lt;br&gt;I've mused a couple of times how nice it would be if Media Player had the option to store media metadata in MSDE -- or even better, with the advent of longhorn, use WinFS..&lt;br&gt;&lt;br&gt;I'm glad that someone at MS sees the value in this ;)&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=96101" width="1" height="1"&gt;</description></item></channel></rss>