Page 1 of 1

cGetdir32() & cGetFile() default path

Posted: Wed Jan 16, 2008 10:22 am
by Marc Vanzegbroeck
Hi,

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

Thanks,

Marc

Posted: Wed Jan 16, 2008 10:57 am
by nageswaragunupudi
Yes.
You can see the full syntax in getfile.c and getdir.c in \fwh\source\winapi folder

Posted: Wed Jan 16, 2008 2:09 pm
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

Posted: Wed Jan 16, 2008 2:13 pm
by nageswaragunupudi
Please see \fwh\source\function\dlgs32.prg

Posted: Wed Jan 16, 2008 8:20 pm
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

Posted: Thu Jan 17, 2008 12:08 am
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

Posted: Thu Jan 17, 2008 12:17 am
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.

Posted: Thu Jan 17, 2008 8:25 am
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().

Posted: Thu Jan 17, 2008 11:06 am
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