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
 Using abbreviation and scope operator fails
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

xMRi
Tomato Guru

Germany
315 Posts

Posted - Aug 09 2023 :  03:23:30 AM  Show Profile  Reply with Quote
I am uditing inside a class function

void CFoo::MyFunc()
{
   QWORD qwNow = ::gtc64
}


Typing ::gtc64 doesn't work.

Typing gtc64 gives me the expected GetTickCount64

Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming

Edited by - xMRi on Aug 09 2023 07:39:25 AM

feline
Whole Tomato Software

United Kingdom
18755 Posts

Posted - Aug 10 2023 :  11:07:25 AM  Show Profile  Reply with Quote
Are you are expecting "GetTickCount64" with and without the :: at the front?

This is what I am getting, testing using VS2022 and VA 2491.0 in a simple C++ file.

Interestingly I am getting a faint but visible tomato icon showing on the listbox when I type "::gtc64" even with the setting:

VA Options -> Enhanced Listboxes -> Source of C/C++ content: Default Intellisense

which suggests that for some reason VS2022 doesn't want to suggest this, but VA has no problems doing so.

What do you have:

VA Options -> Enhanced Listboxes -> Source of C/C++ content

set to?

If you accept:

GetTickCount64()

or

::GetTickCount64()

what, if anything, does VA show in its context and definition fields, normally shown at the top of the editor window, when you place the caret into this function name? I am wondering if, for some reason, VA doesn't recognise this function on your system.

zen is the art of being at one with the two'ness

Edited by - feline on Aug 10 2023 11:11:25 AM
Go to Top of Page

xMRi
Tomato Guru

Germany
315 Posts

Posted - Aug 11 2023 :  01:23:20 AM  Show Profile  Reply with Quote

Hm.. What if you place the call in a namespace?

Because of another problem I had, I have set
VA Options -> Enhanced Listboxes -> Source of C/C++ content
to Visual Assist

Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18755 Posts

Posted - Aug 11 2023 :  08:12:32 AM  Show Profile  Reply with Quote
Sitting in a cpp file, I have just done the following test:

void simpleTestAtFileScope()
{
	QWORD qwFileScope = ::GetTickCount64(); // worked on "::gtc"
}
	
class ClassScopeTesting
{
	void simpleClassScopeTesting()
	{
		QWORD qwClassScope = ::GetTickCount64(); // worked on "::gtc"
	}
};
	
namespace SPACE_SCOPE_TESTING
{
	void simpleNamespaceScopeTesting()
	{
		QWORD qwNamespaceFuncScope = ::GetTickCount64(); // worked on "::gtc"
	}
	
	class SpaceClassScopeTesting
	{
		void simpleSpaceClassTesting()
		{
			QWORD qwSpaceClassTesting = ::GetTickCount64(); // worked on "::gtc"
		}
	};
}

as the comments indicate, the listbox filtered to the correct item in each of these cases. Can you try this in a new file in your current solution?

I am starting to think this is either solution or file specific, since from the description I should be able to reproduce this by now.

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