CDataBase, MFC and NullFieldStatus on new machine

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Today I put my new 7 computer on the desk, I had a pretty old XP box till now. After installing VS 2010 and getting my project build together I was getting the pseudo null showing in my long fields instead of a blank edit box when built as debug; the problem
doesnt show in release. I fixed it like this for now:
void RaRecordset::DoFieldExchange( CFieldExchange* pFX )<br/>
{
#ifdef _DEBUG<br/>
if( pFX->m_nOperation == CFieldExchange::Fixup )<br/>
pFX->m_bField= 1;<br/>
#endif<br/>
//Null field HACK, see RFX_Long at case CFieldExchange::Fixup where<br/>
//if (pFX->m_bField)<br/>
// {<br/>
// pFX->m_prs->SetNullFieldStatus(nField - 1);<br/>
// }<br/>
...
The updates on XP have different numbers than 7, that is the only difference I can see between the two machines. As I dont have this as an issue on my XP build can I assume there is something possibly wrong with the 7 VS current install? Otherwise, Im
baffled.
Best, Dan.


View the full article
 
Back
Top