m-jansen
asked on
convert from string to LPCSTR
how to convert from string to LPCSTR?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
what do I have to include to use CString?
CString s = "abc";
LPCSTR a = s;
CString s = "abc";
LPCSTR a = s;
ASKER
i have tried to #include <cstring> but that does not work
ASKER
got it
#include "atlstr.h"
#include "atlstr.h"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.codeproject.com/string/tconvert.asp
And these two pages gives you details about the different types of string and their conversions as well..
http://www.codeproject.com/string/cppstringguide1.asp
http://www.codeproject.com/string/cppstringguide2.asp
regards
Sathis