C++调用C#的DLL详解

C++调用C#.Net的类库DLL步骤如下所示:

一、C#写的类库:
using System;
using System.Collections.Generic;
using System.Text;

namespace ClassLibrary1
{
    public class Class1
    {
        public String Name
        {
            get;
            set;
        }
        public void helloWorld()
        {
            Console.WriteLine("hello world!");
        }

    }
}
// C#
程序配置,一定是类库

 

你可能感兴趣的:(C++入门及项目实战宝典,C/C++开发实战365,C++)