locked
Access to Dictionary (Managed C++) RRS feed

  • Question

  • I had used folloving construction (Managed C++)

    +++++++++++++++

    System::Collections::Generic::Dictionary<int, int> ^ d = gcnew System::Collections::Generic::Dictionary<int, int>();

    d->default[0] = 0;

    ++++++++++++++++

    
    But this construction is not supported by Visual Studio 11.
    Sunday, July 1, 2012 11:06 AM

Answers

  • That's odd - anyway, you can just use the simpler syntax that has always been available in C++/CLI:

    d[0] = 0;


    Convert between VB, C#, C++, & Java (http://www.tangiblesoftwaresolutions.com)

    • Proposed as answer by Mike Feng Tuesday, July 3, 2012 12:57 PM
    • Marked as answer by Mike Feng Sunday, July 8, 2012 10:20 AM
    Sunday, July 1, 2012 3:24 PM

All replies

  • That's odd - anyway, you can just use the simpler syntax that has always been available in C++/CLI:

    d[0] = 0;


    Convert between VB, C#, C++, & Java (http://www.tangiblesoftwaresolutions.com)

    • Proposed as answer by Mike Feng Tuesday, July 3, 2012 12:57 PM
    • Marked as answer by Mike Feng Sunday, July 8, 2012 10:20 AM
    Sunday, July 1, 2012 3:24 PM
  • I have found solution. It is not error of program. It is error of IntelliSense

    
    Wednesday, July 11, 2012 1:11 PM