General project operations

All these functions deal with PRJ_HANDLE that helps you to identify each active project. Current version of the SDK supports up to 8 active projects.

LoadProject function loads project from the disk file.
C/C++
PRJ_HANDLE LoadProject(char *FileName)

C#/VBA/scripts
int LoadProject(string FileName)

SaveProject saves specified by handle project to the disk file.
C/C++
int SaveProject(PRJ_HANDLE handle, char *FileName)

C#/VBA/scripts
int SaveProject(int handle, string FileName)
Returns 0 in success or non-zero otherwise.

NewProject creates new empty project.
C/C++/C#
PRJ_HANDLE NewProject();

CloseProject closes specified project and removes it from RAM.
C/C++/C#
void CloseProject(PRJ_HANDLE handle);

RunProject executes the project with specified database connection.
C/C++
int RunProject(PRJ_HANDLE handle, DG_HANDLE connection, char *logFile)

C#/VBA/scripts
int RunProject(int handle, int connection, string logFile)
RReturns 0 for success or non-zero otherwise.
Notes:

  • 'connection' parameter should be correct and connected handle of database connection.
  • 'logFile' is location where execution log will be created. The program uses "error.log" in the current directory for empty or invalid parameter.

See also: Error handling.