VCL.NET needs WideStrings unit

Discussion of open issues, suggestions and bugs regarding usage of dbExpress drivers for SQL Server in Delphi and C++Builder
Post Reply
corneliusd
Posts: 24
Joined: Thu 21 Dec 2006 08:45
Location: Portland, OR
Contact:

VCL.NET needs WideStrings unit

Post by corneliusd » Sun 24 Dec 2006 18:28

The dbExpress driver I just got works great for me in the following IDE's I've tested:
--Delphi 2005 Win32
--Delphi 2005 VCL.NET
--Delphi 2006 Win32
However, when I bring up a simple test app created in Delphi 2006 Win32 and convert it to Delphi 2006 VCL.NET, I find the SQLConnection component now uses TWideStrings for it's parameters rather than TStrings like Delphi 2005 did.

This is not a CoreLab problem, but I was wondering if anyone else has tried to do dbExpress with Delphi 2006 VCL.NET and gotten around this issue?

In desperation, I copied the WideStrings unit from the BDS\4.0\source\Win32\rtl\common directory to my project directory and it worked! But I'm not sure it's a good idea--I'm just a little nervous. I'd feel better to hear that someone else has done this, but am surprised this wasn't tested at Borland.

Post Reply