|
<< Click to Display Table of Contents >> Step 4: Set the directory for temporary objects |
![]() ![]()
|
You must create a temporary directory for a client.
Not all BDE applications create temporary objects, but larger applications do sometimes create them. For example, the result set from a query of the records that cause a key violation in a restructure will be placed in a temporary table. By default, this temporary, or "private" directory, is the startup directory. This will cause a problem if the application is running on a network or a CD-ROM, because the directory cannot be shared, and it must writeable.
Use the function DbiSetPrivateDir to set the private directory for a client:
Chk(DbiSetPrivateDir(
"c:\\bdetemp")); // Select a directory on a local drive
// not used by other applications.
Note: You must use the full, absolute path. Relative paths are not supported.