Loading all files in a directory

This is a discussion on Loading all files in a directory within the Windows Programming forums, part of the Platform Specific Boards category; ok, i have a program which uses DLLs as plug-ins. In the programs directory I have a folder called plugins ...

  1. #1
    Registered User steve_i83's Avatar
    Join Date
    Aug 2001
    Posts
    42

    Cool Loading all files in a directory

    ok, i have a program which uses DLLs as plug-ins.
    In the programs directory I have a folder called plugins which contains at any one time a undefined number of plugin DLL files.

    At program start up i want it to load all the DLLs (with LoadLibrary() ) but how do i get all the filenames of the plugins in the plugins folder ??

    thxs
    steve
    C Rulz!

  2. #2
    zen
    zen is offline
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    You can get all the files in a directory using FindFirstFile() and FindNextFile().

  3. #3
    Registered User steve_i83's Avatar
    Join Date
    Aug 2001
    Posts
    42
    thxs!!
    C Rulz!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Copying all files in a directory
    By rak1986 in forum C Programming
    Replies: 2
    Last Post: 08-25-2008, 02:02 AM
  2. deleting all files in a directory using c..
    By ShadeS_07 in forum C Programming
    Replies: 6
    Last Post: 07-30-2008, 09:21 AM
  3. Replies: 4
    Last Post: 07-24-2008, 10:02 AM
  4. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 02:30 PM
  5. Dos commands hehe
    By Carp in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 01-17-2003, 02:51 PM

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