• Advertisement

mayag

Member
  • Content count

    4
  • Joined

  • Last visited

Community Reputation

122 Neutral

About mayag

  • Rank
    Newbie
  1. 1) There is unmanaged class Singleton: class Singleton { public: static Singleton* GetInstance(); private: static Singleton * m_s; ... }; 2) managed base class A: public class _gc A { public: Singleton * m_a; }; 3) managed derived class B : public class _gc B : public A { ... }; B::B() : A() { m_a = Singleton :: GetInstance(); // COMPILATION ERROR : cannot access private member in A }
  2. unfortunately, I'm not allowed to publish the source code. If I have a chance I'll write an example. thanks a lot for your responce
  3. I'm sure it's public. This error occured after convertion of project from Visual Studio .NET 2003 to Visual Studio 2005.
  4. Hello all, I'd very grateful for your help with compilation error I get after migrating from Visual Studio .NET 2003 to Visual Studio 2005. class A is a managed class which contains pointer pPtr to unmanaged class as public member class B is a managed class, derived from A. In constructor of B there is an initialization of pPtr after migrating from Visual Studio .NET 2003 to Visual Studio 2005 I get a compilation error: cannot access a private member of class A (pPtr) I'm using Old Syntax. Thanks in advance, Maya
  • Advertisement