Click here to Skip to main content
15,843,144 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi i'm using Direct DAO in according to article:
Using DAO in C/C++ and Visual Studio[^]

But i have problems when i want assing Data format and Boolean Type to Recordset.

For istance

pRecordset -> GetFields()-> Item[3] -> Value = ?

Item[3] = Bool Field or Date

can you help me the row with Boolean and the date field.

Thanks Giovanni

What I have tried:

I have tried:

pRecordset -> GetFields()-> Item[3] -> Value = m_Var.m_boolVal; -> CRASH
pRecordset -> GetFields()-> Item[3] -> Value = _variant_t(m_Var.m_boolVal); -> CRASH

for date
pRecordset -> GetFields()-> Item[5] -> Value = COleDateTime(m_Var.m_pdate->year, m_Var.m_pdate->month, m_Var.m_pdate->day, m_Var.m_pdate->hour, m_Var.m_pdate->minute, m_Var.m_pdate->second); - NO GOOD
Posted
Updated 11-Mar-16 21:43pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900