Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 1221 not underlining out of context local symbols
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

asmout
Ketchup Master

58 Posts

Posted - Mar 25 2004 :  5:53:44 PM  Show Profile
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".

asmout
Ketchup Master

58 Posts

Posted - Mar 31 2004 :  5:48:51 PM  Show Profile
Still a bug in 1223. Very annoying!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000