Hello!
I have a dll and with mirc I just have to type "/dll <dllname> command". Is it possible that my eggdrop can load this dll-file and can do a command with it? If so, can you make a script?
Generally it's not possible. You won't be able to load any mIRC compabible dll files. There are some modules/libraries for Tcl which can be loaded but you won't rather need it.
they have to be compatible eggdrop modules as .so for eggdrop and .dll for windrop. they can then be loaded with "loadmodule name", if placed in the module subdir. I am not sure if the actuall eggdrop binary must be compiled with knowledge of that module.
De Kus wrote:they have to be compatible eggdrop modules as .so for eggdrop and .dll for windrop. they can then be loaded with "loadmodule name", if placed in the module subdir. I am not sure if the actuall eggdrop binary must be compiled with knowledge of that module.
I placed the dll-file into the module subdir and added in my script the line "loadmodule mIRC_Ren".
With mIRC I can run a command with this file("/dll <dllname> command"). How it is possible to do this with the windrop?
The only .dll files which can be loaded by eggdrop/windrop are eggdrop modules. If you want to load a .dll file to windrop you have write it (in C language) as a module. For more info check an woobie module which can be found in any package containing eggdrop source code.
Have you tried loading your custom module already? Did you checked .'.loadmod modname' commadn on party-line? Did you saw any error messages? If yes then give up on this 'case you won't be able to load it at any time.
If you have the source code of the .dll file, you would only need to study the documention of the woobie module to add either tcl binds to events or tcl command names. Addionally add the required init function and of course replace all functions not supported by GCC (either Cygwin or MAYBE MinGW) in case it was written for MVC which is very likely the case for a module that was intented for a windows only product like mIRC.
However without the source you would probably have to write a module with the only intention to load mIRC based .dll and wrap all mIRC events to eggdrop events as far as that is even possible. Maybe you will even need to emulate some events. In the end, I am pretty sure, its much easier to write an equivalent TCL script (or C/C++ module) .