怎么把函数中的指针的值(内容)返回出来
//将char 转换 LPTSTR
void StrClass::CharToLPTSTR(char sText[]){
DWORD dwNum = MultiByteToWideChar (CP_ACP, 0, sText, -1, NULL, 0);
wchar_t *pwText;
pwText = new wchar_t[dwNum];
if(!pwText)
{
delete []pwText;
}
MultiByteToWideChar (CP_ACP, 0, sText, -1, pwText, dwNum);
delete []pwText;
return ?? //我要把pwText中的内容返回出来。
/*
这里如果这样可以返回
}