<?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"
	>
<channel>
	<title>Comments on: A Beginner’s Guide to calling a .NET Library from Excel</title>
	<atom:link href="http://richnewman.wordpress.com/2007/04/15/a-beginner%e2%80%99s-guide-to-calling-a-net-library-from-excel/feed/" rel="self" type="application/rss+xml" />
	<link>http://richnewman.wordpress.com/2007/04/15/a-beginner%e2%80%99s-guide-to-calling-a-net-library-from-excel/</link>
	<description></description>
	<pubDate>Fri, 04 Jul 2008 11:46:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
		<item>
		<title>By: Mathias</title>
		<link>http://richnewman.wordpress.com/2007/04/15/a-beginner%e2%80%99s-guide-to-calling-a-net-library-from-excel/#comment-2728</link>
		<dc:creator>Mathias</dc:creator>
		<pubDate>Sun, 15 Jun 2008 23:14:30 +0000</pubDate>
		<guid isPermaLink="false">http://richnewman.wordpress.com/2007/04/15/a-beginner%e2%80%99s-guide-to-calling-a-net-library-from-excel/#comment-2728</guid>
		<description>Thank you for a very helpful post. FYI, I have been struggling with the first section ("A Basic Walk Through"), which mysteriously refused to work for a while, for reasons which seem to be related to .Net 3.5. I finally got it to work, by explicitly targeting .Net 2.0 (I am using Visual Studio 2008 / .NET 3.5 / Office 2003) and adding the Excel.exe.config file with matching version as you describe, and it worked.
