LoadLibrary при вызове в программе, постоянно возвращает 0

В Delphi всё работает, и VTFLib_Init возвращает True.
Пробовал добавлять {$mode DELPHI}{$H+} , положительного результата не дало.
ОС: Win 7
Lazarus 0.9.30.4 r35940 FPC 2.6.0 x86_64-win64-win32/win64
Код Dll:
- Код: Выделить всё
library Core;
function CR_GetInteger: Integer; stdcall; export;
begin
Result:= 2013;
end;
{ Export }
exports
CR_GetInteger name 'CR_GetInteger';
begin
end.
В приложении:
- Код: Выделить всё
uses dynlibs;
- Код: Выделить всё
function VTFLib_Init: Boolean;
begin
Result := False;
if LoadLibrary('Core.dll') <> 0 then
Result := True;
end;