Save
Save the active project.
BOOL Save( LPCSTR lpcszFilename = NULL, BOOL bRename = true )
TRUE for success, otherwise FALSE.
EX1
void run_Project_Save() { string strPathNameToSave = "c:\\myproj.opj"; if (Project.Save(strPathNameToSave)) out_str("Project saving succeeded."); else out_str("Project saving failed!"); }
This function is restricted when a modal dialog is open. There is no such restriction for modeless dialogs.
Note: Starting with Origin 2017 SR0, Project::Save will save the project even if a modal dialog is open.
Project::Open
origin.h