Вниз
Скачать: CL | DM;

var Windows: array of HWnd; ... SetLength(Windows,WindowsCount);   Найти похожие ветки 

← →
Delphi5.01 ©   (2003-08-01 20:33) [0]

procedura doljna vozrashat masiv okon, a imenno ix Handle, no izmenat masiv ne vozmojno iz za togo chot napisano "var" pered "Windows: array of HWnd" (ia je ne znau skolko okon budet! po etoi prichine peredau dinamicheski).

procedure GetWindows(ParentWnd: HWnd;
var Windows: array of HWnd);
var WindowsCount: Integer;
begin
Inc(WindowsCount);
( Windows,WindowsCount) procedura doljna vozrashat masiv okon, a imenno ix Handle, no izmenat masiv ne vozmojno iz za togo chot napisano "var" pered "Windows: array of HWnd" (ia je ne znau skolko okon budet! po etoi prichine peredau dinamicheski).

procedure GetWindows(ParentWnd: HWnd;
var Windows: array of HWnd);
var WindowsCount: Integer;
begin
Inc(WindowsCount);
SetLength(Windows,WindowsCount);
end;

Kak oboiti problemu?
P.S. eto vopros ne vtemu mne kajetsa?


← →
Rouse_ ©   (2003-08-02 08:31) [1]

HWND = type LongWord;

Желаю успехов


← →
YURiQUE ©   (2003-08-02 12:06) [2]

Попробуй так


type
MyArray = array of HWnd;

procedure GetWindows(ParentWnd: HWnd;
var Windows: MyArray);
begin
Inc(WindowsCount);
( Windows,WindowsCount)
Попробуй так


type
MyArray = array of HWnd;

procedure GetWindows(ParentWnd: HWnd;
var Windows: MyArray);
begin
Inc(WindowsCount);
SetLength(Windows,WindowsCount);
end;

//...

var
w: MyArray;
begin
//...
GetWindows(Handle, w);
//...
end.


← →
YURiQUE ©   (2003-08-02 12:07) [3]

Попробуй так


type
MyArray = array of HWnd;

procedure GetWindows(ParentWnd: HWnd;
var Windows: MyArray);
begin
Inc(WindowsCount);
( Windows,WindowsCount)
Попробуй так


type
MyArray = array of HWnd;

procedure GetWindows(ParentWnd: HWnd;
var Windows: MyArray);
begin
Inc(WindowsCount);
SetLength(Windows,WindowsCount);
end;

//...

var
w: MyArray;
begin
//...
GetWindows(Handle, w);
//...
end.



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.019 c
8-18490
Urvin
2003-06-07 03:03
2003.10.06
Работа с палитрой цветов


1-18287
evgeniy33
2003-09-26 09:24
2003.10.06
как отключить в программе нажатие Alt+F4


1-18318
SergP
2003-09-23 17:08
2003.10.06
Можно ли делать отчет (TQuickRep) из данных массива?


3-18274
pashtet
2003-09-15 14:45
2003.10.06
Архивация БД.


1-18331
Jiura32d
2003-09-23 17:35
2003.10.06
Вопрос к профессионалам!!!




   Наверх