Serving the Quantitative Finance Community

 
User avatar
Cuchulainn
Posts: 22935
Joined: July 16th, 2004, 7:38 am

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;
		}
	};
}