Главная страница
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.065 c
14-1078904214
Dimedrol
2004-03-10 10:36
2004.04.04
Win2000 не грузиться...


14-1078516544
Vasya
2004-03-05 22:55
2004.04.04
Что за зверь - D8


11-1058947455
IronWit
2003-07-23 12:04
2004.04.04
Как пользоватся сплиттером


8-1069859128
TitanDesign
2003-11-26 18:05
2004.04.04
PNG в Delphi


1-1079434560
_sulent
2004-03-16 13:56
2004.04.04
Вопрос по директориям