带有 .NET Core 支持的 .NET DllExport (又名 3F/DllExport 或者 DllExport.bat)
带有 .NET Core 支持的 .NET DllExport (又名 3F/DllExport 或者 DllExport.bat)
带有 .NET Core 支持的 .NET DllExport (又名 3F/DllExport 又名 DllExport.bat)
DllExport-help | gntDllExport
// Cdecl is the default calling convention in .NET DllExport基于 Robert Giesecke 创建的 UnmanagedExports。他的 页面。 .NET DllExport 是由 Denis Kuzmin 「☕」 开发的一个不同项目(https://github.com/3F/DllExport/issues/87#issuecomment-438576100)。
Copyright (c) 2009-2015 Robert Giesecke
Copyright (c) 2016-2025 Denis Kuzmin github/3F[快速入门] [ 示例: C++, C#, Java 等 ] -> { Wiki } { 演示 } 使用 DllExport + Conari 的示例:
[⏯]
[DllExport] // DllExportModifiedClassLibrary.dll
public static IntPtr callme(TCharPtr str, IntPtr structure)
{
if(str != "Hello world!") return IntPtr.Zero;
structure.Native().f("x", "y").build(out dynamic v);
if(v.x > v.y)
{
structure.Access().write(8);
}
return new NativeArray(-1, v.x, 1, v.y);
}... // 通过 C/C++、Java、Rust、Python 等方式在主机端 ... 甚至是相同的 .net C# 语言
[DllExport("Init", CallingConvention.Cdecl)]
[DllExport(CallingConvention.StdCall)]
[DllExport("MyFunc")]
[DllExport]暂无开放 Issues,或尚未同步最近议题。