title: How to convert a hexadecimal string to long in c++
body: <p>I have a string which is as shown below.
  std::string myString = "0005105C9A84BE03";</p>
  
  <p>I want the exact data to be saved on some integer say "long long int"
  long long int myVar = 0005105C9A84BE03;</p>
  
  <p>When i print myVar i'm expecting output 1425364798979587.</p>
  
  <p>I tried to use atoi, strtol stroi, strtoll but nothing worked out for me.</p>
  
  <p>Any idea how to solve it?</p>