char* 转换成string
char *pChar;
string str=pChar;
string转换成LPCSTR
LPCSTR lpcStr=str.c_str();
string转换成char*
string str;
char * pchar;
int len = str.length();
pchar = (char *)malloc((len + 1)*sizeof(char));
str.copy(pchar, len, 0);
*(pchar + len) = '\0';//注意手动加结束符!!!