Prototype and description of the function setdllworkdir() (This function needs no unlocking) |
setdllworkdir() Sets a directory for geodllbn.bin and other files. Prototype of the DLL function in C++ syntax (attend lower case!): extern "C" __declspec(dllimport) unsigned long __stdcall setdllworkdir( const char *pszWorkPath); Prototype of the DLL function in Visual Objects syntax: _DLL function setdllworkdir; (pszWorkPath as psz) // 4 Byte, char* as logic pascal:geodll32.setdllworkdir // 4 Byte GeoDLL needs a binary file geodllbn.bin with the required constants. These and other files can be stored as default in the calling directory of the GeoDLL or the program using the GeoDLL. The function setdllworkdir() can be used to set any directory for these files. The prerequisite is that the function call must be done before any other function calls. Only the function setunlockcode() for activating GeoDLL function groups may be called first. The directory must contain the binary file geodllbn.bin. alternatively: No call to setdllworkdir(). In the directory may or may not be the files for the elevation models. alternatively: setelev03datapath() and setelev30datapath() In the directory may or may not be the files for the time zones. alternatively: settzgridfile() and settzshapefile() The path name may contain a drive letter and a directory path. The path name should end with a backslash (\) Example: "c:\programs\geodll\workdir\" Attention, in C syntax double backslashes must be used! The parameters are passed and/or returned as follows: pszWorkPath Path for geodllbn.bin and other files. The path may must contain a drive letter and a directory path with a trailing backslash. returnVal In case of an error the function returns FALSE, otherwise TRUE. Unlocking: This function needs no unlocking. |