Hallo ich habe ein Problem bei der Deklaration von folgenden Interface:
Delphi-Quellcode:
TSession = class(TTypedComObject, ISession)
private
FSession :TSession;
FstrType :string;
//FFolders :TFolders;
FParent : TApp;
strSessionID :string;
MyToolbox : TToolbox;
MyWininet : TWininet;
MyURLInfo : TURLInfo;
protected
function Logoff: HResult; stdcall;
function Logon(Username, Password: OleVariant): HResult; stdcall;
function setIP(Value: OleVariant): HResult; stdcall;
constructor Create;
destructor Destroy;
{ISession-Methoden hier deklarieren}
public
//TODO: properties implementieren, methoden implementieren(GetDefaultFolder)
//property Folders: TFolders read FFolders write FFolders;
property Parent: TApp read FParent write FParent;
property Session: TSession read FSession write FSession;
property _type: string read FstrType write FstrType;
end;
TApp = class(TTypedComObject, IApp)
private
FApplication :TApp;
FSession :TSession;
FName :string;
FVersion :string;
protected
{IApp-Methoden hier deklarieren}
public
property Application: TApp read FApplication write FApplication;
property Session : TSession read FSession write FSession;
property Name : string read FName write FName;
property Version : string read FVersion write FVersion;
end;
Die Zeile " FParent : TApp;" schmeisst die Compilermeldung "undefinierter Bezeichner", da TApp erst später deklariert wird. Wie kann ich das umgehen, OHNE TApp voher zu definieren?(Da TApp ebenfalls TSession nutzt, bleibt das Problem bestehen). Vielen Dank schonmal.
[edit=SirThornberry]Delphi-Tags gesetzt - Mfg, SirThornberry[/edit]