I have two projects, one wrote in C++ and one in C# .NET 3.5 Framework
sp1.
I would like the C++ project to call C# project dll. How can I expose
api/function from C# to allow C++ to call. Mostly I will not have the
source code to C# project, just api I can call.
Example of C# file below so I can get something going. Any help?
Test.cs
using System;
using System.Collections.Generic;
using System.Text;
namespace ProjectX
{
public class Test
{
public static void Main()
{
Console.WriteLine("Main!");
}
public void TestCount()
{
Console.WriteLine("Count!");
}
}
}
Wrong group. Try one with "visual studio" or "dotnet" in it's name
two ways:
1. Write your C# dll as COM.
2. Use managed C++.
If you don't have C# code, just use managed C++ to call it.
On Dec 24, 5:41 pm, yqever <yqe...@163.com> wrote:
> Slickuser<slick.us...@gmail.com> wrote in news:67bcda21-99f8-45a5-80c9-
> 179825562...@d9g2000prh.googlegroups.com:
Hi;
if you want to call API by programming in C++ I can send you some
project.