I have created a small web application using c#.net that calls a function from a dll file created in c++
the following are the files that i have used to create a dll file..
//CPPDLL.cpp file
#include “stdafx.h”
#include “CPPDLL.h”
#include
using namespace std;
namespace CPPDLL
{
double Class1::Add(double a, double b)
{
return a + b;
}
}
//CPPDLL.h file
#pragma once
using namespace System;
namespace CPPDLL {
public class Class1
{
// TODO: Add your methods for this class here.
public:
static __declspec(dllexport) double Add(double a, double b);
};
}
/////////////////////////////////
Now my c#.net code is as follows
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System ...
Go to the complete details ...