D
dingtip
Unregistered / Unconfirmed
GUEST, unregistred user!
我用共享单位声明了一个类,想用私有函数赋值给类成员变量。可是编译器提示
incompatiable types.不知那里犯了错,还有如何声明全局变量。
unit ShareUnit;
interface
uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Registry, StdCtrls;
type
TShare = class(Tobject)
private
function GetVerType(const AFlag): Integer;
public
procedure CloseIPCClose;
function GetWindowsVersion: String;
property VerType: Integer read GetVerType;
end;
implementation
incompatiable types.不知那里犯了错,还有如何声明全局变量。
unit ShareUnit;
interface
uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Registry, StdCtrls;
type
TShare = class(Tobject)
private
function GetVerType(const AFlag): Integer;
public
procedure CloseIPCClose;
function GetWindowsVersion: String;
property VerType: Integer read GetVerType;
end;
implementation