Util.cpp
/*--- function ConstructFilename -----------------------------------
 *  Constructs a full filename from a path and filename.
 *  Is intelligent about whether the given path ends in a 
 *  path separator character.
 */
function ConstructFilename
Constructs a full filename from a path and filename.
Is intelligent about whether the given path ends in a
path separator character.
function ConstructFilename Constructs a full filename from a path and filename . Is intelligent about whether the given path ends in a path separator character .
CString ConstructFilename(CString cspath, CString csfile)
{
   CString csresult=cspath;
   if(csresult.GetLength()>0) {
      if('\\'!=csresult.Right(1) && '/'!= csresult.Right(1)) {
         csresult += '\\';
      }
   }
   csresult += csfile;
   return csresult;
}
CString ConstructFilename ( CString cspath , CString csfile ) { CString csresult = cspath ; if ( csresult . GetLength ( ) > 0 ) { if ( ' \\ ' != csresult . Right ( 1 ) && ' ' != csresult . Right ( 1 ) ) { csresult += ' \\ ' ; } } csresult += csfile ; return csresult ; }
function ConstructFilename
  Constructs a full filename from a path and filename.
function ConstructFilename Constructs a full filename from a path and filename .