Вниз
Скачать: 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.021 c
1-1079301312
Troy
2004-03-15 00:55
2004.04.04
паскаль. integer


1-1079466515
fun
2004-03-16 22:48
2004.04.04
Programming


9-1063393281
Legafor
2003-09-12 23:01
2004.04.04
Игра Колобки v0.005


7-1074238356
Serge
2004-01-16 10:32
2004.04.04
Disable Start menu on descktop doubleclik


1-1079192406
Vilux
2004-03-13 18:40
2004.04.04
Помогите с потоками




   Наверх