GetAttachedFileNames
Gets a list of file names that is attached to the Project folder in Origin-C workspace.
int GetAttachedFileNames( StringArray & saNames )
returns the number of files attached
EX1
void Project_GetAttachedFileNames_ex1() { //Add attached files. string strFileNameArray = GetAppPath(true) + "OriginC\\System\\Array.h"; if ( Project.AttachFile(strFileNameArray) ) printf("You can see " + strFileNameArray + " is under Project folder!\n"); else { printf("Fail to attach file to project!"); return; } //Get attached files StringArray saName; int nRet =Project.GetAttachedFileNames( saName ); printf("Attached files are:\n",nRet); for(int ii= 0; ii<saName.GetSize(); ii++) printf("%s\n",saName[ii]); }
Project::AttachFile
origin.h