How to convert long to string and string to long in MS VC 2008 ?
Posted on 2010-11-29
I have a project in MS VC 2008 Win32 unmanage code. Look my code, it produce errors, but is good to find what I need. I need to convert lVar to (LPCTSTR) and later to convert (LPCTSTR) to long. Is that hard in C++ ? I want to do this using standard function without need to include additional files which I should deploy in customer computer.
long lVal= 279362937;
csaFile1.Add((LPCTSTR)lVal); // here produce error – need example code
long hSetting=(long)csaFile1[x]; // here produce error – need example code