I went with my second decision.
class NewSelectionDlg : public CDialog { // Construction public: class CProductListBox { public: friend ostream& operator <<(ostream& o, const CProductListBox& b) { return o << b.m_lstEclispeProducts; } };
I still get the error message - error C2039: "m_lstEclispeProducts": is not a member of "NewSelectionDlg :: CProductListBox"
I'm not sure why this happens because part of the NewSelectionDlg class contains this code (the corresponding line is in bold) - if you have additional help / suggestions, this will be a big help. Thanks
// Dialog Data //{{AFX_DATA(NewSelectionDlg) enum { IDD = IDD_NEW_SELECTION }; CButton m_btnMessageBoard; CButton m_btnMoreInfo; CComboBox m_cmbOpenDocuments; CButton m_btnOk; CButton m_btnStateApprovals; CComboBox m_cmbProductType; /// CListBox m_lstSalesConcepts; CButton m_chkObjectiveWizard; **CProductListBox m_lstEclipseProducts;**
source share