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' don't work for 'class ABCLIB CABCClass'
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

flyingxu
Junior Member

16 Posts

Posted - Nov 26 2006 :  8:31:07 PM  Show Profile  Reply with Quote
'Rename' don't work for 'class ABCLIB CABCClass'
while #define ABCLIB _declspec(dllexport)

the .h file is renamed, but the .cpp file.

Edited by - flyingxu on Nov 26 2006 8:31:42 PM

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Nov 27 2006 :  08:10:37 AM  Show Profile  Reply with Quote
which IDE and version of VA are you using?
using VS2005 and VA 1541 I cannot reproduce this problem.

are both the .h and .cpp files part of the solution?
what exactly are you triggering rename on? The class name? The constructor? something else?

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

flyingxu
Junior Member

16 Posts

Posted - Nov 27 2006 :  11:00:19 PM  Show Profile  Reply with Quote
Sorry I didn't make myself clear.

I'm using VC6 with VA10.3.1540
both the .h and .cpp files part of the solution

I wanted to Rename the class name by double click the class name in the .h file on the line of 'class ABCLIB CABCClass', then I click the triangle to rename it.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Nov 28 2006 :  11:21:53 AM  Show Profile  Reply with Quote
using VC6 and VA 1541 I still cannot reproduce this. Can you try the following code and see what you get. I have added:

#define FIND_REF_TEST_DLL_EXPORT _declspec(dllexport)

class FIND_REF_TEST_DLL_EXPORT testFindRefExportedClass
{
    // test - Find References on this function finds 2 references
    void CppFileTest();
};


to the header file and:

void testFindRefExportedClass::CppFileTest()	{ }

to the cpp file. When I trigger Find References or rename on the class name in the header file I always get 2 references.

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