I have solved the problem. it was indeed intervening code that caused it; but code that was outside of this module. It changed a path from something like C:\abc\def\ghi\jkl to C:\abc\defghi\jkl, a subtle change and hard to detect unless one has his nose rubbed in it. That change, of course...
Here's the code, cleaned up a bit to remove some unrelated lines:
int NumRecords,
a;
TSearchRec TheFile;
int Attributes = 0;
int Result = 0;
AnsiString FileName;
AnsiString LocalPath = CSPath; // From another...
I am using FindFirst/Next?Close to examine the contents of a folder. The code looks like this:
LocalPath += AnsiString("C:\\Progrram Files\\InDesign\\Plugins\\*.*");
Result = FindFirst(LocalPath, Attributes, TheFile);
...
Result = FindNext(TheFile);
...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.