Вниз
Скачать: 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.019 c
4-1074689573
prt
2004-01-21 15:52
2004.04.04
Цвет рабочего стола


1-1079675464
AleksandrKu
2004-03-19 08:51
2004.04.04
Как по нажатии клавиши изменить фокус ввода


1-1079261460
XPloit
2004-03-14 13:51
2004.04.04
XP Style в Delphi 8


14-1078834884
Undert
2004-03-09 15:21
2004.04.04
Посоветуйте программку


3-1078819320
denik
2004-03-09 11:02
2004.04.04
Каким образом выйти из режима редактирования?




   Наверх