Export (0) Print
Expand All

GetProjectFile

Returns the file name specified type.

function GetProjectFile( 
   oProj, 
   strType, 
   bFullPath, 
   bMFC  
);

oProj

The selected project.

strType

The type of file to retrieve, such as STDAFX, RC, IDL, CPP, H, ODL, or DEF.

bFullPath

Flag indicating whether to return the full path name.

bMFC

Indicates if the project is an MFC-based project. If strType is .cpp or .h, it is considered MFC based. If not, the project is assumed to be ATL based.

The file name of the per-project type of files.

Call this function to get the file name of the specified type in the specified project.

// The selected MFC project's CPP file is retrieved and 
// assigned to strFileName.
var strFileName = GetProjectFile(selProj, "CPP", false, true);
Show:
© 2014 Microsoft