我成功地构建了以下代码:
using System;
using System.Collections.Generic;
using System.Text;
using RGiesecke.DllExport;
namespace DelphiNET
{
internal static class UnmanagedExports
{
[DllExport("add", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall)]
public static int add(int left, int right) {
return left + right;
}
}
}
我和德尔菲探讨过,但没有结果。
我用PE编辑器检查了输出dll,但结果却完全没有导出数据。
我错过了一些东西我很困惑。
编辑:
拜托-帮我解决问题
发布于 2011-12-08 17:39:06
我成功地做到了这样的工作:
注意,找到DLL的路径是bin\Debug\x86
。bin\Debug
中有一个DLL,但是它没有导出。也许这就是你一直在看的。
https://stackoverflow.com/questions/8431313
复制相似问题