Re: CString Array to LPCTSTR *




Saul775 wrote:
Is it possible to convert a CString array to a 2D array of TSTR, so that I
might pass it into a function?

For example...

CString words[] = {"Hello", "How", "Are", "You"};

void MyFunc(LPCTSTR *words, int nSize)
{
...
}

Saul775


Use std::vector or CStringArray.

---
Ajay

.