Article View: borland.public.cppbuilder.database.ado
Article #880Re: Import ADO type library
From: Viatcheslav V. Vassiliev
Date: Tue, 05 Jul 2005 20:48
Date: Tue, 05 Jul 2005 20:48
40 lines
2457 bytes
2457 bytes
C++ Builder has some problems with assigning WideString properties, mostly C++ Builder 5 or previous, in C++ Builder 6 it is solved, but anyway it is safer to assign exactly WideString to property with type WideString. As I understand, sometimes C++ Builder uses incorrect constructor for WideString (or BSTR), for example, with char* (not wchar_t*) as parameter, but here I may be wrong. //------------------------------------------ Regards, Vassiliev V. V. http://www.managed-vcl.com - using .Net objects in Delphi for Win32 + ADO.Net http://www.oledbdirect.com - The fastest way to access MS SQL Server, MS Jet (Access) and Interbase (through OLEDB) "Angel" <user@example.net> ???????/???????? ? ???????? ?????????: news:42ca92bc$1@newsgroups.borland.com... > It works!!! Why??? I don't understand. I did try casting CmdStr to BSTR > and it didn't work. > > Anyway, thank you very much. > > > Viatcheslav V. Vassiliev wrote: > >> Try >> >> DBCommand->CommandText = WideString(CmdStr); >> >> break on next line and look what is in CommandText. Does it work for >> command without parameters? >> >> //------------------------------------------ >> Regards, >> Vassiliev V. V. >> http://www.managed-vcl.com - using .Net objects in Delphi for Win32 + >> ADO.Net >> http://www.oledbdirect.com - The fastest way to access MS SQL Server, >> MS Jet (Access) and Interbase (through OLEDB) >>
Technical Details
Message-ID:
<42caf21c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42c91228$1@newsgroups.borland.com> <42c91c7d$1@newsgroups.borland.com> <42ca5c23$1@newsgroups.borland.com> <42ca92bc$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,edb9422f973acd68 X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com> Newsgroups: borland.public.cppbuilder.database.ado References: <42c91228$1@newsgroups.borland.com> <42c91c7d$1@newsgroups.borland.com> <42ca5c23$1@newsgroups.borland.com> <42ca92bc$1@newsgroups.borland.com> Subject: Re: Import ADO type library Date: Wed, 6 Jul 2005 00:48:27 +0400 Lines: 42 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 85.93.138.132 Message-ID: <42caf21c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1120596508 85.93.138.132 (5 Jul 2005 13:48:28 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail