Pascal DLL没有函数

2024-09-30 01:24:13 发布

您现在位置:Python中文网/ 问答频道 /正文

我一直在搜索FreePascal并做了一个简单的测试DLL。在

library dll;

function addstuff(onenumber, twonumber : Integer) : integer; stdcall;

begin
     addstuff := onenumber + twonumber;
end;


begin
end.

exports addstuff;

但是,当我尝试使用Ctypes将其导入到Python中时,它声称dll中没有函数addstuffDLL Export Viewer表示其中也根本没有函数。在

我似乎找不到任何在互联网上建立DLL的简单教程,所以我很可能做了一些愚蠢的错误。有什么提示吗?我对帕斯卡很陌生。在


Tags: 函数libraryfunctionintegerenddllbeginexports

热门问题