cGetdir32() & cGetFile() default path

Post Reply
Marc Vanzegbroeck
Posts: 1102
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

cGetdir32() & cGetFile() default path

Post by Marc Vanzegbroeck »

Hi,

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

Thanks,

Marc
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Post by nageswaragunupudi »

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

G. N. Rao.
Hyderabad, India
Marc Vanzegbroeck
Posts: 1102
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Post by Marc Vanzegbroeck »

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

Regards,
Marc
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Post by nageswaragunupudi »

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

G. N. Rao.
Hyderabad, India
Marc Vanzegbroeck
Posts: 1102
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Post by Marc Vanzegbroeck »

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
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

Marc,

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

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

Post by Gale FORd »

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.
StefanHaupt
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Post by StefanHaupt »

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
Marc Vanzegbroeck
Posts: 1102
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Post by Marc Vanzegbroeck »

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
Post Reply