delphidoc-news Mailing List for DelphiDoc - JADD
Brought to you by:
gveith
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(4) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Gerold V. <Del...@gm...> - 2005-07-02 15:45:20
|
vaa20003 wrote: > Has disconnected check @ - beginning to compile further but > > var Positions :PPoint; //the positions of all files (boxes) > Files :^TPascalFile; //the list of all written files > NextUnit :TPoint; //position of the next file to write > > {Draws a file at the current position and moves the pointer for the next one. > ~param Index index in the list of files > ~param CountPerColumn number of files in a column; 0: as many as fit } > procedure DrawFile(Index: Cardinal; CountPerColumn: Cardinal = 0); > var FileP :^TPascalFile; //entry in list of written files > PositionP :PPoint; //entry in list of positions of files > begin > PositionP := Positions; > inc(PositionP, Index); > if PositionP.x = -1 then //file not yet written? > begin > FileP := Files; - write thet incompatibile type > > I do not understand! You have to use typed pointers to compile DelphiDoc. Either use the project options to set it or use the compiler comment {$T+} or {$TYPEDADDRESS ON} in each file. This error happens because ^TPascalFile and ^TPascalFile are two different types for the compiler (see in Delphi's help file on "$T"). A solution would be to declare the type PPascalFile = ^TPascalFile; and use it instead of the different occurences of ^TPascalFile. I (personally) strongly suggest to enable the type check of the pointers in every project. Regards, Gerold Veith |
From: Gerold V. <Del...@gm...> - 2005-07-02 15:28:26
|
vaa20003 wrote: > At compilation of the project there is a mistake in the module Delphi > ExtActns in function > function DWordEnumToPascalEnumOrd (EnumArray: array of DWORD; > Value: DWORD): Integer; > begin > for Result: = Low (EnumArray) to High (EnumArray) do > if Value = EnumArray [Result] then Exit; > raise Exception. CreateRes (@SInvalidEnumValue); > end; > > The is the no overloaded version of CreateRes then can be called > with these arguments DelphiDoc is not a Compiler. It has only the information of the files it parses. So it does not know all identifiers and types (DWORD is f.i. only known if the unit Windows is also parsed). Overloaded functions are selected by the number and types of the parameters. For this reason DelphiDoc can't pick the correct overloaded function and will always use the first one. It's a limitation, and one that will probably never be fixed. I personally suggest not to use overloaded functions, instead use small suffixes, for instance like most the constructors in the class Exception. It makes the source code easier to read and less ambiguous. Regards Gerold Veith |
From: vaa20003 <vaa...@ya...> - 2005-07-02 13:35:46
|
Delphi 7 Has disconnected check @ - beginning to compile further but var Positions :PPoint; //the positions of all files (boxes) Files :^TPascalFile; //the list of all written files NextUnit :TPoint; //position of the next file to write {Draws a file at the current position and moves the pointer for the next one. ~param Index index in the list of files ~param CountPerColumn number of files in a column; 0: as many as fit } procedure DrawFile(Index: Cardinal; CountPerColumn: Cardinal = 0); var FileP :^TPascalFile; //entry in list of written files PositionP :PPoint; //entry in list of positions of files begin PositionP := Positions; inc(PositionP, Index); if PositionP.x = -1 then //file not yet written? begin FileP := Files; - write thet incompatibile type I do not understand! Best regard Alex. vaa...@ya... |
From: vaa20003 <vaa...@ya...> - 2005-07-02 12:49:47
|
Delphi 7=2E At compilation of the project there is a mistake in the module Delphi ExtA= ctns in function function DWordEnumToPascalEnumOrd (EnumArray: array of DWORD; Value: DWORD= ): Integer; begin for Result: =3D Low (EnumArray) to High (EnumArray) do if Value =3D EnumArray [Result] then Exit; raise Exception=2E CreateRes (@SInvalidEnumValue); end; The is the no overloaded version of CreateRes then can be called with thes= e arguments |
From: Gerold V. <Del...@gm...> - 2004-07-02 13:00:15
|
Hello, DelphiDoc has just changed its hoster to SourceForge. Of course you know this if you read this, but somehow this list has to be launched. Anyone wanting to monitor the further development of DelphiDoc can now register to this mailing-list or monitor special items on the project page, and of course also post new entries to the support- or feature-request trackers or (hopefully not too much) to the bug tracker. Kind regards, Gerold Veith |