Win32 File Switching within a directory

hemanth.balaji's Avatar, Join Date: May 2005
Go4Expert Member
Hi guys,
How do you implement ACDSEE like file switching within a current directory using win32 Api. As in, in my project I am reading a "DICOM" file as input and now I want a way in which I can view the next file by just clicking on a "Button" on the Toolbar. How do I implement such kind of File Switching in the Win32 Api. Like "Previous Button" for previous file and "next button" for next file instead of clicking File->Open and all that stuff.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
When any file is open use the vector to store the names/paths of all the files present in that directory. You need to use vector because you dont know the number of files you will have anc link list will be a more complicated approach. Now when anyone clicks next or previous just display the respected file.

Thanks
Shabbir Bhimani