Вниз
Скачать: 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.02 c
1-1079588415
tatar
2004-03-18 08:40
2004.04.04
Copyfile RenameFele по маске


1-1079668537
Dimm
2004-03-19 06:55
2004.04.04
Как посчитать общую сумму часов


14-1078891957
тихий вовочка
2004-03-10 07:12
2004.04.04
Как работает поиск на этом сайте?


6-1075105145
Arsen
2004-01-26 11:19
2004.04.04
Proxy в WebBrowser


11-1058185200
Sagrer
2003-07-14 16:20
2004.04.04
Проблема с размером окна в XP.




   Наверх