由于可能是null值,所以要处理下
//int型,长整形的话short改为long
#define rsi2(R,X) (R->EoF?0:(R->Fields->Item[_variant_t(X)]->Value.vt == VT_NULL ? 0:(short)(R->Fields->Item[_variant_t(X)]->Value)))
然后可以
z=rsi2(m_pRst,"max_z")
由于可能是null值,所以要处理下
//int型,长整形的话short改为long
#define rsi2(R,X) (R->EoF?0:(R->Fields->Item[_variant_t(X)]->Value.vt == VT_NULL ? 0:(short)(R->Fields->Item[_variant_t(X)]->Value)))
然后可以
z=rsi2(m_pRst,"max_z")