RemoveAllAttachedFiles
Removes all the files from the Project folder in Origin-C workspace.
BOOL RemoveAllAttachedFiles( )
returns zero (FALSE) if failed to remove else non-zero
EX
void Project_RemoveAllAttachedFiles_EX() { //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; } Project.RemoveAllAttachedFiles(); //Remove all attached files StringArray saName; if( 0 == Project.GetAttachedFileNames( saName )) out_str("Remove all attached files success!"); }
Project::RemoveAttachedFile
origin.h