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
 1522: CreateDeclaration "kills" ClassWizzard (VS6)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

MrJones4u
Ketchup Master

83 Posts

Posted - Jun 13 2006 :  4:44:13 PM  Show Profile  Reply with Quote

When adding a new member function via Create Declaration the function gets inserted in the AFX_MSG area and the ClassWizzard no longer can parse the header file correctly.

	// Generated message map functions
	//{{AFX_MSG(CDialog_DisplayTimer)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnTimer(UINT nIDEvent);
	CString GetFileTimeString(FILETIME *pFileTime);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()


Also it would be cool to be able to specifiy if the new member gets sorted into private, public or protected...

cu,
Michael

Verified on a brand new project.

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Jun 13 2006 :  6:42:11 PM  Show Profile  Reply with Quote
confirmed

case=1300

the philosophy behind VA's refactoring is that it should ask the minimum possible number of questions. one way of doing this is to provide small building block refactoring operations that can then be used one after another to achieve the desired result.

as a result it is unlikely it will ever ask you to specify public, protected or private when doing this.

i have the idea of some (new) form of refactoring operation to change the visibility of a member function floating around in my head, but i don't know where i got that idea from now, so don't quote me on that

zen is the art of being at one with the two'ness
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Jul 09 2006 :  1:37:50 PM  Show Profile  Reply with Quote
Fixed in 1530.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000