Build 1221 of VAX on VC6 does not correctly determine if a symbol is defined in the context. See the example below, taken from a brand-new AppWizard generated project:
void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAboutDlg)
//}}AFX_DATA_MAP
aboutDlg;
}
BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
//{{AFX_MSG_MAP(CAboutDlg)
// No message handlers
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
// App command to run the dialog
void CVaxApp::OnAppAbout()
{
CAboutDlg aboutDlg;
aboutDlg.DoModal();
}
In function "CDialog::DoDataExchange", I have added a spurious refereence to "aboutDlg;". This reference, although not valid in the context, is drawn in grey. It should be underligned. Press Alt+G and you will go to its definition in the later function "CVaxApp::OnAppAbout".