We have a requirement to parse a file and write the data to an excel file using C++. I did a search and able to find a project which serves my purpose. <http://www.codeproject.com/KB/office/ExcelFormat.aspx> 

Please find a few lines of code below where exactly the errors occur.

```
typedef std::ctype CT;  
CT const& ct = std::_USE(std::locale(), CT);  
ct.widen(&str[0], &*str.begin()+str.size(), &ret[0]);

```

The above functions (eg. \_USE) seem to be related to VC++. Can somebody please let me know what exactly the above piece of code does? and how to implement the same in native C++ functions?

Please let me know if any other information is needed...

Thanks!!