namespace MathOperationsLib { public class Math { public int Addition(int val1, int val2) { return (val1 + val2); } } }
#include "stdafx.h" // Import the type library. #import "C:\Vaibhav\C#Dll\MathOperationsLib\bin\Debug\MathOperationsLib.tlb" raw_interfaces_only using namespace MathOperationsLib; int _tmain(int argc, _TCHAR* argv[]) { HRESULT hr = CoInitialize(NULL); return 0; }
[assembly: ComVisible(true)] [assembly: AssemblyDelaySign(false)] [assembly: AssemblyKeyFile("C:\\Vaibhav\\C#Dll\\MathOperationsLib\\MyKeyFile.SNK")]
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)