Link to home
Start Free TrialLog in
Avatar of agfk
agfk

asked on

how do I use IsFieldNull?

According to the docs, IsFieldNull takes one parameter, void *pv.   What
does pv want to be pointed at?  The following doesn't work:

CDBVariant     varValue;

m_pRecordSet->GetFieldValue(TableData[0], varValue, SQL_C_SLONG);

if (m_pRecordSet->IsFieldNull(&varValue))
// do something
else
// do something else

Thanks.
Avatar of gelbert
gelbert

Check MFC samle Catalog2 in Database section
ASKER CERTIFIED SOLUTION
Avatar of SDU
SDU

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial