Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Using abbreviation and scope operator fails

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
xMRi Posted - Aug 09 2023 : 03:23:30 AM
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
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Aug 11 2023 : 08:12:32 AM
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.
xMRi Posted - Aug 11 2023 : 01:23:20 AM

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
feline Posted - Aug 10 2023 : 11:07:25 AM
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.

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