Article View: borland.public.cppbuilder.database.ado
Article #1300Re: ADO interfaces
From: Viatcheslav V. Vassiliev
Date: Thu, 05 Aug 2004 10:50
Date: Thu, 05 Aug 2004 10:50
43 lines
2494 bytes
2494 bytes
>CheckAutoResult()
Add to any .cpp file:
#include <comobj.hpp>
namespace System
{
void __fastcall CheckSafecallResult(HRESULT hr)
{
OleCheck(hr);
}
}
For interfaces I would prefer to import ADODB type library (Project\Import
type library - Microsoft ActiveX Data Objects 2.x library). This will give
you .cpp and .h files for MDAC installed on your computer.
//------------------------------------------
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)
"George Gombos" <ggombos_spamsucks@easeweb.com> ???????/???????? ? ????????
?????????: news:411207b5@newsgroups.borland.com...
> Hello everybody!
>
> I was wondering about the preffered way of using the ADO interfaces (not
> the VCL objects) with Borland C++ Builder 6. From what I can see, I can
> bring in the interface definitions from either adoint.hpp (which gives
> me Delphi-style interfaces like _di__Recordset) or adodb_2k.h/adodb_xp.h
> (complete with TComInterface-based smart-pointers).
> Can anybody shed some light on what the differences between these 2
> approaches are?
> Also, at the moment there isn't actually much choice, since the first
> option results in linker errors because of an unresolved external
> (CheckAutoResult()) when using the properties on the objects (i.e.
> spRecordset->Get_Fields() works but spRecordset->Fields doesn't).
> Anybody know how to fix that? Not sure if there's anything else I need
> to link to...
Technical Details
Message-ID:
<411210ee$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<411207b5@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,d0ef99d5400a331d 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: <411207b5@newsgroups.borland.com> Subject: Re: ADO interfaces Date: Thu, 5 Aug 2004 14:50:22 +0400 Lines: 45 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 213.234.218.42 Message-ID: <411210ee$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1091703022 213.234.218.42 (5 Aug 2004 03:50:22 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail