making a list of files

This is a discussion on making a list of files within the Windows Programming forums, part of the Platform Specific Boards category; Hi, I'm not sure if this is the right board for this, but I am trying to make a file ...

  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    23

    making a list of files

    Hi, I'm not sure if this is the right board for this, but I am trying to make a file open list. The thing is, this is for direct x and not windows, but in the demo's (directx) they use a windows dialogue box. I'm using my own GUI so I really just need some help with how to make a list of the files in a folder, the file name would then be passed as an ANSI string to where I need it for opening. I thought I'd say I'm using c++ as welL
    Thanks
    Last edited by Stevo; 11-01-2003 at 07:31 PM.

  2. #2
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    FindFirstFile() and FindNextFile() should help.
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  3. #3
    Registered User
    Join Date
    Aug 2003
    Posts
    23
    Thanks Benny, thats great I didn't even know about them commands, Thanks. Are there any headers I would need to include like fstream or anything?

  4. #4
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    Should be in windows.h.
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  5. #5
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,452
    Is in the FAQ
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  6. #6
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    I have a 3 part tutorial on directory logging here.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 01-09-2009, 11:17 AM
  2. Need help sorting a linked list. Beginner
    By scarlet00014 in forum C Programming
    Replies: 1
    Last Post: 09-27-2008, 06:16 PM
  3. singly linked circular list
    By DarkDot in forum C++ Programming
    Replies: 0
    Last Post: 04-24-2007, 08:55 PM
  4. instantiated from here: errors...
    By advocation in forum C++ Programming
    Replies: 5
    Last Post: 03-27-2005, 08:01 AM
  5. link list
    By Unregistered in forum C++ Programming
    Replies: 4
    Last Post: 12-13-2001, 04:41 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21