CString cs; // declaring variable
ULONG64 lmonitor64;// declaring variable
CStringA csat;// declaring CStringA variable
cs = _T("xyz");// initialize variable
csat = _T("abc"); // initialize variable
lmonitor64 = _strtoui64((const char *)cs, NULL, NULL); //error
lmonitor64 = _strtoui64((const char *)csat, NULL, NULL); // Complies fine
Hi all, I am not able to cast cstring to const char *, whereas I can cast CStringA. Can any one give me solution hoe to cast CString to const char *?