I'm neither an expertin C++ nor MFC programming, but the following lines of
code seems straight foward, but returns with an
error 2100: illegal indirection.
// create new CReference object
CReference *p_reference = (CReference*) new CReference;
// copy from addreference that belongs to a dialog
*p_reference = (CReference)adddia.addreference;
// sets internal integer value of p_reference., but causes a compilation
*p_reference->m_iID = 1;
If it makes a different, p_reference is later inserted into a COBArray
I actually managed to get round it doing adddia.addreference.m_iID = 1
before copying. But it's all a bit strange to me.