Cannot use cGetFile32 in some secure networks

Post Reply
Gale FORd
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston
Contact:

Cannot use cGetFile32 in some secure networks

Post by Gale FORd »

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?
User avatar
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

Post by Enrico Maria Giordano »

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

EMG
Gale FORd
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston
Contact:

Post by Gale FORd »

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
Gale FORd
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston
Contact:

Post by Gale FORd »

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().
Post Reply