01-03-2007 02:44 AM
01-03-2007 10:50 AM
01-03-2007 07:20 PM
Thanks Mert.
you are right, i call GetFirstFile again in FetchlniFile function. because the lni file only contain the path of parameter file. I want to call GetFirstFile to check the parameter file is in specified path or not. Now it seems like i can not use this function anymore. could you tell me which function is similar with this one?
Gerry
01-03-2007 11:36 PM
01-04-2007 01:50 AM
Good, I have solved problem , thanks.
bye the way. i find there is a function Findclose on Windows API, why i can not find this function in CVI?
Gerry
01-04-2007 10:13 AM
01-04-2007 07:17 PM
01-04-2007 07:23 PM
01-04-2007 07:49 PM
02-18-2020 11:24 AM
@Mert_A. wrote:
The Windows API find functions (e.g. FindFirstFile) use handles that allow multiple searches to be performed independently. FindClose is called on a handle to notify the library that you are done with the search, and the resources associated with that search may be freed. Because the GetFirst/NextFile functions in the CVI Utility library do not support concurrent, independent searching, there are no handles and no resources to be freed by a FindClose-like function.
Thanks for clarifying this. I found out the hard way. I was using a GetFirst/NextFile loop at the top, and then inside this loop, doing another GetFirst/NextFile to get a group of specific files in that group. Nope, doesn't work for the reasons you noted.
Is there a better way to go about nested file path finding?