First of all, I assume that you are using a C link with extern "C"if this function is defined in the C ++ translation block.
Delphi 2009 , , PChar wide .
ANSI C, :
type
TMyFunction= function(name: PAnsiChar; var index: Integer): Boolean; stdcall;
C bool, , LongBool, , Delphi Boolean:
type
TMyFunction= function(name: PAnsiChar; var index: Integer): LongBool; stdcall;
\ , :
h := LoadLibrary('c:\mydll.dll');
, LoadLibrary , , h - HMODULE, THandle, .
Delphi :
if Assigned(fMyFunction) then
fMyFunction('MyString', Result);
, .
, .