RemoveAttachedFile
Removes a file from the Project folder in Origin-C workspace.
BOOL RemoveAttachedFile( LPCSTR lpcszName )
returns zero (FALSE) if failed to find remove file else non-zero
EX1
void Project_RemoveAttachedFile_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; } string strFileName = "Array.h"; if(Project.RemoveAttachedFile(strFileName)) //Remove all attached files out_str("Remove attached files "+strFileName+" success!"); }
Project::RemoveAllAttachedFiles
origin.h