class CBsp
{
	public:
		int Get()
		{
			// maybe calc new value
			return m_iTest;
		}
		void Set( int iNew )
		{
			// maybe performce checks .. do a assert .. and and and 
			if( i  10 ) i = 10; // ie.
			m_iTest = iNew;
		}
  		__declspec( property ( get = Get, put = Set ) )int iTest; 
  	private:
		int m_iTest;
  };  |