Chris_SE
Dec 8th, 2000, 10:50 AM
I have a few questions that are driving me INSANE. Here I go:
For the FindFirstFile and FindNextFile apis, the api requires WIN32_FIND_DATA in the function arguement. How do I send that in C++?
Is there a way to use the DeleteFile api to delete all files of a certain type in a directory? I tried:
if(DeleteFile("C:/windows/desktop/testfolder/*.txt"))
cout<<"Delete Successful";
else
cout<<"Complete Failure";
Unfortunately that seems to only work if I give it a specific file, if I use *.something it doesn't seem to work, even though documentation I've seen says it should
Alright I am working on a key logger of sorts(just me screwing around) and I encountered a large problem. I need to be able to have code act like a vb timer. Hence it needs to keep repeating without returning a value. I tried recursion but that doesn't seem to work.
Is there a way to have a dynamic string like the apstring header(widely distributed) using normal char definitions?
For the FindFirstFile and FindNextFile apis, the api requires WIN32_FIND_DATA in the function arguement. How do I send that in C++?
Is there a way to use the DeleteFile api to delete all files of a certain type in a directory? I tried:
if(DeleteFile("C:/windows/desktop/testfolder/*.txt"))
cout<<"Delete Successful";
else
cout<<"Complete Failure";
Unfortunately that seems to only work if I give it a specific file, if I use *.something it doesn't seem to work, even though documentation I've seen says it should
Alright I am working on a key logger of sorts(just me screwing around) and I encountered a large problem. I need to be able to have code act like a vb timer. Hence it needs to keep repeating without returning a value. I tried recursion but that doesn't seem to work.
Is there a way to have a dynamic string like the apstring header(widely distributed) using normal char definitions?