Cannot use cGetFile32 in some secure networks

Cannot use cGetFile32 in some secure networks

Postby Gale FORd » Mon Jun 05, 2006 2: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?
Gale FORd
 
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston

Re: Cannot use cGetFile32 in some secure networks

Postby Enrico Maria Giordano » Mon Jun 05, 2006 2: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
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

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

Postby Enrico Maria Giordano » Mon Jun 05, 2006 2:53 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Gale FORd » Mon Jun 05, 2006 3: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().
Gale FORd
 
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston

Postby Enrico Maria Giordano » Mon Jun 05, 2006 4:22 pm

Exactly.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 74 guests