title: How to convert a string to the BigInteger type in C ++ using the BigInteger Microsoft library
body: <p>Unfortunately, I have a problem with the <code>BigInteger.Parse(String, NumberStyles)</code> method in the BigInteger library. I tried using it in a C++ program and it does not work. I am not sure, but perhaps it is because Microsoft doesn't provide an opportunity to work with the <code>Parse()</code> method anymore?</p>
  <p>How can I convert a <code>string</code> to a <code>BigInteger</code> in C++?</p>
  <pre class="lang-cpp prettyprint-override"><code>using namespace System::Numerics;
  
  ...
  
  static unsigned char hexArr[] = { '0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F' };
  
  ostringstream oss;
  
  for (size_t i = 0; i &lt;1024; i++)
      oss &lt;&lt; hexArr[rand() % 16];
  
  string str(oss.str());
  
  // Another way to get str, but it doesn't solve the problem
  //str += hexTable[rand() % 16];
  
  result = BigInteger::Parse(str, NumberStyles::AllowHexSpecifier);  // My problem here
  </code></pre>