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
 C++/CLI properties with namespaces
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

doogey
New Member

4 Posts

Posted - Mar 11 2008 :  11:39:21 AM  Show Profile  Reply with Quote
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

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Mar 11 2008 :  3:01:23 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=14363

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