Пользователь
Сообщения: 59
Благодарности: 0
|
Профиль
|
Сайт
|
Отправить PM
| Цитировать
А вот когда написал такой код, то компилятор говорит, мол не закрыл запись:
'(' expected but ',' found - Строка k:smallint;
';' expected but 'FOR' found - Строка begin
'.' expected but ';' found - Строка IntMas[k]:=I^[k];
library FirstPlugin;
uses
Forms, StdCtrls, Graphics, Controls, Classes, ExtCtrls;
{$R *.res}
type
IntMas = array of pointer;
PIntMas = ^IntMas;
function PluginExec(I,R,S,B:PIntMas;ISize,RSize,SSize,BSize:smallint):boolean;
var
Form1: TForm;
k:smallint;
begin
Application.CreateForm(TForm, Form1);
setlength(IntMas,Isize);
for k:=0 to ISize do
IntMas[k]:=I^[k];
Form1.ShowModal;
PluginExec:=true;
end;
exports PluginExec;
end.
Подскажите, что не так.
|
-------
Windows 2000 forever!
Отправлено: 21:13, 20-02-2005
| #7
|