Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

PLease Help...OLEDB consumer with MFC

lg2530lg2530 Member Posts: 1
I was trying to build OLEDB consumer with MFC application Wizard. So far I had not added anything manually in my application. I just used wizard. But
I am getting error

error C2039: 'GetRowsetBase' : is not a member of 'COLEDBDepartmentMFC2Set'

I tried hard to fix the problem but no success. Please help me.

So far my understanding is that your project set class is derived from RecordSet class by default. But if you look at my set class it shows no such inheritance as shown below:

class COLEDBDepartmentMFC2Set
{
public:


void GetRowsetProperties(CDBPropSet* pPropSet)
{
pPropSet->AddProperty(DBPROP_CANFETCHBACKWARDS, true, DBPROPOPTIONS_OPTIONAL);
pPropSet->AddProperty(DBPROP_CANSCROLLBACKWARDS, true, DBPROPOPTIONS_OPTIONAL);
}
};

Help me with these problems. I'm new to OLEDB so any help is appreciated.

--------------------------------------------------------------------------------

Sign In or Register to comment.