Thread: Find all files with extension in a directory

  1. #1

    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
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    You need FindFirstFile() and FindNextFile().

  3. #3


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

    thousands thx's to Zen

  4. #4
    train spotter
    Join Date
    Aug 2001
    near a computer
    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, 01:54 AM
  2. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 03:30 PM
  3. open directory and copy files
    By 5n4k3 in forum C++ Programming
    Replies: 3
    Last Post: 08-06-2003, 09:49 AM
  4. getting files in directory
    By threahdead in forum C Programming
    Replies: 3
    Last Post: 10-09-2002, 04:13 PM
  5. How I can use the windows font files with (.ttf) extension?
    By hadizadeh in forum A Brief History of
    Replies: 0
    Last Post: 12-18-2001, 05:01 AM