Hello, Hope someone can help me with this.

(using VS.net, MFC 7.0)

I have an app wizard created dialog app which contains one cancel button & one list box. mfcDlg.h contains a public member variable m_output (See header below)

How if i add a new generic class and try to access m_output or listbox from the new class it is not available, even if I use "extern CString m_ouput" in the new class header file.

Any ideas? I am kinda stuck

// mfcDlg.h : header file

#pragma once
#include "afxwin.h"
#include "filescan.h"

// CmfcDlg dialog
class CmfcDlg : public CDialog
// Construction
CmfcDlg(CWnd* pParent = NULL); // standard constructor

// Dialog Data
enum { IDD = IDD_MFC_DIALOG };

virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support

// Implementation
HICON m_hIcon;

// Generated message map functions
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();

CListBox listbox; <-- not accessable from another file
CString m_output; <-- not accessable from another file