Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 c++/cli - VAX Implement interface

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
Mariano Posted - Jan 17 2012 : 04:24:04 AM

ref class AAA : System::Xml::Serialization::IXmlSerializable

Firstly, when we use 'Implement interface' on example class AAA to implement interfaces from IXmlSerializable we get member like:
virtual System.Xml.Schema.XmlSchema GetSchema() override;
insted of
virtual System::Xml::Schema::XmlSchema^ GetSchema() override;

  • '.' insted of '::'

  • No handle '^' after XmlSchema

All other member of IXmlSerializable are also the same issue.

Secondly, the 'override' keyword. I enable it in registry and use it successfully in c++ but in c++/cli instead of 'override' keyword, member should look:

virtual System::Xml::Schema::XmlSchema ^ GetSchema() = System::Xml::Serialization::IXmlSerializable::GetSchema;

( only when implementing interface. When using 'implement virtual methods' it works ok.
It will be very helpful to fix this if possible.

Thank You,
Best regards,
Mariusz Brzeski
2   L A T E S T    R E P L I E S    (Newest First)
support Posted - Feb 29 2012 : 1:25:07 PM
case=64052 is fixed in build 1901
feline Posted - Jan 17 2012 : 12:53:34 PM
I am seeing the same effect here with Implement Interface, thank you for the clear description:


I am also seeing the problem with the override registry setting, thank you for the clear examples. I had to read up on this to see what was going wrong, but now I have done so, this is clearly wrong:


Hopefully Implement Interface still saves you some time and effort, even when having to fix these problems manually.

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