Hi!
For the code bellow this fatal error is raised, what is the problem? Again this code was compiled successfully in delphi :
GDIPAPI.pas(3463,30) Fatal: Syntax error, ";" expected but "." found
code :
type
TGdiplusBase = class
public
class function NewInstance: TObject; override;
procedure FreeInstance; override;
end;
implementation
// the "." in the next line is where the error occurs
class function TGdiplusBase.NewInstance: TObject;
begin
Result := InitInstance(GdipAlloc(ULONG(instanceSize)));
end;