🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #56

Re: BCB6 ADO problem with Vista

#56
From: George P Boutwell
Date: Wed, 14 Nov 2007 16:13
16 lines
1916 bytes
"Viatcheslav Valerievitch Vassiliev" <support@oledbdirect.com> wrote:
>>   str = "Provider=SQLOLEDB.1;Integrated Security=SSPI;";
>>   str += "Data Source=")+_Server+_T(";";
>>   str += "Initial Catalog=")+_Database+_T(";";
>
>What is a type of str? Anyway it seems that you combine ASCII and Unicode 
>(strings in form _T"..."). Try to use either ASCII or Unicode, better to use 
>WideString. Check what is exactly in TADOConnection.ConnectionString just 
>before you call Connected = true (or Open()), to see that string is not 
>mangled by combining ASCII and Unicode. Try to have str of type WideString 
>and use all constants without _T.
>
>WideString str = WideString("...") + WideString("...")

str is 'essentially' std::string and yeah... I meant to trim out the _T() stuff, but missed a few places...  We compile BCB6 apps almost exclusively in non-UNICODE.  But the same code when we compile in VS.net is almost exclusively compiled with UNICODE enabled.
Technical Details
Message-ID: <473b2cc8$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4734a20d$1@newsgroups.borland.com> <4734c21d$1@newsgroups.borland.com> <4737d17e$1@newsgroups.borland.com> <47398947@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,d628bc7458729f40
X-Google-Attributes: gid10698b,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "George P Boutwell" <gboutwel@valleyhope.com>
Sender: "George P Boutwell" <gboutwel@valleyhope.com>
Reply-To: "George P Boutwell" <gboutwel@valleyhope.com>
Subject: Re: BCB6 ADO problem with Vista
Newsgroups: borland.public.cppbuilder.database.ado
X-User-Info: 24.225.9.218     
References: <4734a20d$1@newsgroups.borland.com> <4734c21d$1@newsgroups.borland.com> <4737d17e$1@newsgroups.borland.com> <47398947@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <473b2cc8$1@newsgroups.borland.com>
Date: 14 Nov 2007 09:13:44 -0700
X-Trace: newsgroups.borland.com 1195060424 207.105.83.66 (14 Nov 2007 09:13:44 -0700)
Lines: 17
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail