Thanks Again Jon,
However new code:
WString wStr;
for (i=0;i<mdlStringList_size(strListP);i++) { //mdlStringList_getMember(&str, NULL, strListP, i); //wcscpy(filestr, str); mdlStringList_getMemberString(wStr, NULL, strListP, i); wcscpy(filestr, wStr.GetWCharCP()); if (!EXIST(filestr)) { swprintf(szBufferW, L"Error importing Footprint File\nFile %d of %d does not exist\n[%s]", i+1, mdlStringList_size(strListP), filestr); MsgBox(szBufferW); return; } ...
Results in same corruption, as with previous code when >1,000 files selected, the last file name is corrupt):
And when >3,000 files in the list: