Вниз
Скачать: 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.44 MB
Время: 0.027 c
14-1078327285
pathfinder
2004-03-03 18:21
2004.04.04
Как удалить файл без возможности его восстановления?


9-1062426521
MeF88
2003-09-01 18:28
2004.04.04
Экспортер в x файлы для 3д Макс 4.0


4-1074871367
Phrodo
2004-01-23 18:22
2004.04.04
Информация об открытых хэндлах процесса


3-1078399438
digester
2004-03-04 14:23
2004.04.04
Проблема IBQuery.close;


1-1079480653
Villain
2004-03-17 02:44
2004.04.04
Чтение файла.




   Наверх