Thread: Find all files with extension in a directory

  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
    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,868
    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 Cprogramming.com
    Replies: 0
    Last Post: 12-18-2001, 06:01 AM