windows api functions, not working. requirements?
i just startet to learn programming in c.i like c, ithink its a very good language, however i have a situation now.i hope you nerds can help me out..
i need to code a windows api function. reading some binary files, store the data in a buffer and then build a tree whit it. this is not really a problem, i already implemented it (with some help), and it worked, but only on the workstation.not on some other machines.i have access to the api structures but all the handles goes to crap or -1(file not found) even if the files exist or some wildcard is used. i have visual studio 2005 on the workstation and visual studio 2008 on the other machines, full-install.this makes me insane, i started to go crazy.:) what is the solution for this one? also how can i check if any library file is damaged, if this is the case?
HANDLE fHandle; //HANDLE = 0xcccccc
fHandle = FindFirstFile("C:\*", &fData); //HANDLE = 0xffffff
ok:my english is crap, i already know that.you dont need to tell me.