I'm working with VC++ using Visual Studio.net 2008 platform.I've a previous experice working on VS 6.0 only.

in my project I want to convert a CString value to integer. The code I've used is

...