Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 VAX 1639: find references errs

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
Uniwares Posted - May 27 2008 : 6:08:06 PM
VS2003, C++

Doing a "find references" on a function with the naive name GetLastError() which is a static member of a class, VAX comes up with all references to the Windows function in the global namespace and the ones in the class.

To repro just declare a class with a static member DWORD GetLastError(); and use both the windows api (::GetLastError()) and the declared one (MyClass::GetLastError())
2   L A T E S T    R E P L I E S    (Newest First)
Uniwares Posted - Jun 05 2008 : 5:03:03 PM
Sorry, didn't have time yet to get back to this topic. Will test and let you know asap.
accord Posted - May 28 2008 : 3:17:00 PM
No luck with reproduce. I may trying something different?

I used this in the header:

class SomeClass {
	static DWORD GetLastError();
	void TestFunction();
};

class OtherClass {
	void TestFunction();
};


...and this in the cpp:

DWORD SomeClass::GetLastError()
{
	return 0;
}

void SomeClass::TestFunction()
{
	GetLastError();

	::GetLastError();
}

void GlobalFunction()
{
	GetLastError();
}

void OtherClass::TestFunction()
{
	GetLastError();
}


I run find references on Global GetLastError() and on on GetLastError() of SomeClass and the references was correct in both cases. Can you try this example?

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