Serving the Quantitative Finance Community

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

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
		[ExcelFunction(Description = "My first")]
		int SayHello()
			return 0;

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