Article View: borland.public.cppbuilder.database.ado
Article #3590Re: how to use ado in console , do not use vcl?
From: Vassiliev V.V.
Date: Tue, 16 Jul 2002 05:36
Date: Tue, 16 Jul 2002 05:36
56 lines
2324 bytes
2324 bytes
Do not #import, bcb does not always correctly imports. Use #include
<adoint.h> (you may also need other includes).
Regards,
Vassiliev V.V.
http://www.oledbdirect.com
"rechardfeng" <jm_feng@sina.com> �������/�������� � �������� ���������:
news:3d32c6de_1@dnews...
> Thanks:
>
> I use
>
> #import "C:\Program Files\Common Files\System\ADO\msado15.dll"\
> rename_namespace("ADOCG") rename("EOF", "EndOfFile")
>
> but bcb 5.0 report:
>
> "[C++ Warning] msado15.tlh(394): W8041 Negating unsigned value
> [C++ Error] msado15.tlh(846): E2494 Unrecognized __declspec modifier
> [C++ Error] msado15.tlh(846): E2321 Declaration does not specify a tag or
an
> identifier
> [C++ Error] msado15.tlh(842): E2316 'GetRow' is not a member of
> 'ADORecordConstruction'
> [C++ Error] msado15.tli(275): E2316 'ADORecordConstruction::GetRow()' is
not
> a member of 'ADORecordConstruction'
> "
>
> error code generate by bcb:
> "but ADORecordConstruction : IDispatch
> {
> //
> // Property Data :
> //
> __declspec(property(get=GetRow,put=PutRow )) IUnknown* Row;
> __declspec(property( put=PutParentRow //
> // Wrapper Methods :
> //
> IUnknown* GetRow( );
> HRESULT PutRow(
> IUnknown* ppRow );
> HRESULT PutParentRow(
> IUnknown* rhs );
> "
>
> Qustion:
> How resolve it? thanks.
>
>
>
>
>
>
>
Technical Details
Message-ID:
<3d33b9d9_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsswitch.lcs.mit.edu!logbridge.uoregon.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3d32c6de_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,ddd198fe096c39f1 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-07-15 23:35:24 PST From: "Vassiliev V.V." <news@vassilievvv.mtu-net.ru> Newsgroups: borland.public.cppbuilder.database.ado References: <3d32c6de_1@dnews> Subject: Re: how to use ado in console , do not use vcl? Date: Tue, 16 Jul 2002 09:36:53 +0400 Lines: 58 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 62.118.129.49 Message-ID: <3d33b9d9_1@dnews> X-Trace: dnews 1026800089 62.118.129.49 (15 Jul 2002 23:14:49 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsswitch.lcs.mit.edu!logbridge.uoregon.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews