Using COleCurrency with ODBC and Visual C++
Posted on 2004-03-26
I am writing a database application (using access). I have data fields in the database that are defined as currency. I have defined edit boxes within my applications as COleCurrency. I am having problems using
From research on the web it seems that the correct call is rfx_byte()... (it's not rfx_currecny as that is only for DAO, as far as I can tell)
however, I get the following error when I use that:
rror C2664: 'RFX_Byte' : cannot convert parameter 3 from 'class COleCurrency' to 'unsigned char &'
A reference that is not to 'const' cannot be bound to a non-lvalue
line of code looks like:
RFX_Byte(pFX, _T("[CRDAmount]"), m_CRDAmount);
where m_CRDAmount is of the COleCurrency type.
So how do I fix this?