Okay... I have some questions about MS specific additions to C++ and if there are any equivelants of various VB conventions.

First... the VB code that I'm porting is using On Error. Is there a VC++ equivelant?

Secondly... I'm converting Property Get and Property Let to __declspec( property( put = someX)) int x;. Can I do the following to make the attribute private but keep the get/put method public?

Code:
class Sample{
  private:
    int x;
  public:
    __declspec(property(get = GetX, put = SetX)) x;
};
Or do I have to declare x on the __declspec statement?