Page 1 of 1

Set PATH in Windows 10

Posted: Tue Nov 17, 2015 3:21 pm
by rdonnay
A customer reported to me that Set(_SET_PATH,cPath) does not work with multiple paths under Windows 10.
It only finds files in the FIRST directory in the string.

I don't have Windows 10.
Can anyone verify this?

Re: Set PATH in Windows 10

Posted: Sat Nov 21, 2015 2:06 pm
by rdonnay
I now have a computer with Windows 10.

I determined that this is NOT an Xbase++ problem. It is an eXpress++ problem.

For many years, I used FClose(Fopen(cFileName)) to test if a file exists and could be opened with dbUseArea().
This now fails under Windows 10 and always returns a .T. even if the file does not exist.

I fixed this problem in several files in eXpress++, but the most common usage was in DC_PathFound() which would fail under Windows 10. This problem will be fixed in Build 264. For now, if you are having a problem opening data files with DC_DbFile() or DC_UseArea(), you will need this fix.

Copy _DCPATH.PRG to your \exp19\source\dclipx folder or your \exp20\source\dclipx folder and rebuild DCLIPX.DLL by running BUILD19_SL1.BAT or BUILD20.BAT.