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
 VAX 1639: find references errs
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - May 27 2008 :  6:08:06 PM  Show Profile  Reply with Quote
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())

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - May 28 2008 :  3:17:00 PM  Show Profile  Reply with Quote
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?
Go to Top of Page

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Jun 05 2008 :  5:03:03 PM  Show Profile  Reply with Quote
Sorry, didn't have time yet to get back to this topic. Will test and let you know asap.
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