Hallo,
ich erhalte die Fehlermeldung: "Identifier expected but 'IMPLEMENTATION' found"
Ich will die Komponente in Delphi 5 Ent. kompilieren. In Delphi 3 Pro funktioniert das ohne Probleme.
Das ist der Anfang der Datei. Bei "implementation" unten tritt der Fehler auf.
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90:
| {$I DFS.INC}
unit GradFormReg;
{$IFNDEF DFS_WIN32} Error! This unit is only available for Win32. {$ENDIF}
interface
uses {$IFDEF DFS_COMPILER_3_UP} ExptIntf, EditIntf, {$ENDIF} Windows, SysUtils, StdCtrls, GradForm, Consts; const sGradFormObjRepositoryPage = 'DFS'; sGradFormProjObjRepositoryPage = 'DFS';
type
{$IFDEF DFS_COMPILER_3_UP} TGradientFormExpert = class(TIExpert) public function GetStyle: TExpertStyle; override; function GetName: string; override; function GetAuthor: string; override; function GetComment: string; override; function GetPage: string; override; function GetGlyph: HICON; override; function GetState: TExpertState; override; function GetIDString: string; override; function GetMenuText: string; override; procedure Execute; override; end;
{$IFDEF DFS_DELPHI_3_UP} TGradientFormProjectExpert = class(TIExpert) public function GetStyle: TExpertStyle; override; function GetName: string; override; function GetAuthor: string; override; function GetComment: string; override; function GetPage: string; override; function GetGlyph: HICON; override; function GetState: TExpertState; override; function GetIDString: string; override; function GetMenuText: string; override; procedure Execute; override; end;
TGradientFormProjectCreator = class(TIProjectCreator) public function Existing: boolean; override; function GetFileName: string; override; function GetFileSystem: string; override; function NewProjectSource(const ProjectName: string): string; override; procedure NewDefaultModule; override; procedure NewProjectResource(Module: TIModuleInterface); override; end; {$ENDIF}
procedure Register; {$ENDIF}
implementation {$IFDEF DFS_COMPILER_3_UP} uses ToolIntf, DsgnIntf, TypInfo;
const CRLF = #13#10; |
Moderiert von
raziel: Code- durch Delphi-Tags ersetzt.