1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Win32 File Switching within a directory

Discussion in 'Win32' started by hemanth.balaji, Jun 10, 2005.

  1. hemanth.balaji

    hemanth.balaji New Member

    Joined:
    May 22, 2005
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    0
    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.
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,287
    Likes Received:
    364
    Trophy Points:
    83
    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
     

Share This Page