<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	
	>
<channel>
	<title>
	Comments on: Using C# and ExcelDNA to call .NET Libraries	</title>
	<atom:link href="https://www.centerspace.net/using-c-and-exceldna-to-call-net-libraries/feed" rel="self" type="application/rss+xml" />
	<link>https://www.centerspace.net/using-c-and-exceldna-to-call-net-libraries</link>
	<description>.NET numerical class libraries</description>
	<lastBuildDate>Tue, 01 Mar 2016 21:45:00 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.1</generator>
	<item>
		<title>
		By: CenterSpace Blog &#187; Blog Archive &#187; Porting Excel to .NET		</title>
		<link>https://www.centerspace.net/using-c-and-exceldna-to-call-net-libraries#comment-6171</link>

		<dc:creator><![CDATA[CenterSpace Blog &#187; Blog Archive &#187; Porting Excel to .NET]]></dc:creator>
		<pubDate>Tue, 18 Feb 2014 19:11:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.centerspace.net/blog/?p=3058#comment-6171</guid>

					<description><![CDATA[[&#8230;] previous blog posts, we demonstrated calling NMath from within Excel (C#, Visual Basic). Another common use case is replacing an Excel spreadsheet with an equivalent .NET [&#8230;]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] previous blog posts, we demonstrated calling NMath from within Excel (C#, Visual Basic). Another common use case is replacing an Excel spreadsheet with an equivalent .NET [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Dafydd Steele		</title>
		<link>https://www.centerspace.net/using-c-and-exceldna-to-call-net-libraries#comment-3342</link>

		<dc:creator><![CDATA[Dafydd Steele]]></dc:creator>
		<pubDate>Thu, 10 Mar 2011 19:30:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.centerspace.net/blog/?p=3058#comment-3342</guid>

					<description><![CDATA[Hi Mike

Thanks for your quick reply. I did indeed solve it by including both nmath_native dll and the NMathKernel dll in the same directory as the XLL (this was for 32-bit), with the other nmath libs packed inside the XLL.

Best regards
Dafydd]]></description>
			<content:encoded><![CDATA[<p>Hi Mike</p>
<p>Thanks for your quick reply. I did indeed solve it by including both nmath_native dll and the NMathKernel dll in the same directory as the XLL (this was for 32-bit), with the other nmath libs packed inside the XLL.</p>
<p>Best regards<br />
Dafydd</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike Magee		</title>
		<link>https://www.centerspace.net/using-c-and-exceldna-to-call-net-libraries#comment-3341</link>

		<dc:creator><![CDATA[Mike Magee]]></dc:creator>
		<pubDate>Thu, 10 Mar 2011 18:18:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.centerspace.net/blog/?p=3058#comment-3341</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.centerspace.net/using-c-and-exceldna-to-call-net-libraries#comment-3336&quot;&gt;Dafydd Steele&lt;/a&gt;.

Hi Dafydd,

Thank you for your interest in my example.  The answer to your problem might be best answered by ExcelDNA, but if you allow me to guess as to what is happening I might be able to help.  Your error indicates that pack is complaining that nmath_native-x86.dll is not an assembly, this is true.  NMath does need this file to run in the x86 environment.  I would assume you are trying to avoid installing CenterSpace on the client computer and just create a deliverable package.  You might have to include the nmath_native dll files along with your generated XLL file and put them all in the same directory.  One more step would be to include the path to this directory in your environment variables in system properties.

At runtime NMath examines the system and determines whether it is running on a 32 or 64 bit processor.  It then loads the appropriate native math module.  I doubt if you will be able to pack it into one xll file, but if NMath.dll can find it then all should be well.

Again thanks for your interest, and let me know if this helps.

Mike]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.centerspace.net/using-c-and-exceldna-to-call-net-libraries#comment-3336">Dafydd Steele</a>.</p>
<p>Hi Dafydd,</p>
<p>Thank you for your interest in my example.  The answer to your problem might be best answered by ExcelDNA, but if you allow me to guess as to what is happening I might be able to help.  Your error indicates that pack is complaining that nmath_native-x86.dll is not an assembly, this is true.  NMath does need this file to run in the x86 environment.  I would assume you are trying to avoid installing CenterSpace on the client computer and just create a deliverable package.  You might have to include the nmath_native dll files along with your generated XLL file and put them all in the same directory.  One more step would be to include the path to this directory in your environment variables in system properties.</p>
<p>At runtime NMath examines the system and determines whether it is running on a 32 or 64 bit processor.  It then loads the appropriate native math module.  I doubt if you will be able to pack it into one xll file, but if NMath.dll can find it then all should be well.</p>
<p>Again thanks for your interest, and let me know if this helps.</p>
<p>Mike</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Dafydd Steele		</title>
		<link>https://www.centerspace.net/using-c-and-exceldna-to-call-net-libraries#comment-3336</link>

		<dc:creator><![CDATA[Dafydd Steele]]></dc:creator>
		<pubDate>Tue, 08 Mar 2011 20:21:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.centerspace.net/blog/?p=3058#comment-3336</guid>

					<description><![CDATA[Hi Mike,

Thanks for the post, it is very interesting. Do you have any info on how to package this for client PCs? In particular, ExcelDNA is unable to pack nmath_native_x86.dll, and when I distribute the DLL seperately, an error occurs along the lines of &quot;Unable to load nmath_native_x86.dll. The module was expected to contain an assembly manifest&quot;

Best
Dafydd]]></description>
			<content:encoded><![CDATA[<p>Hi Mike,</p>
<p>Thanks for the post, it is very interesting. Do you have any info on how to package this for client PCs? In particular, ExcelDNA is unable to pack nmath_native_x86.dll, and when I distribute the DLL seperately, an error occurs along the lines of &#8220;Unable to load nmath_native_x86.dll. The module was expected to contain an assembly manifest&#8221;</p>
<p>Best<br />
Dafydd</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
