Re: Recordset problems with ADO/C++

From: Arnie Mauer (xxx_at_nowhere.net)
Date: 10/22/04


Date: Fri, 22 Oct 2004 11:45:22 -0400


"claire" <claire@discussions.microsoft.com> wrote in message
news:95CEB3F3-A6D2-4191-B4F1-2B36E566A83F@microsoft.com...
> _RecordsetPtr newRecordSet(__uuidof(Recordset));
>
>
> The following:
> newRecordSet->Open()
>
> fails with an access violation in the recordset15::raw_open even
> though
> newRecordSet appears to be fine. I have a connection that works
> just fine as
> well.
>
> Can anyone help me out with this???

I'm fairly new to ADO so don't take this as gospel. I've never seen
it done that way before (in the constructor). I've always done:

_RecordsetPtr pRst;
pRst.CreateInstance(__uuidof(Recordset));