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 properties with namespaces

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
doogey Posted - Mar 11 2008 : 11:39:21 AM
Hi,
VAX seems to have an issue with C++/CLI properties, but only when namespace scoping is involved.

If you create a property in a class that's in a namespace scope, VAX will not do any of its good stuff... no autocomplete, no refactoring, nothing. It doesn't seem to recognize that the property is part of the class.

For example, here's a real simple class...

declaration (header):

namespace vax_property_test
{
	public ref class myClass
	{
	public:
		myClass();

		property int myProperty
		{
			int get(void);
			void set(int value);
		}

	private:
		int _value;
	};
}


and then the definition (cpp):

using namespace vax_property_test;

myClass::myClass()
{
	_value = 0;
}

void myClass::myProperty::set(int value)
{
	_value = value * 2;
}

int myClass::myProperty::get()
{
	return _value;
}


Try to do anything with _value in either myProperty definitions, and VAX doesn't recognize _value as a member of myClass.

However, if you don't scope the class with a namespace, VAX seems to work ok.

Any suggestions?
--Zach
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Mar 11 2008 : 3:01:23 PM
I am seeing the same effect here. Thank you for the clear description.

case=14363

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