how can i use c# dll with namespace in c++

  • Thread starter Thread starter SDec
  • Start date Start date
S

SDec

Hi
i have this error with this code:
An unhandled exception of type 'System.IO.FileNotFoundException'
please help....
//---------------------------
#include "stdafx.h"
#using <mscorlib.dll>
#using <system.dll>
using namespace System;

#using <TestDLL.dll>
using namespace Ing;
int _tmain(void)
{
double dVal = Ing::MyMath::Add(1.0, 2.0);
Console::WriteLine(dVal);
return 0;
}
//---------------------------
 
At runtime put the DLL in the same directory as the executable depending on
it.

Ronald Laeremans
Visual C++ team

Hi
i have this error with this code:
An unhandled exception of type 'System.IO.FileNotFoundException'
please help....
//---------------------------
#include "stdafx.h"
#using <mscorlib.dll>
#using <system.dll>
using namespace System;

#using <TestDLL.dll>
using namespace Ing;
int _tmain(void)
{
double dVal = Ing::MyMath::Add(1.0, 2.0);
Console::WriteLine(dVal);
return 0;
}
//---------------------------
 
Back
Top