Serving the Quantitative Finance Community

 
User avatar
Cuchulainn
Posts: 64298
Joined: July 16th, 2004, 7:38 am
Location: Drosophila melanogaster
Contact:

Re: Excel DNA + Excel 2010 + VS Express 2010

February 7th, 2018, 3:33 pm

I am trying to compile an Excel-DNA in C++/CLI but it cannot handle the namespace (BTW in C# it works fine).

Any ideas?
#pragma once

using namespace System;
using namespace ExcelDna::Integration; // NS DOES NOT EXIST

namespace ExcelDNA_CPPCLI {

	public ref class MyFunctions
	{
	public:
		[ExcelFunction(Description = "My first")]
		int SayHello()
		{
			return 0;
		}
	};
}


"Compatibility means deliberately repeating other people's mistakes."
David Wheeler

http://www.datasimfinancial.com
http://www.datasim.nl