|
![]() |
![]() |
version 2003
PA_Get4Dfolder (FolderPath)
Parameter | Type | Description | |
FolderPath | char * | → | Pointer to a char buffer |
← | Full path of the 4D Folder |
Description
The routine
PA_Get4Dfolder
returns the long name of the 4D folder just as the 4D Command
4D Folder
does.
By using the
PA_Get4Dfolder
routine to get the actual pathname to that folder, you ensure that your code will work on any platform running any localized system -- even if the path or the name of this folder changes in future versions of 4th Dimension.
See the
4D Folder
documentation for more information about the folder content.
Example
Creating a full path to a private preference file in the 4D Folder.
void CreatePrefFilePath ( char *pref )
{
// Get the path to the 4D Folder
PA_Get4DFolder( pref );
// Concat. the pref file name
strcat( pref, "MyPuginPref" );
}
See Also
4D Folder.
Error Handling
None.