Delphi2CS Error messages


Following error messages are reported by Delphi2CS. It is helpful for you to modify new C# codes.


Error Message

Description

Unsupported class: 'XXXX'

The 'XXXX' is a component or object of Delphi, but there is no a corresponding object in C#.NET.

Unsupported function or procedure: 'XXXX'

The 'XXXX' is a routine of Delphi, but there is no a corresponding method in C#.NET.

Unsupported property or method: 'XXXX'

The 'XXXX' is a property or method of Delphi object or component, but there is no a corresponding property or method in C#.NET.

Undeclared identifier: 'XXXX'

The 'XXXX' is a constant or variable of Delphi, but there is no a corresponding constant or variable in C#.NET.

Syntax Error

Delphi2CS is unable to parse your .pas file, please check whether your .pas file contains the unsupported grammar. Please contact us at support@netcoole.com.



1. Unsupported grammar:(Condition compiler)


   str = {$IFDEF LINUX} 'Linux' {$ENDIF} {$IFDEF MSWINDOWS} 'Windows' {$ENDIF};

   PROCEDURE Test;
   {$IF AAAA}
   BEGIN
    ...
   END
   {$ELSE}
   BEGIN
    ...
   END
   {$IFEND}

You may modify above codes to the following, and Delphi2CS will work fine:

   {$IFDEF LINUX}
     str = 'Linux';
   {$ENDIF}
   {$IFDEF MSWINDOWS}
     str = 'Windows' ;
   {$ENDIF}

   PROCEDURE Test;
   BEGIN
   {$IF AAAA}
    ...
   {$ELSE}
    ...
   {$IFEND}
   END