我们知道在win32中有SHFlieOpStruct这个结构体,为什么在delphi中要这样声明的呢?var Opstuc:TSHFlieOpStruct
我们知道在win32中有shflieopstruct这个结构体,为什么在delphi中要这样声明的呢?var opstuc:tshflieopstruct
为什么在shflieopstruct中要多个字母t呢。
谢谢
推荐阅读
_shfileopstructa = packed record
wnd: hwnd;
wfunc: uint;
pfrom: pansichar;
pto: pansichar;
fflags: fileop_flags;
fanyoperationsaborted: bool;
hnamemappings: pointer;
lpszprogresstitle: pansichar; { only used if fof_simpleprogress }
end;
shfileopstructa = _shfileopstructa;
shfileopstruct = shfileopstructa;
tshfileopstructa = _shfileopstructa;
tshfileopstruct = tshfileopstructa;
所以tshflieopstruct和shflieopstruct是完全一样的类型。加“t”表示类型名字object pascal默认规则。
————————————————————————————————————
宠辱不惊,看庭前花开花落,去留无意;毁誉由人,望天上云卷云舒,聚散任风。
————————————————————————————————————


讨论区