E
Eric Kaplan
Why I got error for following code:
vtValue == VT_NULL
1>d:\trash4\database\database.cpp(156) : error C2593: 'operator ==' is
ambiguous
======================
bool Table::Get(char* FieldName,int& FieldValue){
_variant_t vtValue;
vtValue = m_Rec->Fields->GetItem(FieldName)->GetValue();
if (vtValue == VT_NULL ){
FieldValue = 0;
} else {
FieldValue=vtValue.date;
}
}
vtValue == VT_NULL
1>d:\trash4\database\database.cpp(156) : error C2593: 'operator ==' is
ambiguous
======================
bool Table::Get(char* FieldName,int& FieldValue){
_variant_t vtValue;
vtValue = m_Rec->Fields->GetItem(FieldName)->GetValue();
if (vtValue == VT_NULL ){
FieldValue = 0;
} else {
FieldValue=vtValue.date;
}
}