<?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>Sample: Mixing Unmanaged C++, C++/CLI, and C# code</title><link>http://blogs.msdn.com/b/junfeng/archive/2006/05/20/599434.aspx</link><description>Back in May 2005 I posted an article on how to mix C# and C++ code in single assembly . 
 I still get emails asking for samples. So I created this simple sample. Enjoy. 
 We have this simple unmanaged C++ class UnmanagedFoo: 
 E:\sample\vc\mixed&amp;gt;more</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title> Junfeng Zhang s Windows Programming Notes Sample Mixing Unmanaged | Cast Iron Cookware</title><link>http://blogs.msdn.com/b/junfeng/archive/2006/05/20/599434.aspx#9692306</link><pubDate>Wed, 03 Jun 2009 22:38:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9692306</guid><dc:creator> Junfeng Zhang s Windows Programming Notes Sample Mixing Unmanaged | Cast Iron Cookware</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://castironbakeware.info/story.php?title=junfeng-zhang-s-windows-programming-notes-sample-mixing-unmanaged"&gt;http://castironbakeware.info/story.php?title=junfeng-zhang-s-windows-programming-notes-sample-mixing-unmanaged&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9692306" width="1" height="1"&gt;</description></item><item><title>re: Sample: Mixing Unmanaged C++, C++/CLI, and C# code</title><link>http://blogs.msdn.com/b/junfeng/archive/2006/05/20/599434.aspx#700137</link><pubDate>Tue, 15 Aug 2006 00:26:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:700137</guid><dc:creator>Junfeng Zhang</dc:creator><description>You can use CLR hosting. &lt;br&gt;&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/library/en-us/cpguide/html/cpconhostingcommonlanguageruntime.asp"&gt;http://msdn.microsoft.com/library/en-us/cpguide/html/cpconhostingcommonlanguageruntime.asp&lt;/a&gt;&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=700137" width="1" height="1"&gt;</description></item><item><title>re: Sample: Mixing Unmanaged C++, C++/CLI, and C# code</title><link>http://blogs.msdn.com/b/junfeng/archive/2006/05/20/599434.aspx#699907</link><pubDate>Mon, 14 Aug 2006 21:20:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:699907</guid><dc:creator>carlisia</dc:creator><description>Thanks for this sample. Is it possible to call a C# dll from a C application? All of the text I find is about C++ as unmanaged code interoping with managed code. How about C-&amp;gt;C#? Please, can anyone point me to something useful?&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=699907" width="1" height="1"&gt;</description></item><item><title>re: Sample: Mixing Unmanaged C++, C++/CLI, and C# code</title><link>http://blogs.msdn.com/b/junfeng/archive/2006/05/20/599434.aspx#684623</link><pubDate>Tue, 01 Aug 2006 02:42:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:684623</guid><dc:creator>Junfeng Zhang</dc:creator><description>I never used VB.Net, but I imagine it should work, as long as the compiler supports netmodule. &lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=684623" width="1" height="1"&gt;</description></item><item><title>re: Sample: Mixing Unmanaged C++, C++/CLI, and C# code</title><link>http://blogs.msdn.com/b/junfeng/archive/2006/05/20/599434.aspx#676433</link><pubDate>Mon, 24 Jul 2006 10:51:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:676433</guid><dc:creator>Julien B.</dc:creator><description>Thank's for this nice tuto' Junfeng.&lt;br&gt;Does this procedure work to use unmanaged C++ with VB.Net? Or is that a specific case?&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=676433" width="1" height="1"&gt;</description></item><item><title>re: Sample: Mixing Unmanaged C++, C++/CLI, and C# code</title><link>http://blogs.msdn.com/b/junfeng/archive/2006/05/20/599434.aspx#671602</link><pubDate>Wed, 19 Jul 2006 20:15:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:671602</guid><dc:creator>Junfeng Zhang</dc:creator><description>Keith1000,&lt;br&gt;&lt;br&gt;I don't think this is possible in Visual Studio 2005.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=671602" width="1" height="1"&gt;</description></item><item><title>re: Sample: Mixing Unmanaged C++, C++/CLI, and C# code</title><link>http://blogs.msdn.com/b/junfeng/archive/2006/05/20/599434.aspx#670819</link><pubDate>Wed, 19 Jul 2006 13:06:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:670819</guid><dc:creator>keith1000</dc:creator><description>How to do all this in the context of Visual Studio 2005 ?. There does not seem to be a way to mix different manage languages in one assembly. &lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=670819" width="1" height="1"&gt;</description></item><item><title>re: Sample: Mixing Unmanaged C++, C++/CLI, and C# code</title><link>http://blogs.msdn.com/b/junfeng/archive/2006/05/20/599434.aspx#657231</link><pubDate>Thu, 06 Jul 2006 00:11:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:657231</guid><dc:creator>Harry Zhang</dc:creator><description>in your blog, you showed mixing unmanaged c++, c++/CLI, c#.&lt;br&gt;but how do I mix unmanaged c++ with c#? instead of using command line to compile and link, how to do this in visual studio 2005?&lt;br&gt;You answer is greatly appreciated.&lt;br&gt;&lt;br&gt;Harry &lt;br&gt;avstech@gmail.com&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=657231" width="1" height="1"&gt;</description></item><item><title>re: Sample: Mixing Unmanaged C++, C++/CLI, and C# code</title><link>http://blogs.msdn.com/b/junfeng/archive/2006/05/20/599434.aspx#602744</link><pubDate>Sat, 20 May 2006 20:15:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:602744</guid><dc:creator>Kris</dc:creator><description>This is nice. Can you show a sample of how to use a COM Object (say which doesn't support IDispatch) to be use with C++/CLI (which inturn could be used by C#).&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=602744" width="1" height="1"&gt;</description></item><item><title>There is not much that get past me</title><link>http://blogs.msdn.com/b/junfeng/archive/2006/05/20/599434.aspx#602685</link><pubDate>Sat, 20 May 2006 17:31:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:602685</guid><dc:creator>xacc.ide</dc:creator><description>&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=602685" width="1" height="1"&gt;</description></item></channel></rss>