locked
substring method

    Question

  • Hi Hi,

    is the substring method replaced by a new one or is there None in CX ? Or do we have to use old Std library ? I use substring very often in my programs and never had any problems until now. As i see it the managed languages all still have this function here in Metro Style Apps, only for C++/CX its missing ? Or was it replaced ?

    wfr

    co0Kie 







    Wednesday, September 19, 2012 2:48 PM

Answers

  • Use the standard C and C++ solutions for this. You can use C++'s std::string::substr.

    System.String.Substring is a .Net class and so is only available to managed languages. C++/Cx is not managed and does not use .Net.

    --Rob

     

    • Proposed as answer by Jesse Jiang Thursday, September 20, 2012 7:53 AM
    • Unproposed as answer by Francis Grave Thursday, September 20, 2012 12:38 PM
    • Marked as answer by Francis Grave Thursday, September 20, 2012 10:18 PM
    Wednesday, September 19, 2012 11:23 PM
    Owner