2008-12-31
09:32 AM
- last edited on
2023-08-04
02:48 PM
by
Doreena Deng
ShellExecute(NULL, "open", pPath, NULL, NULL, SW_SHOWNORMAL);
IO::Location location;
API_SpecFolderID specFolderID = API_ApplicationFolderID;
GSErrCode errCode = ACAPI_Environment (APIEnv_GetSpecFolderID, &specFolderID, &location, NULL);
if(errCode == NoError) {
IO::Path path;
location.ToPath(&path);
const char * pCharPath = path.operator const char*();
ACAPI_WriteReport(pCharPath, true);
}
API_SpecFolderID:
API_ApplicationPrefsFolderID
The folder into which the application writes its preferences.
API_GraphisoftPrefsFolderID
The folder containing general preferences of Graphisoft applications.
API_GraphisoftHomeFolder
The Graphisoft home folder.
API_CacheFolder
The folder where the application may write data to speed up its operation.
API_UserDocumentsFolder
The folder where the application places the output files by default.
API_TemporaryFolder
The folder where the application stores temporary data, and which will be emptied when you launch the application.
API_ApplicationFolderID 4.2
The folder containing the running application. It should be considered as read-only.
API_DefaultsFolderID 6.1
This folder contains the default preferences (e.g. default user profile settings, shortcuts, command layouts, etc.) that come with the program installation. Located in the application folder, and should be considered as read-only.
API_WebObjectsFolderID 6.1
This folder is the recommended place for storing objects and other files downloaded from the Web.
API_TemplatesFolderID 6.1
The default location of ArchiCAD project templates.
API_HelpFolderID 10
The default location of the application's Help folder.
2008-12-31 09:49 AM
IO::Location location;
GSErrCode errCode = ACAPI_GetOwnLocation (&location);
if(errCode == NoError) {
}