Вниз
Скачать: 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.022 c
3-1078276851
DimaF
2004-03-03 04:20
2004.04.04
TIBDataSet


11-1053866982
Minog
2003-05-25 16:49
2004.04.04
VCL&KOL


3-1078328414
В л а д и м и р
2004-03-03 18:40
2004.04.04
Экспорт данных из таблицы Exel в таблицу базы данных


1-1079546847
Chcnger
2004-03-17 21:07
2004.04.04
Опять факториал


1-1079699468
lika
2004-03-19 15:31
2004.04.04
StringList что не так?




   Наверх