-
October 26th, 2005, 04:21 PM
#1
_findfirsti64() problem
Hi all,
can you please explain me this behaviour?
Code:
LONG lHC = _findfirsti64("C:", &fileEntry);
LONG lHD = _findfirsti64("D:", &fileEntry);
After this code executes, the result is
Code:
lHC = -1
lHD = 1558184
Why did it fail for "C:"?
And how should I call it correctly for root drives?
Thank you.
The sun is the same in the relative way, but you're older
Shorter of breath and one day closer to death
- Roger Waters, 1973
-
October 26th, 2005, 04:25 PM
#2
Re: _findfirsti64() problem
try this:
Code:
LONG lHC = _findfirsti64("C:\\*.*", &fileEntry);
LONG lHD = _findfirsti64("D:\\*.*", &fileEntry);
Please use code tags [code] [/code]
We would change the world, but God won't give us the sourcecode..
Undocumented futures are fun and useful....
_________
Gili
-
October 26th, 2005, 04:28 PM
#3
Re: _findfirsti64() problem
Originally Posted by s_k
Why did it fail for "C:"?
Use GetLastError and the other error information functions to learn mode details about the error. See this FAQ
for details.
-
October 26th, 2005, 04:34 PM
#4
Re: _findfirsti64() problem
Originally Posted by s_k
Why did it fail for "C:"?
And how should I call it correctly for root drives?
Originally Posted by MSDN
Provide information about the first instance of a filename that matches the file specified in the filespec argument.
i dont think you can pass a drive letter paramter should be a filename!
if you want to get info about your Drives look here:
Volume Management Functions
Cheers
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|