FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Cannot use cGetFile32 in some secure networks
Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
Cannot use cGetFile32 in some secure networks
Posted: Mon Jun 05, 2006 02:26 PM

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?

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Cannot use cGetFile32 in some secure networks
Posted: Mon Jun 05, 2006 02:40 PM

It seems that you are using the Clipper/FW version as the xHarbour/FWH one doesn't use rundlg32.dll at all.

EMG

Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
Cannot use cGetFile32 in some secure networks
Posted: Mon Jun 05, 2006 02:51 PM

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

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Cannot use cGetFile32 in some secure networks
Posted: Mon Jun 05, 2006 02:53 PM

That source is for FW 16 bit. The one for FWH is getfile.c.

EMG

Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
Cannot use cGetFile32 in some secure networks
Posted: Mon Jun 05, 2006 03:06 PM

The only cGetFile function in getfile.c is cGetFile().
There is no cGetFile32() function located in getfile.c.

But I guess what you are saying is that I should not use cGetFile32(). I should only use cGetFile().

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Cannot use cGetFile32 in some secure networks
Posted: Mon Jun 05, 2006 04:22 PM

Exactly.

EMG

Continue the discussion