Article View: borland.public.cppbuilder.database.ado
Article #1961Re: Errors collection
From: Viatcheslav V. Vassiliev
Date: Wed, 07 Jan 2004 11:05
Date: Wed, 07 Jan 2004 11:05
31 lines
1847 bytes
1847 bytes
Try add this code to any .cpp file:
#include <comobj.hpp>
namespace System
{
void __fastcall CheckSafecallResult(HRESULT hr)
{
OleCheck(hr);
}
}
//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi + ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)
"YangKai Liu" <yangkai.liu@burkelee.com> �������/�������� � ��������
���������: news:opr1b0f5klm0jviy@localhost...
When I try the following code with a TADOConnection object:
long errors = Connection->Errors->Count;
I get the following linker error:
Unresolved external 'System::__linkproc__ __fastcall CheckAutoResult()'
referenced from C:\PROGRAM
FILES\BORLAND\CBUILDER\LIB\RELEASE\VCLE.LIB|syssupp
Can someone tell me what goes wrong? Thanks
Technical Details
Message-ID:
<3ffbe968@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<opr1b0f5klm0jviy@localhost>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,2747e4a5aba10e1b X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2004-01-07 03:39:38 PST From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com> Newsgroups: borland.public.cppbuilder.database.ado References: <opr1b0f5klm0jviy@localhost> Subject: Re: Errors collection Date: Wed, 7 Jan 2004 14:05:59 +0300 Lines: 33 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 213.234.218.42 Message-ID: <3ffbe968@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1073473896 213.234.218.42 (7 Jan 2004 03:11:36 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail