Tried malloc too, found that new is simply faster (though delete is slower than free, and there's no reallocation with new :p)
Code:
char** pt;
pt = new char*[50];
unsigned n=0;
for(/*noimportant*/;n++)
{
/*lala
lala*/
pt[n]= hFindFile.cFileName;
}
for (n=0;pt[n]!=NULL;n++)
{
Leave a comment: