Find all files with extension in a directory

This is a discussion on Find all files with extension in a directory within the Windows Programming forums, part of the Platform Specific Boards category; I am tryng to programm a map_editor for my next game named Vertex_Wars and I am doing this in DirectDraw. ...

  1. #1
    Unregistered
    Guest

    Question Find all files with extension in a directory

    I am tryng to programm a map_editor for my next game
    named Vertex_Wars and I am doing this in DirectDraw.
    i am using my owen GUI.
    i ned a function that find all files with the extension .map in
    a specified directory.

    Can somebody Help me please.

    thx in Advance
    and forgive me my bad English

  2. #2
    zen
    zen is offline
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    You need FindFirstFile() and FindNextFile().
    zen

  3. #3
    Unregistered
    Guest

    Wink

    i have chackd this and it works!!!!!

    thousands thx's to Zen

  4. #4
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,859
    Don't forget the FindClose() call.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Borlund 5.5 can't find files
    By waysgoose in forum C++ Programming
    Replies: 2
    Last Post: 05-25-2008, 02:54 AM
  2. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 04:30 PM
  3. open directory and copy files
    By 5n4k3 in forum C++ Programming
    Replies: 3
    Last Post: 08-06-2003, 10:49 AM
  4. getting files in directory
    By threahdead in forum C Programming
    Replies: 3
    Last Post: 10-09-2002, 05:13 PM
  5. How I can use the windows font files with (.ttf) extension?
    By hadizadeh in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 12-18-2001, 06:01 AM

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