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
 Missing hat-operator when using Implement Interfac
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mzh
New Member

Germany
7 Posts

Posted - Jan 10 2023 :  05:03:38 AM  Show Profile  Reply with Quote
Hello,

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,
Markus

feline
Whole Tomato Software

United Kingdom
18097 Posts

Posted - Jan 10 2023 :  07:22:44 AM  Show Profile  Reply with Quote
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
{
public:
	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.

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:
© 2021 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000