> Has anyone tried to do modular programming with rom?  So that instead of
> making a change the program, and having to "recompile" every time u make
> a change and have to "restart" the whole entire mud to make changes,
> just do a reload of the module?
>
> I was thinkin about it tonight. And was thinkin about making a modular
> based snippet to allow for this.
>
> What I would like would be some ideas/oppinions/suggestions on what you
> all think about this and what you'd like to see in such a project. Any
> help would appreciated. Even critisizm would be helpful.  :)
>
>
> Thanks for your time,
> Rheede
>

    Myself, well... yes and no...
    About a year ago, I tried making a modular DLL "plugin" system with
cygwin and a heavily, heavily modified rom.  I had tried using DLLs for the
modules but ran into problems debugging the function calls into the DLL.
(Maybe I should have tried with VC++ instead of cygwin?)
    The plugin system used a text file (CSV actually) to list commands,
their attributes, the DLL name, and the function names inside the DLL
associated with the command and basically everything that once was inside
the Command Table - function calls were bound dynamically and were (of
course) all of type DO_FUN, etc.  It worked nicely, except for the standard
Windows problem of not being able to overwrite a file in use - in this case
the DLLs.  This kinda defeated the idea of a hot-pluggable command system
tho. :-/  If I could have figured out a way to force unload the DLL between
function calls, then this wouldn't have been a problem!  Maybe I just wasn't
doing something right...
    Unfortunately, my limited experience with DLLs is far to small to create
a fix for this problem, but I'd love to learn from someone that does know.
:-)  ...Because, I really really liked this idea.  (Yes, this was my first
try at using DLLs, so there are a great number of things for me to learn
yet...)

Tony



Reply via email to