dynamically allocate array variable of type LPWSTR
- From: Trups <Samant.Trupti@xxxxxxxxx>
- Date: Fri, 31 Oct 2008 08:07:44 -0700 (PDT)
HI,
I want to dynamically allocate array variable of type LPWSTR.
Code looks like this...
main() {
LPWSTR *wstr;
int count = Foo (wstr);
for (int i = 0; i < count; i++)
//print each element;
}
int Foo(LPWSTR *wstr)
{
int count = 0;
while (!done){
//Here I need to allocate "wstr" one element by one element.
How
to do that?
// I don't know the count
count ++;
}
Where should I do delete?
Thanks
Trupti
.
- Follow-Ups:
- Re: dynamically allocate array variable of type LPWSTR
- From: Malcolm McLean
- Re: dynamically allocate array variable of type LPWSTR
- From: Ulrich Eckhardt
- Re: dynamically allocate array variable of type LPWSTR
- Prev by Date: opening jpeg file in c++
- Next by Date: Re: Case studies for C programming.
- Previous by thread: opening jpeg file in c++
- Next by thread: Re: dynamically allocate array variable of type LPWSTR
- Index(es):
Relevant Pages
|