dll загрузил, пробую общаться с ней, но ничего не получается.
В библиотеке простая функция инкремента:
Код:

int inc (int *d)
{
return ++(*d);
}
Прописал библиотеку как было сказано выше:
Код:

[Files]
Source: testDll.dll; Flags: dontcopy
[*code] // тут без * (как вставить прально незнаю)
function inc(size: integer):integer;
external 'inc@files:testDll.dll stdcall';
обращаюсь к функции
Код:

FUNCTION NextButtonClick(CurPageID: Integer): Boolean;
VAR
i: integer;
BEGIN
i := 10;
i := inc(i);
MsgBox('getListDevices = '+IntToStr(i), mbInformation, MB_OK);
Result := True;
END;
при выполнении получаю:
Код:

Runtime Error (at 4:47):
Access violation at address 631C1205. Write of address 0000000A.