FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour cGetdir32() & cGetFile() default path
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
cGetdir32() & cGetFile() default path
Posted: Wed Jan 16, 2008 10:22 AM

Hi,

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

Thanks,

Marc

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
cGetdir32() & cGetFile() default path
Posted: 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
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
cGetdir32() & cGetFile() default path
Posted: Wed Jan 16, 2008 02:09 PM

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

Regards,
Marc

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
cGetdir32() & cGetFile() default path
Posted: Wed Jan 16, 2008 02:13 PM

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

Regards



G. N. Rao.

Hyderabad, India
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
cGetdir32() & cGetFile() default path
Posted: Wed Jan 16, 2008 08: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

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
cGetdir32() & cGetFile() default path
Posted: 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

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
cGetdir32() & cGetFile() default path
Posted: 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.

Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
cGetdir32() & cGetFile() default path
Posted: Thu Jan 17, 2008 08: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
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
cGetdir32() & cGetFile() default path
Posted: 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

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite

Continue the discussion