All,
I’m trying to work out a bug and I was hoping someone might have some insight.
I created an app using ADO BINDING. Seems straight forward, I’ve seen several examples from Microsoft and also used the walkthrough from Teach yourself C++ in 21 days ( Everything works great except two fields. Here is one of the two offending binds.
ADO_VARIABLE_LENGTH_ENTRY2(16, adVarChar, m_szAddress2, sizeof(m_szAddress2), lAddress2Status, TRUE)
It looks like lAddress2Status always equals 3 when evaluating the following:
if (adFldOK == pRs->lAddress2Status)
m_strAddress2 = pRs->m_szAddress2;
else
m_strAddress2 = _T(""
which bumps the code into the else always leaving the edit box blank.
Does anyone know how lAddress2Status value gets set and what the different values are?
Your help would be greatly appreciated.
Let me know if I can provide additional info.
Thanks
KCI
I’m trying to work out a bug and I was hoping someone might have some insight.
I created an app using ADO BINDING. Seems straight forward, I’ve seen several examples from Microsoft and also used the walkthrough from Teach yourself C++ in 21 days ( Everything works great except two fields. Here is one of the two offending binds.
ADO_VARIABLE_LENGTH_ENTRY2(16, adVarChar, m_szAddress2, sizeof(m_szAddress2), lAddress2Status, TRUE)
It looks like lAddress2Status always equals 3 when evaluating the following:
if (adFldOK == pRs->lAddress2Status)
m_strAddress2 = pRs->m_szAddress2;
else
m_strAddress2 = _T(""
which bumps the code into the else always leaving the edit box blank.
Does anyone know how lAddress2Status value gets set and what the different values are?
Your help would be greatly appreciated.
Let me know if I can provide additional info.
Thanks
KCI