Because of the way cGetFile32 uses ini file in the windows directory to communicate with rundlg32 I cannot use this function.
Some administrators limit the users access rights to the windows directory.
Is there a way to use an ini in a different directory or use the registry instead?
Cannot use cGetFile32 in some secure networks
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: Cannot use cGetFile32 in some secure networks
It seems that you are using the Clipper/FW version as the xHarbour/FWH one doesn't use rundlg32.dll at all.
EMG
EMG
I am not sure about that.
My source file is c:\fwh\source\function\dlgs32.prg
The function cGetFile32() uses
nRet := WinExec( "rundlg32 " + If( lSave, "2", "1" ) )
if nRet > 21 .or. nRet < 0
StopUntil( {|| GetPvProfString( cSection, "working", "0", INIFILE ) != "1" } )
/*while GetPvProfString( cSection, "working", "0", INIFILE ) == "1"
SysRefresh()
end*/
cFile := GetPvProfString( cSection, "lpstrFile", "", INIFILE )
nFilterIndex := Val( GetPvProfString( cSection, "nFilterIndex", "", INIFILE ) )
else
cFile := cGetFile( cFileMask, cTitle, nDefaultMask, cInitDir, lSave,, nFlags )
endif
My source file is c:\fwh\source\function\dlgs32.prg
The function cGetFile32() uses
nRet := WinExec( "rundlg32 " + If( lSave, "2", "1" ) )
if nRet > 21 .or. nRet < 0
StopUntil( {|| GetPvProfString( cSection, "working", "0", INIFILE ) != "1" } )
/*while GetPvProfString( cSection, "working", "0", INIFILE ) == "1"
SysRefresh()
end*/
cFile := GetPvProfString( cSection, "lpstrFile", "", INIFILE )
nFilterIndex := Val( GetPvProfString( cSection, "nFilterIndex", "", INIFILE ) )
else
cFile := cGetFile( cFileMask, cTitle, nDefaultMask, cInitDir, lSave,, nFlags )
endif
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact: