Menu

First Error Message

Help
KevinI
2005-03-09
2012-07-18
  • KevinI

    KevinI - 2005-03-09

    I have just started to use DelphiCodeToDoc. I created a new project and pointed it to two Delphi 2005 units. I have not, as yet, added any additional tags to the units. When I select the Check and Build option I get the following error messagees.

    Parsing file : C:\Dev\ShieldII\Source Code\Shared Classes\Alarms\Alarms.pas
    Could not convert the unit: Unexpected token, expected " ;"
    Parsing file : C:\Dev\ShieldII\Source Code\Shared Classes\Alarms\AlarmsDAO.pas
    Could not convert the unit: Unexpected token, expected " ;"

    Can anyone help?

    Thanks

    Kevin

     
    • TridenT

      TridenT - 2005-03-09

      Can you send me these two files ?
      Are you working with new Delphi2005 writing (as For each ...) ?

      I haven't written any support for Dlephi2005 yet, but I will once I have this version !

       
      • KevinI

        KevinI - 2005-03-10

        I think I have found the problem. In D2005 you can delcare variables and methods to be "strict private". The curernt version of DCTD does not understand this. Eg.

        type
        TTestClass = class
        strict private
        FHappy: boolean;
        FDOB: DateTime;
        FAge: Integer;
        FName: string;
        procedure SetAge(const Value: Integer);
        procedure SetDOB(const Value: DateTime);
        procedure SetHappy(const Value: boolean);
        procedure SetName(const Value: string);
        { Private Declarations }
        public
        constructor Create;
        property Name : string read FName write SetName;
        property Happy : boolean read FHappy write SetHappy;
        property Age : Integer read FAge write SetAge;
        property DOB : DateTime read FDOB write SetDOB;
        end;

        Kevin

         
        • jvanderreest

          jvanderreest - 2005-03-15

          Hi,
          Why is this forum called
          "dephicodetodoc - Help"

          don't you mean
          "delphicodetodoc - Help"

          as in Delphi with an "L"

          Regards
          John Vander Reest

           
          • TridenT

            TridenT - 2005-03-15

            Erf !

            When I registered the project on SF.NET, I mispelled it. It is not really clear to rename the proejct, and since the DCTD pages are links to this name ( http://dephicodetodoc.sourceforge.net/ ), I don't want to change, because of the 404 error resulting.

            I will contact SF.NET guys to change this, but it is not my priority !

            Trident

             
    • KevinI

      KevinI - 2005-03-10

      I think there are many bits in D2005 that DCTD does not understand. ArrayList is another.

      Kevin

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.