Hi,
Is there a way to set a default path while opening cGetdir32() and cGetFile()?
Thanks,
Marc
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Hi,
Is there a way to set a default path while opening cGetdir32() and cGetFile()?
Thanks,
Marc
Yes.
You can see the full syntax in getfile.c and getdir.c in \fwh\source\winapi folder
I was using cGetdir32() instead of cGetdir().
In cGetdir() I found the parameter, but in cGetdir32() it doesn't work.
Regards,
Marc
Please see \fwh\source\function\dlgs32.prg
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,
I believe cGetDir32() is only for 16bit use. cGetDir() is the same function when using (x)Harbour. Are you using Clipper?
James
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.
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().
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