im struggling to get findfirst to work in C++ i am using Microsoft Visual C++. Trying to fing all gifs in a directory. I found this following code is the general way of achieving this....
where am i going wrong? and how can i change directories?Code:#include <dos.h> #include <iostream> int done; struct ffblk ffblk; done = findfirst("*.gif",&ffblk,0); while(!done){ cout<<ffblk.ff_name; } return 0; }