T
tuiger
Unregistered / Unconfirmed
GUEST, unregistred user!
请问TEvent.Create后的参数该如何写
它的说明为:
Instantiates a TEvent object to represent an event object.
type
PSecurityAttributes = ^TSecurityAttributes;
TSecurityAttributes = record
nLength: DWORD;
lpSecurityDescriptor: Pointer;
bInheritHandle: BOOL;
end;
constructor Create(EventAttributes: PSecurityAttributes;
ManualReset, InitialState: Boolean;
const Name: string
我是这样写的:
Event_Readable.Create(nil,True,False,'Event_Readable');
可运行时程序就报错,
不知该如何写这个Event.Create才正确
它的说明为:
Instantiates a TEvent object to represent an event object.
type
PSecurityAttributes = ^TSecurityAttributes;
TSecurityAttributes = record
nLength: DWORD;
lpSecurityDescriptor: Pointer;
bInheritHandle: BOOL;
end;
constructor Create(EventAttributes: PSecurityAttributes;
ManualReset, InitialState: Boolean;
const Name: string
我是这样写的:
Event_Readable.Create(nil,True,False,'Event_Readable');
可运行时程序就报错,
不知该如何写这个Event.Create才正确