Вниз
Скачать: CL | DM;

проблема с DLL   Найти похожие ветки 

 
___Guest___   (2004-03-17 17:06) [0]

library comb;
uses
 SysUtils,
 Classes;

{$R *.res}

function  temp:string; stdcall;
begin
  result:="hello world";
end;

Exports
   temp name "temp" ;

begin
end.
в программе пишу
....
implementation
function temp: string; stdcall; External "comb" name "temp";
{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
var
 s: string;
begin
 s:=temp;
 ShowMessage(s);
end;

так вот: сообщение выводит, но сразу после этого  - "Invalid pointer operation"
В чем проблема?!


 
RoadStar ©   (2004-03-17 17:11) [1]

uses
ShareMem,
...


 
Defunct ©   (2004-03-17 17:17) [2]

___Guest___   (17.03.04 17:06)  

function  temp:ShortString; stdcall;
begin
 result:="hello world";
end;



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.025 c
4-1074522196
Илья
2004-01-19 17:23
2004.04.04
Помогите поместить приложение в TaskBar...


8-1070444370
Hkr
2003-12-03 12:39
2004.04.04
PlaySound...


6-1075058235
-=GaLaN=-
2004-01-25 22:17
2004.04.04
Список компьютеры в рабочей группе


8-1069904598
unreger
2003-11-27 06:43
2004.04.04
сохранить в файл ключевые кадры?


1-1078996913
Дас Виндовс 45
2004-03-11 12:21
2004.04.04
Сортировка массива




   Наверх