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
 rename the code inside //{{AFX_MSG_MAP(xxx)??
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

flyingxu
Junior Member

16 Posts

Posted - Sep 26 2006 :  04:30:39 AM  Show Profile  Reply with Quote
I'm trying to use the rename feature,
but I find that VA fails to rename the code inside //{{AFX_MSG_MAP(xxx)?? (the class name string of xxx)
Can VA do that?

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Oct 02 2006 :  11:40:43 AM  Show Profile  Reply with Quote
using VC6 and VA 1535, both the rename and Find References features are missing the //{{AFX_MSG_MAP(xxx) line, but they are finding other lines.

VA is ignoring this line since it is a comment, and not live code.

I have just created a new MFC dialog based project in VC6 to test this. renaming the main dialog class via VA works, but it ignores all of these AFX_ lines. Having done this, when i use the class wizard to add a message map between a button and a function it creates the function, but for the old class name.

if i manually change all of the AFX_ comment lines that i can find the program still compiles, but the class wizard gets very upset and does not want to work any more, since it cannot find the class name it was using.

are you trying to rename a class that you manage via the class wizard? or is this a class you added and maintain manually?

zen is the art of being at one with the two'ness
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