|
-
Dec 11th, 2000, 12:00 PM
#1
Thread Starter
Addicted Member
Okay I've checked 3 api sites and a book and they all say this works. Unfortunately I can't make a long value equal FindFirstFile or FindNextFile. Here's my code.
Can someone make this work correctly? Btw it only grabs the first 2 files in this code, i'll add my loop later
[code]
#include <iostream.h>
#include <windows.h>
void main()
{
WIN32_FIND_DATA data;
char search[] = "C:/windows/system/*.dll";
long hsearch;
hsearch = FindFirstFile("C:/windows/system/*.dll",&data);
cout<<data.cFileName<<endl;
FindNextFile(hsearch,&data);
cout<<path<<data.cFileName<<endl;
}
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
|