I'm trying to load a DLL written in C# into Inno Setup.
Here is the code:
function Check(version, dir: String): Integer;
external 'Check@{src}\check.dll stdcall';
Then I call it like Check(x,y)
But the DLL couldn't be loaded.
I tried it with stdcall
and cdecl
.
The check.dll
file is along to setup.exe
.
Why isn't it working?