Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2004.04.04;
Скачать: 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 вся ветка

Текущий архив: 2004.04.04;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.035 c
3-1078490558
Kein
2004-03-05 15:42
2004.04.04
блокировка таблица


14-1078811223
ИМХО
2004-03-09 08:47
2004.04.04
Потрепаться - почтой


1-1079640169
Tack83
2004-03-18 23:02
2004.04.04
Popup-меню в несколько колонок


14-1078839141
race1
2004-03-09 16:32
2004.04.04
slow lan


14-1078743785
Mox Fulder
2004-03-08 14:03
2004.04.04
WinAMP