为啥不用.net,编译个单文件,半天都搞不定

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using RGiesecke.DllExport;             //For DllExport
using System.Runtime.InteropServices;  //For CallingConvention

namespace D_TO_NET
{
    public class Class1
    {
        [DllExport("csHello", CallingConvention = CallingConvention.Cdecl)]
        static string Hello()
        {
            string message = "Hello, MessageBox!";
            // Show message box
            return message;
        }
    }
}

谁用你这个玩意.

posted @ 2021-10-10 12:52  zjh6  阅读(13)  评论(0)    收藏  举报  来源