I'm using this code to grab the files:
My problem is that szFiles returns:Code:char szFiles[1024], szFileTok[260]; char *p; lstrcat(szFiles, lpstrFile); // ofn.lpstrFile = lpstrFile; p = lpstrFile; while(*p) { p += lstrlen(p) + 1; wsprintf(szFileTok, "|%s", p); lstrcat(szFiles, szFileTok); }
ÀøC:\joel|keygen.exe|exec.c|
Why the garbage in the begining?
Thanks