Chapter 8 Utility Library
© National Instruments Corporation 8-29 LabWindows/CVI Standard Libraries
Parameter Discussion
searchPath may contain the wildcard characters '*' and '?'.
Each attribute parameter can have one of the following values:
0— do not search for files with the attribute
1— search for files with the attribute
fileName contains the basename and extension of the first matching file and must be at least
MAX_FILENAME_LEN characters in length.
GetFullPathFromProject
int result = GetFullPathFromProject (char fileName[], char fullPathName[]);
Purpose
Gets the full pathname for the specified file, if the file is in the currently loaded project.
Parameters
Input fileName string Name of file in project.
Output fullPathName string Full pathname of file.
Return value
result integer Result of operation.
Return codes
0
-1 Success.
File was not found in project.
Parameter Discussion
fileName is the name of a file that is in the currently loaded project. The name must be a simple
file name and should not contain any directory paths. For example, file.c is a simple file
name, whereas dir\file.c is not.
fullPathName must be at least MAX_PATHNAME_LEN bytes long.