Go4Expert (http://www.go4expert.com/)
-   Win32 (http://www.go4expert.com/forums/win32/)
-   -   Win32 File Switching within a directory (http://www.go4expert.com/forums/win32-file-switching-directory-t352/)

hemanth.balaji 10Jun2005 21:16

Win32 File Switching within a directory
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.

shabbir 11Jun2005 06:39

Re: Win32 File Switching within a directory
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.

Shabbir Bhimani

All times are GMT +5.5. The time now is 01:58.