Do you know if there are indeed specific issues related to .Net 3.5, or is it by sheer luck that I resolved the problem :) ?
Cheers,
Mathias</description>
		<content:encoded><![CDATA[<p>Thank you for a very helpful post. FYI, I have been struggling with the first section (&#8221;A Basic Walk Through&#8221;), which mysteriously refused to work for a while, for reasons which seem to be related to .Net 3.5. I finally got it to work, by explicitly targeting .Net 2.0 (I am using Visual Studio 2008 / .NET 3.5 / Office 2003) and adding the Excel.exe.config file with matching version as you describe, and it worked.<br />
Do you know if there are indeed specific issues related to .Net 3.5, or is it by sheer luck that I resolved the problem <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ?<br />
Cheers,<br />
Mathias</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lior</title>
		<link>http://richnewman.wordpress.com/2007/04/15/a-beginner%e2%80%99s-guide-to-calling-a-net-library-from-excel/#comment-2673</link>
		<dc:creator>Lior</dc:creator>
		<pubDate>Mon, 28 Apr 2008 12:04:50 +0000</pubDate>
		<guid isPermaLink="false">http://richnewman.wordpress.com/2007/04/15/a-beginner%e2%80%99s-guide-to-calling-a-net-library-from-excel/#comment-2673</guid>
		<description>Great article!!!</description>
		<content:encoded><![CDATA[<p>Great article!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: steve_randomno</title>
		<link>http://richnewman.wordpress.com/2007/04/15/a-beginner%e2%80%99s-guide-to-calling-a-net-library-from-excel/#comment-2661</link>
		<dc:creator>steve_randomno</dc:creator>
		<pubDate>Tue, 15 Apr 2008 16:52:42 +0000</pubDate>
		<guid isPermaLink="false">http://richnewman.wordpress.com/2007/04/15/a-beginner%e2%80%99s-guide-to-calling-a-net-library-from-excel/#comment-2661</guid>
		<description>The targeting of .net 1 is unintended behaviour for office 2003 and beyonde according to the following blog: http://mcfunley.com/cs/blogs/dan/archive/2006/02/07/947.aspx

A patch is available (see blog).</description>
		<content:encoded><![CDATA[<p>The targeting of .net 1 is unintended behaviour for office 2003 and beyonde according to the following blog: <a href="http://mcfunley.com/cs/blogs/dan/archive/2006/02/07/947.aspx" rel="nofollow">http://mcfunley.com/cs/blogs/dan/archive/2006/02/07/947.aspx</a></p>
<p>A patch is available (see blog).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: steve_randomno</title>
		<link>http://richnewman.wordpress.com/2007/04/15/a-beginner%e2%80%99s-guide-to-calling-a-net-library-from-excel/#comment-2658</link>
		<dc:creator>steve_randomno</dc:creator>
		<pubDate>Fri, 11 Apr 2008 15:19:07 +0000</pubDate>
		<guid isPermaLink="false">http://richnewman.wordpress.com/2007/04/15/a-beginner%e2%80%99s-guide-to-calling-a-net-library-from-excel/#comment-2658</guid>
		<description>I have had to do this several times but infrequently enough to have to look it up each time. This is by far the best guide I have ever seen about this. You have the dubious honour of being adding you to my "Useful" folder in my favourites. Thanks for making the effort to share.</description>
		<content:encoded><![CDATA[<p>I have had to do this several times but infrequently enough to have to look it up each time. This is by far the best guide I have ever seen about this. You have the dubious honour of being adding you to my &#8220;Useful&#8221; folder in my favourites. Thanks for making the effort to share.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan</title>
		<link>http://richnewman.wordpress.com/2007/04/15/a-beginner%e2%80%99s-guide-to-calling-a-net-library-from-excel/#comment-2657</link>
		<dc:creator>Alan</dc:creator>
		<pubDate>Fri, 11 Apr 2008 13:30:33 +0000</pubDate>
		<guid isPermaLink="false">http://richnewman.wordpress.com/2007/04/15/a-beginner%e2%80%99s-guide-to-calling-a-net-library-from-excel/#comment-2657</guid>
		<description>Alternative to Excel.exe.config
I actually found a solution to comment 22 (my own question). To recap - Excel really should use the latest installed version of .NET by default. If its not, it's because something is telling it to use an older version. While using the Excel.exe.config is one solution, it may not be practical for many, and really only disguises the problem. The key as usual, is the registry. Specifically, check for:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\AppPatch\v2.0.50727.00000\excel.exe\{2CCAA9FE-6884-4AF2-99DD-5217B94115DF}
You should see a value named "Target Version" and Data = "v1.1.4322"
This is why Excel is using the older Framework. Removing or renaming this key should solve the problem.</description>
		<content:encoded><![CDATA[<p>Alternative to Excel.exe.config<br />
I actually found a solution to comment 22 (my own question). To recap - Excel really should use the latest installed version of .NET by default. If its not, it&#8217;s because something is telling it to use an older version. While using the Excel.exe.config is one solution, it may not be practical for many, and really only disguises the problem. The key as usual, is the registry. Specifically, check for:<br />
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\AppPatch\v2.0.50727.00000\excel.exe\{2CCAA9FE-6884-4AF2-99DD-5217B94115DF}<br />
You should see a value named &#8220;Target Version&#8221; and Data = &#8220;v1.1.4322&#8243;<br />
This is why Excel is using the older Framework. Removing or renaming this key should solve the problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan</title>
		<link>http://richnewman.wordpress.com/2007/04/15/a-beginner%e2%80%99s-guide-to-calling-a-net-library-from-excel/#comment-2656</link>
		<dc:creator>Alan</dc:creator>
		<pubDate>Wed, 09 Apr 2008 21:42:48 +0000</pubDate>
		<guid isPermaLink="false">http://richnewman.wordpress.com/2007/04/15/a-beginner%e2%80%99s-guide-to-calling-a-net-library-from-excel/#comment-2656</guid>
		<description>Excellent article - very clear.
I work in an office environment where we don't have authorization to drop files into the Excel path. Is there any other way of telling Excel to use the 2.0 version of the framework? This article 
http://msdn2.microsoft.com/en-us/library/y89ktbw6.aspx
says Excel should use the latest version by default, and you need a config file if you want to use an earlier version. However, this contradicts what I am seeing (and, apparently, the experience of many users on this board.) 
Thanks for any info you can provide.</description>
		<content:encoded><![CDATA[<p>Excellent article - very clear.<br />
I work in an office environment where we don&#8217;t have authorization to drop files into the Excel path. Is there any other way of telling Excel to use the 2.0 version of the framework? This article<br />
<a href="http://msdn2.microsoft.com/en-us/library/y89ktbw6.aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/y89ktbw6.aspx</a><br />
says Excel should use the latest version by default, and you need a config file if you want to use an earlier version. However, this contradicts what I am seeing (and, apparently, the experience of many users on this board.)<br />
Thanks for any info you can provide.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pejvan</title>
		<link>http://richnewman.wordpress.com/2007/04/15/a-beginner%e2%80%99s-guide-to-calling-a-net-library-from-excel/#comment-2475</link>
		<dc:creator>pejvan</dc:creator>
		<pubDate>Tue, 04 Mar 2008 17:38:41 +0000</pubDate>
		<guid isPermaLink="false">http://richnewman.wordpress.com/2007/04/15/a-beginner%e2%80%99s-guide-to-calling-a-net-library-from-excel/#comment-2475</guid>
		<description>Very interesting article, many thanks!!
I would recommending reading this article though:
http://blogs.gotdotnet.com/heaths/archive/2005/03/09/391358.aspx
since some of the recommendations made here are not recommended short cuts as it appears here.</description>
		<content:encoded><![CDATA[<p>Very interesting article, many thanks!!<br />
I would recommending reading this article though:<br />
<a href="http://blogs.gotdotnet.com/heaths/archive/2005/03/09/391358.aspx" rel="nofollow">http://blogs.gotdotnet.com/heaths/archive/2005/03/09/391358.aspx</a><br />
since some of the recommendations made here are not recommended short cuts as it appears here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Blackell</title>
		<link>http://richnewman.wordpress.com/2007/04/15/a-beginner%e2%80%99s-guide-to-calling-a-net-library-from-excel/#comment-2238</link>
		<dc:creator>Rob Blackell</dc:creator>
		<pubDate>Thu, 24 Jan 2008 04:49:28 +0000</pubDate>
		<guid isPermaLink="false">http://richnewman.wordpress.com/2007/04/15/a-beginner%e2%80%99s-guide-to-calling-a-net-library-from-excel/#comment-2238</guid>
		<description>Rich, A nice article - its simple and dare I say elegant.
Have you done this for Visual C++
I want to apply this to to a C++ library that I have written so I tried a small C++ example using a public ref class - a rework of your C# example.

But the C++  library does not show up in the VBA reference pane. I can get a C# library to pass the call to C++ but cannot see the C++.

An interesting symptom that I get is - I tried to use ILmerge to combine my C# small dll with my C++ dll. ILmerge complains that the C++ is not marked as managed code.Any thoughts would be very welcome.
Thanks
Rob</description>
		<content:encoded><![CDATA[<p>Rich, A nice article - its simple and dare I say elegant.<br />
Have you done this for Visual C++<br />
I want to apply this to to a C++ library that I have written so I tried a small C++ example using a public ref class - a rework of your C# example.</p>
<p>But the C++  library does not show up in the VBA reference pane. I can get a C# library to pass the call to C++ but cannot see the C++.</p>
<p>An interesting symptom that I get is - I tried to use ILmerge to combine my C# small dll with my C++ dll. ILmerge complains that the C++ is not marked as managed code.Any thoughts would be very welcome.<br />
Thanks<br />
Rob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Usha Ganesan</title>
		<link>http://richnewman.wordpress.com/2007/04/15/a-beginner%e2%80%99s-guide-to-calling-a-net-library-from-excel/#comment-2172</link>
		<dc:creator>Usha Ganesan</dc:creator>
		<pubDate>Thu, 10 Jan 2008 18:24:59 +0000</pubDate>
		<guid isPermaLink="false">http://richnewman.wordpress.com/2007/04/15/a-beginner%e2%80%99s-guide-to-calling-a-net-library-from-excel/#comment-2172</guid>
		<description>Hi ,
   Thanks a lot for this great illustration. I followed the instructions to call the C# component from MSWORD 2003 VBA subroutine and works fantastically well.Thanks again.</description>
		<content:encoded><![CDATA[<p>Hi ,<br />
   Thanks a lot for this great illustration. I followed the instructions to call the C# component from MSWORD 2003 VBA subroutine and works fantastically well.Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Horsti</title>
		<link>http://richnewman.wordpress.com/2007/04/15/a-beginner%e2%80%99s-guide-to-calling-a-net-library-from-excel/#comment-1915</link>
		<dc:creator>Horsti</dc:creator>
		<pubDate>Wed, 12 Dec 2007 10:57:19 +0000</pubDate>
		<guid isPermaLink="false">http://richnewman.wordpress.com/2007/04/15/a-beginner%e2%80%99s-guide-to-calling-a-net-library-from-excel/#comment-1915</guid>
		<description>Thanks,
nice and easy tutorial.</description>
		<content:encoded><![CDATA[<p>Thanks,<br />
nice and easy tutorial.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
