Главная страница
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.031 c
1-1079701109
Igorok
2004-03-19 15:58
2004.04.04
TStringGrid


1-1079612266
Сниф
2004-03-18 15:17
2004.04.04
Где можно взять подробный пример создания Com-объекта?


3-1078214709
Laymer
2004-03-02 11:05
2004.04.04
Memo - поле


6-1074786664
webpauk
2004-01-22 18:51
2004.04.04
Net.exe & MailSlot


9-1063462188
Orc
2003-09-13 18:09
2004.04.04
Фоновая анимация