Hi
I need to have the a constant char array. But it must have contents from 2 different source: "C:\Help\" and mystring, where mystring must be a CString object having "TestFolder". Actually, I like to have a constant char array with "C:\Help\TestFolder" in it by combining the 2 sources. First, I decleared a char :
char path[50]="C:\Help";
but I don't know how to get the content of mystring object as char. If I know the way, I would combine its content to existing and declared "path " char array. I presented my case well enough. Any idea please
vcboy

How to get char from CString???
dafan
Try something like this :
void Func(char* p)
{
}
. . .
CString s = _T("SomePath");
const TCHAR szBasePath[] = _T("d:\\help\\");
CString newpath = s + szBasePath;
CT2A path(szBasePath);
Func(path);