我一直在搜索FreePascal并做了一个简单的测试DLL。在
library dll;
function addstuff(onenumber, twonumber : Integer) : integer; stdcall;
begin
addstuff := onenumber + twonumber;
end;
begin
end.
exports addstuff;
但是,当我尝试使用Ctypes将其导入到Python中时,它声称dll中没有函数addstuff
。DLL Export Viewer表示其中也根本没有函数。在
我似乎找不到任何在互联网上建立DLL的简单教程,所以我很可能做了一些愚蠢的错误。有什么提示吗?我对帕斯卡很陌生。在
你有程序外的导出部分,把它放在里面
相关问题 更多 >
编程相关推荐