Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 378 results for
findfirstfile
- Page 1
Re: FindFirstFile()
Programming
Software Development
17 Years Ago
by Darth Vader
…] folderBrowserDialog1->ShowDialog(); HANDLE h; WIN32_FIND_DATA lpFileName; h = ::
FindFirstFile
(folderBrowserDialog1->SelectedPath, &lpFileName); // this->textBox1->…quot; in my code.( This Line ) [code] h = ::
FindFirstFile
(folderBrowserDialog1->SelectedPath, &lpFileName); [/code] [code] WIN32_FIND_DATA ffd…
Re: FindFirstFile()
Programming
Software Development
17 Years Ago
by Ancient Dragon
…contains a lot of fields including the filename. Look up
FindFirstFile
() in MSDN and you will see that that structure contains…. 2.
FindFirstFile
returns a HANDLE. Setting [icode]this->textBox1->Text… will find a couple very extensive programs that use
FindFirstFile
() and FindNextFile().
FindFirstFile()
Programming
Software Development
17 Years Ago
by Darth Vader
… know what could be wrong. I am trying to first
FindFirstFile
() but my compiler doesn´t compile. What could be missing… ? [code] folderBrowserDialog1->ShowDialog(); HANDLE h; WIN32_FIND_DATA lpFileName; h = ::
FindFirstFile
(folderBrowserDialog1->SelectedPath, &lpFileName); this->textBox1->Text…
FindFirstFile()
Programming
Software Development
14 Years Ago
by darkdai
hey everyone, i was wondering if anyone can tell me how to prompt the user the enter the filename to be searched for using
FindFirstFile
. and if there a way of setting a default path to search in
Re: FindFirstFile()
Programming
Software Development
14 Years Ago
by WaltP
Output a prompt asking for filename Input as string Use the string in [iCODE]
FindFirstFile
()[/iCODE] as per the definition of the function.
Re: FindFirstFile()
Programming
Software Development
14 Years Ago
by darkdai
but with the
FindFirstFile
() function, on you are supposed to enter the the path and the filename of which you are going to search for, so how can you icnlude both of those together in one?
Re: FindFirstFile()
Programming
Software Development
14 Years Ago
by Ancient Dragon
If you enter *.* from the keyboard then just concantinate the two strings. Simple. [code] char path[255] = {"c:\\myfolder\\}; char file[] = "*.*'; strcat(path,file);
FindFirstFile
(path, ...); [/code]
Re: FindFirstFile()
Programming
Software Development
14 Years Ago
by darkdai
…\\"}; char filename[30]="*.*"; strcat(path,filename); hFind =
FindFirstFile
(path, &FindFileData); [/CODE] but i get an error that…
Re: FindFirstFile()
Programming
Software Development
14 Years Ago
by Ancient Dragon
You are compiling for UNICODE. Either turn UNICODE off or make the string literals UNCODE compatible. [code] #include <tchar.h> ... <snip> TCHAR path[260]={_TEXT("C:\\Users\\")}; TCHAR filename[30]=_TEXT("*.*"); _tcscat(path,filename); hFind =
FindFirstFile
(path, &FindFileData); [/code]
findfirstfile
Programming
Software Development
11 Years Ago
by CreatorZeus
… worked out. annnnnnnnnnnnnd code snippet: ` WIN32_FIND_DATA FindFileData; HANDLE hFind; hFind =
FindFirstFile
(_T"C:\\Dev-Cpp\\notes", &FindFileData); if…
Re: findfirstfile
Programming
Software Development
11 Years Ago
by deceptikon
… in old fasion way! You mean `errno.h`? `_stat` and `
FindFirstFile
` are both C-based API functions, so errno and return…
FindFirstFile & FindNextFile return extra files?
Programming
Software Development
20 Years Ago
by bronzefury
…search string by passing [I]C:\*bc*[/I] to
FindFirstFile
(). The program attaches the asterisks at the beginning and …end of the Search String.
FindFirstFile
and FindNextFile returns many files that contain the letters &… indicate which function call found that file, either
FindFirstFile
() or FindNextFile(). bronzefury
FindFirstFile() giving error "The request is not supported." in Windows 7
Programming
Software Development
15 Years Ago
by harish_s
…a directory of Solaris OS from Windows OS using
FindFirstFile
(). In Windows XP, the code is working …but in Window 7 same code is not working.
FindFirstFile
() returns INVALID HANDLE in Windows 7 and GetLastError()…CODE] It works fine in XP but in Windows 7
FindFirstFile
() returns INVALID_HANDLE_VALUE and then GetLastError() reports Error Code 50.…
FindFirstFile() giving error "The request is not supported." in Windows 7
Hardware and Software
Microsoft Windows
15 Years Ago
by harish_s
… open a directory of Solaris OS from Windows OS using
FindFirstFile
(). In Windows XP, the code is working fine but in… Window 7 same code is not working.
FindFirstFile
() returns INVALID HANDLE in Windows 7 and GetLastError() return error…
findFirstFile() in c#
Programming
Software Development
16 Years Ago
by saneeha
I am converting a code from c++ to c#. The code uses the function
findFirstFile
() to return the first file of the directory.. Is this function present in c#, or there are any modifications to the function..The function uses a header windows.h. What is its replacement in c#? MSDN has no example for this function in c# .. plz help.....
Re: findFirstFile() in c#
Programming
Software Development
16 Years Ago
by dickersonka
ddanbe gave the way c# does it, i would suggest to stay with some modification of that, try to stick with what the language gives you if its possible, rather than trying to mimic c++ here is an article the has an implementation of
findfirstfile
in c# [url]http://www.codeproject.com/KB/files/FileSystemEnumerator.aspx[/url]
FindFirstFile error code
Programming
Software Development
16 Years Ago
by techmaddy
hi, I am using
FindFirstFile
() and some times it is setting a error code of 317 (ERROR_MR_MID_NOT_FOUND 317 (0x13D)) Can anybody let me know what could be the reasons behind such an error. Thanks in Advance, Madhu
FindFirstFile Not working properly
Programming
Software Development
14 Years Ago
by duliduli556
Hi Guys I am trying to read contents of directory... using "FindNextFile(hFind, &FindFileData)"
Findfirstfile
returned me then first file in the directory.. even though I have somany files in the directory (FindNextFile(hFind, &FindFileData) returning me zero..... can anyone help me... thanks in advance... Thanks
Re: findfirstfile
Programming
Software Development
11 Years Ago
by CreatorZeus
sorry guys, false alarm. found the problem.
Re: findfirstfile
Programming
Software Development
11 Years Ago
by Lucaci Andrew
Well, you can do it using plain ifstream handling: bool existFile(string filename){ return ((ifstream(filename.c_str())).good()); } [Click Here](http://www.cplusplus.com/reference/ios/ios/good/)
Re: findfirstfile
Programming
Software Development
11 Years Ago
by Ancient Dragon
You can also do it with [_stat()](http://msdn.microsoft.com/en-us/library/14h5k7ff.aspx)
Re: findfirstfile
Programming
Software Development
11 Years Ago
by duskoKoscica
Oh I would like to see that thing done with > try except thing like, because the MSDN program still uses errror.h, and hendels the error in old fasion way!
Re: findfirstfile
Programming
Software Development
11 Years Ago
by duskoKoscica
Who said that it is what youhave added, but then !
Re: findfirstfile
Programming
Software Development
11 Years Ago
by duskoKoscica
And since Decepticon undersands the try catch block, that idea how you cold have iput buffer of chars and then convert it to int, well try atoi(cInputBuffer) woudl not be to much out there. It is like, you try to convert it, and if you can you do what you do, and if not possible you go to eror handler. What have you gain like that, whell your app …
WINAPI FindFirstFile & FindNextFile problem
Programming
Software Development
14 Years Ago
by k_nenad
… CharSet = CharSet.Auto)] public static extern IntPtr
FindFirstFile
(string lpFileName, out WIN32_FIND_DATA lpFindFileData); [DllImport("…GetCurrentDirectory()); WIN32_FIND_DATA wfd = new WIN32_FIND_DATA(); IntPtr h =
FindFirstFile
((dir + @"\*.*"), out wfd); while (FindNextFile(…
Win32_FIND_DATA FindFirstFile
Programming
Software Development
19 Years Ago
by princess_lia
…[B]lstrcpy (sDirectory, "264\\*.264"); hSearch =
FindFirstFile
(sDirectory, &FindFileData);[/B] if (hSearch == INVALID_HANDLE_VALUE) { …quot;, GetLastError()); exit(1); } } ------------------------------------------------------------------------- As "
FindFirstFile
" is not picking the complete filename, but just …
need FindFirstFile in linux!!!!
Hardware and Software
Linux and Unix
17 Years Ago
by nabilchampion
… windows to linux box..n i just encountered a function
findfirstfile
() used in windows..this function also takes wildcards as regular… in linux then plz let me know... u can search
findfirstfile
() detail in MSDN
code for findfirstfile!
Programming
Software Development
17 Years Ago
by nabilchampion
… windows to linux box..n i just encountered a function
findfirstfile
() used in windows..this function also takes wildcards as regular… in linux then plz let me know... u can search
findfirstfile
() detail in MSDN:icon_mrgreen:
Get path to file found by FindFirstFile
Programming
Software Development
16 Years Ago
by praetorian20
Hi, I'm using
FindFirstFile
and FindNextFile functions to get a list of files from … 'subDir1\*' as the input argument I know how to use
FindFirstFile
and FindNextFile to get 'file1.txt' but I also need…
Re: C - WINAPI - FindFirstFile retruns "."
Programming
Software Development
13 Years Ago
by MonsieurPointer
… I can still pitch in and help. After a
FindFirstFile
, FindNextFile is usually called in a loop, but only… if
FindFirstFile
does not return INVALID_HANDLE_VALUE. Once you are done, you…will need to close the handle with FindClose. When using
FindFirstFile
to search for directories, the first result is always …
1
2
3
7
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
Backlink Auditor
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC