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 limitation.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

bsaksida
New Member

Slovenia
6 Posts

Posted - Dec 26 2006 :  06:07:21 AM  Show Profile  Reply with Quote
I am using a lot of #define withn a project. to avoid using #include to the page using #define declerations, i used it in the stdafx.h. So when i rename a #define, the rename doesn't rename what is in stdafx.h

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Dec 27 2006 :  11:36:59 AM  Show Profile  Reply with Quote
which IDE and version of VA are you using?
based in an initial test here I am not sure VA supports renaming #define declarations. is VA correctly renaming the other references?

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

bsaksida
New Member

Slovenia
6 Posts

Posted - Dec 28 2006 :  1:31:26 PM  Show Profile  Reply with Quote
Of course it is working correctly for #define functions. Onlythig that is is skipping stdafx.h from search.
I am using VS2005 and VA is Build 1551.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Dec 28 2006 :  3:44:31 PM  Show Profile  Reply with Quote
If you close and then reload the IDE, and do an Find References on this #define does it find the reference in stdafx.h?

I have finally, after quite a bit of experimentation, been able to reproduce on demand a problem where Find References does not report all references for a #define value. This seems to the problem I ran into when I first tried to reproduce this.

For me Find References works correctly for the #define when you first load the IDE, but then stops working after a certain number of file changing operations. This may be the same problem that you are seeing. So far I cannot reproduce any simple bug that is specific to a #define inside the stdafx.h file.

case=4295

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

bsaksida
New Member

Slovenia
6 Posts

Posted - Dec 28 2006 :  7:10:26 PM  Show Profile  Reply with Quote
http://users.volja.net/bsaksida/code.zip

This is my project. (It will be OpenSource)

Even if close IDE, or delete .ncb and .suo file, it doesn't work. Not even for a momnent.

Now for other problem.

look inside core.h function
Void deleteUsers (ListView::SelectedListViewItemCollection ^selItem)

strID = selItem[i]->SubItems[intID]->Text;

in this case sometimes intellsence doesn't recognize SubItems
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Dec 29 2006 :  08:50:57 AM  Show Profile  Reply with Quote
Thank you for the project. Can you try upgrading to VA 1543? initially I saw exactly the same problem as you, but after a bit of fiddling around Find References is now working and is finding the references in stdafx.h

The trigger for this for me seems to be related to changing files.

Opening the solution in VS2005, with only one code file, stdafx.h open, the file with all the #define's in it. *sigh* Some of the time Find References is showing stdafx.h and some times it is not.

Currently "SYNTAX_LOGINLEVEL" shows this header sometimes, but not other times.
But so far "SYNTAX_ADDRESS" never shows this header file.

After changing files and jumping around a bit Find References on "SYNTAX_ADDRESS" starts to list stdafx.h

Given what I am seeing here I think it may be the same problem as case=4295, so I will update the case with these results.

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

bsaksida
New Member

Slovenia
6 Posts

Posted - Dec 29 2006 :  09:33:30 AM  Show Profile  Reply with Quote
I don't even have luck in finding even for a second. (For me)

But VS2005 built-in find reference and doesn't skip stdafx.h.


You coud also add for find reference, to display in witch function is it


Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Dec 29 2006 :  1:57:36 PM  Show Profile  Reply with Quote
showing the function or context for the Find References Results has already been requested

case=3493

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

support
Whole Tomato Software

5566 Posts

Posted - Oct 29 2007 :  02:20:36 AM  Show Profile  Reply with Quote
case=3493 is implemented in Build 1614
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Oct 29 2007 :  02:36:55 AM  Show Profile  Reply with Quote
case=4295 is fixed in Build 1614
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