cGetdir32() & cGetFile() default path

cGetdir32() & cGetFile() default path

Postby Marc Vanzegbroeck » Wed Jan 16, 2008 10:22 am

Hi,

Is there a way to set a default path while opening cGetdir32() and cGetFile()?

Thanks,

Marc
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Postby nageswaragunupudi » Wed Jan 16, 2008 10:57 am

Yes.
You can see the full syntax in getfile.c and getdir.c in \fwh\source\winapi folder
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10624
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Postby Marc Vanzegbroeck » Wed Jan 16, 2008 2:09 pm

I was using cGetdir32() instead of cGetdir().
In cGetdir() I found the parameter, but in cGetdir32() it doesn't work.

Regards,
Marc
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Postby nageswaragunupudi » Wed Jan 16, 2008 2:13 pm

Please see \fwh\source\function\dlgs32.prg
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10624
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Postby Marc Vanzegbroeck » Wed Jan 16, 2008 8:20 pm

cGetdir() is working fine but cGetdir32() isn't.
It is normaly the second parameter that is the init directory. But I don't get the directory. Maybe it's a Vista problem. I did't test it on XP.

Marc
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Postby James Bott » Thu Jan 17, 2008 12:08 am

Marc,

I believe cGetDir32() is only for 16bit use. cGetDir() is the same function when using (x)Harbour. Are you using Clipper?

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby Gale FORd » Thu Jan 17, 2008 12:17 am

cGetDir32() uses an .ini in the windows\system32 or windows directory, I can't remeber which, to pass the parameters. Our network security did not allow us to update it so that function never did work right for us.
Gale FORd
 
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston

Postby StefanHaupt » Thu Jan 17, 2008 8:25 am

Marc,

cGetDir32() was just a wrapper to get the 32bit dialogs in 16bit clipper. This is no more needed using xHarbour/harbour. I recommend to use cGetDir() and cgetFile().
kind regards
Stefan
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Postby Marc Vanzegbroeck » Thu Jan 17, 2008 11:06 am

Hi,

Thanks for the answers.
Before I was using clipper and FW.
Now I converted my programs to xHarbour but I was still using cGetDir32() instead of cGetDir().

Thanks, now everything is working fine!!

Regards,
Marc
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 63 guests