Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1522: CreateDeclaration "kills" ClassWizzard (VS6)

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
MrJones4u Posted - Jun 13 2006 : 4:44:13 PM

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.
2   L A T E S T    R E P L I E S    (Newest First)
support Posted - Jul 09 2006 : 1:37:50 PM
Fixed in 1530.
feline Posted - Jun 13 2006 : 6:42:11 PM
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

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000