Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Missing hat-operator when using Implement Interfac

You must be registered to post a reply.
Click here to register.

Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji

Forum code is on.
Html is off.

Check to subscribe to this topic.

T O P I C    R E V I E W
mzh Posted - Jan 10 2023 : 05:03:38 AM

I got a small issue: When Using the Implement Interface Feature in CLR/C++ Code VisualAssist does not add the Handle to Object Operator (^) to the Parameters.

To repoduce (in a CLR/C++ Project):
--- snip ---
using namespace System;
public ref class MyClass : IComparable
--- snap ---
Then right-click on ICompare and select the "Implement Interface" feature.

The added method misses the ^ in the parameters.

Thank you,
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jan 10 2023 : 07:22:44 AM
Which IDE and version of VA are you using?

using VS2019 and VA 2471.0, I have added the following code to a header file in a C++ CLR project:

ref class CliImplementIComparable : IComparable

when I then trigger Implement Interface on the class name "CliImplementIComparable" I get:

ref class CliImplementIComparable : IComparable
	Int32 CompareTo(System::Object^ obj) override;

	Int32 CompareTo(T^ other) override;


where the implementations for the two new methods have been placed into the matching cpp file. The code doesn't compile since T isn't declared, but the ^ operator is definitely present for me.

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