Hi there,
Thanks for posting the code. I also managed to find similar code after doing some major googling last night. Basically, if you want to convert a CString to a double the wcstod operator is the way to go as ArkM rightly said.
Example -
CString testString("12345.123");
double d =...
Hi uolj,
Thanks for the reply. I've been trying to do it just like you suggest but I still get the error -
cannot convert parameter 1 from 'class CString' to 'const char *'
I've also tried doing this -
CString testString("12345.6789");
double d = atof((LPCSTR)testString);
but still get the...
Hi there,
I've been trying to achieve this one way or another all day with no luck. I would like to convert a CString to a double.
For example, if my CString has the form -
CString testString("12345.6789");
I would like to be able to convert testString into a double so that e.g. double...
Hi folks,
I'm just about to have a go at developing a simple application for PocketPC using embedded visual C++ 4. However, when I go to create a project for PocketPC there is no option for 'WCE Pocket PC Application' or 'WCE Pocket PC MFC AppWiard'. I must be missing something, does anyone...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.