AttachFile
Attaches a file to the Project folder in Origin-C workspace. These files eventually gets saved with the project (.opj) file.
BOOL AttachFile( LPCSTR lpcszPathaName )
returns zero (FALSE) if failed to attach else non-zero
//Attaches a file to the Project folder in Origin-C workspace. void Project_AttachFile_Ex1() { string strFileNameArray = GetAppPath(true) + "OriginC\\System\\Array.h"; if ( Project.AttachFile(strFileNameArray) ) printf("You can see " + strFileNameArray + " is under Project folder!"); else printf("Fail to attach file to project!"); return; }
origin.h