Project::RemoveAllAttachedFiles

Description

Removes all the files from the Project folder in Origin-C workspace.

Syntax

BOOL RemoveAllAttachedFiles( )

Parameters

Return

returns zero (FALSE) if failed to remove else non-zero

Examples

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!");      
}

Remark

See Also

Project::RemoveAttachedFile

header to Include

origin.h