Re: CString Array to LPCTSTR *
- From: "Vipin" <Vipin@xxxxxxxxxx>
- Date: Tue, 19 Sep 2006 00:47:30 +0530
One of the things I hate about string STL is there is no equivalent of
CString GetBuffer(...)/ReleaseBuffer(...) which comes handy when we need to
pass pointer to string to win32apis like RegQueryValue(...)
--
Vipin Aravind
http://www.explorewindows.com/Blogs
"Ajay Kalra" <ajaykalra@xxxxxxxxx> wrote in message
news:1158605106.025846.189620@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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
.
- Follow-Ups:
- Re: CString Array to LPCTSTR *
- From: Ajay Kalra
- Re: CString Array to LPCTSTR *
- References:
- Re: CString Array to LPCTSTR *
- From: Ajay Kalra
- Re: CString Array to LPCTSTR *
- Prev by Date: Re: CString Array to LPCTSTR *
- Next by Date: Re: Changed behavior of ::SHFileOperation() in Vista
- Previous by thread: Re: CString Array to LPCTSTR *
- Next by thread: Re: CString Array to LPCTSTR *
- Index(es):
Relevant Pages
|
Loading