G
gondsoft
Unregistered / Unconfirmed
GUEST, unregistred user!
函数中有个参数是过程类,如GetPackageInfo(..InfoProc: TPackageInfoProc);//TPackageInfoProc是个过程,这怎么弄? (100分)<br />完整如下:
type
TPackageInfoProc = procedure (const Name: string; NameType: TNameType; Flags: Byte; Param: Pointer);
procedure GetPackageInfo(Module: HMODULE; Param: Pointer; var Flags: Integer; InfoProc: TPackageInfoProc);
现在我要用GetPackageInfo函数,怎么才能正确传入InfoProc这个参数呢?
我在TForm里这样定义了,
private
procedure PackageInfo(const Name: string; NameType: TNameType;
Flags: Byte; Param: Pointer);
begin
GetPackageInfo(PkgHandle,nil,AFlag,@PackageInfo);//编译通不过
end;
请教高手相教啊!
type
TPackageInfoProc = procedure (const Name: string; NameType: TNameType; Flags: Byte; Param: Pointer);
procedure GetPackageInfo(Module: HMODULE; Param: Pointer; var Flags: Integer; InfoProc: TPackageInfoProc);
现在我要用GetPackageInfo函数,怎么才能正确传入InfoProc这个参数呢?
我在TForm里这样定义了,
private
procedure PackageInfo(const Name: string; NameType: TNameType;
Flags: Byte; Param: Pointer);
begin
GetPackageInfo(PkgHandle,nil,AFlag,@PackageInfo);//编译通不过
end;
请教高手相教啊!