EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Compiler warnings in Delphi 2009

Posted: 02/18/2009 02:58:31
by Anders Båth (Standard support level)
Joined: 01/08/2009
Posts: 1

When compiling Solid FS v4.0.103 I get the the following compiler warnings in Delphi 2009:

[DCC Warning] SolFS.pas(2445): W1058 Implicit string cast with potential data loss from 'Char' to 'AnsiString'
[DCC Warning] SolFS.pas(2536): W1044 Suspicious typecast of AnsiString to PWideChar

It seems to me that these warnings needs to be adressed in order to get full compatibility with Delphi 2009 (unicode).
Posted: 02/18/2009 03:43:09
by Eugene Mayevski (Team)

Thank you for pointing at the issue. The problem affects only the functions that treat the tag contents as ansi string. This should not affect the applications, as Unicode is the primary format of string manipulation in SolFS.

The solution is simple - in first method change Buffer type from PChar to PAnsiChar and in second case change the cast from PChar to PAnsiChar.

Sincerely yours
Eugene Mayevski



Topic viewed 4930 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!