Examples Delphi

Many of you might have experienced problems when trying to use DsgnIntf.pas in applications that are compiled under Delphi 6 or 7. Since the original DsgnIntf.pas code has been splitted up in those newer versions, the following trick helps in most situations:
{$UNDEF DEL345}
{$IFDEF VER100} {$DEFINE DEL345} {$ENDIF}
{$IFDEF VER120} {$DEFINE DEL345} {$ENDIF}
{$IFDEF VER130} {$DEFINE DEL345} {$ENDIF}
uses
{$IFDEF DEL345}
DsgnIntf
{$ELSE}
DesignIntf, DesignEditors, VCLEditors, RTLConsts
{$ENDIF};
Put the above code at the place that pointed to just DsgnIntf before, and you should be a happy person again. :-)