Re: Dynamic Boards for Windows?

From: Patrick J. Dughi (dughi@IMAXX.NET)
Date: 04/02/98


> I had asked George earlier about the patch that Patrick Dughi wrote for
> Dynamic Boards on OLC. It appears that this patch needs the file dirent.h,
> which is used only on *nix based systems. I was just wondering if there was
> anyone out there using a Win based MUD that had a Dynamic board type code,
> working for them? If so, could I be contacted? Or if Patrick Dughi has
> written any newer patches for a Win based system?  Any information would be
> appreciated. Much Thanks.
>
        Sorry - I haven't access to a working windows 95 machine with a
compiler that will work with circle mud (Ie, too lazy to set it up).  On
the other hand, I do have a wealth of information about the dirent.h
header that was included.  I included it so I could use the scandir
function.  Its only used once, and it creates a simple structure filled
with all the directory data (in this case, the board directory).  All you
really need to do is find a windows function which will get the name of
all the files in a directory, and then if the name is a number (like 1024
or 1201) run the create_new_board() function with that number as an
argument.  You may want to use readdir() which i think is on your system,
and performs a similar function.

                                                PjD


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST