CRSQLConnection.pas(163): W1044 Suspicious typecast of WideString to PAnsiChar

Discussion of open issues, suggestions and bugs regarding usage of dbExpress drivers for SQL Server in Delphi and C++Builder
Post Reply
henrikkehm
Posts: 3
Joined: Tue 24 Jan 2006 13:05
Location: Hamburg, Germany

CRSQLConnection.pas(163): W1044 Suspicious typecast of WideString to PAnsiChar

Post by henrikkehm » Wed 30 May 2007 14:40

Hi,

I get a warning from BDS 2006 -> Delphi Win32 personality when I compile the unit CRSQLConnection.pas :

CRSQLConnection.pas(163): W1044 Suspicious typecast of WideString to PAnsiChar

if Params.Values[SRequiredFields] '' then
--> SQLConnection.SetOption(coRequiredFields, LongInt(PChar(Params.Values[SRequiredFields])));

Regards
Henrik Kehm

Jackson
Posts: 512
Joined: Thu 26 Jan 2006 10:06

Post by Jackson » Thu 31 May 2007 09:12

Thank you for information.
We have reproduced this issue with the warning and fixed it.
This fix will be included in the next build of DbxSda.
Please ignore this warning.

Post Reply