| View previous topic :: View next topic |
| Author |
Message |
darton Op
Joined: 21 Jan 2006 Posts: 155
|
Posted: Mon May 01, 2006 2:45 pm Post subject: How to use a dll with eggdrop? |
|
|
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? |
|
| Back to top |
|
 |
KrzychuG Master

Joined: 16 Aug 2003 Posts: 306 Location: Torun, Poland
|
Posted: Mon May 01, 2006 3:23 pm Post subject: |
|
|
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. _________________ Que? |
|
| Back to top |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Tue May 02, 2006 9:30 am Post subject: |
|
|
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
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens... |
|
| Back to top |
|
 |
darton Op
Joined: 21 Jan 2006 Posts: 155
|
Posted: Thu May 04, 2006 9:56 am Post subject: |
|
|
| 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? |
|
| Back to top |
|
 |
KrzychuG Master

Joined: 16 Aug 2003 Posts: 306 Location: Torun, Poland
|
Posted: Thu May 04, 2006 3:28 pm Post subject: |
|
|
IT'S NOT POSSIBLE TO LOAD mIRC DLL FILES TO EGGDROP! _________________ Que? |
|
| Back to top |
|
 |
darton Op
Joined: 21 Jan 2006 Posts: 155
|
Posted: Thu May 04, 2006 4:32 pm Post subject: |
|
|
| But De Kus said that the windrop can load dll-files. |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Thu May 04, 2006 7:44 pm Post subject: |
|
|
| darton wrote: | | But De Kus said that the windrop can load dll-files. |
| De Kus wrote: | | ... they have to be compatible eggdrop modules as .so for eggdrop and .dll for windrop. |
You just cannot plonk any old .dll written exclusively to use mIRC into a Windrop and expect it to load let alone even work.
You will have to write your own. You are competent in C?
You could try Google and see if someone somewhere has written some for Windrop.  _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
darton Op
Joined: 21 Jan 2006 Posts: 155
|
Posted: Fri May 05, 2006 10:18 am Post subject: |
|
|
| The dll-file I have is not written only for mIRC. It is written in C. So I think it is possible to load it with windrop, isn't it? |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Fri May 05, 2006 11:04 am Post subject: |
|
|
Not necessarily.
Windrop Central - News _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
darton Op
Joined: 21 Jan 2006 Posts: 155
|
Posted: Fri May 05, 2006 3:22 pm Post subject: |
|
|
| What is not necessary? |
|
| Back to top |
|
 |
KrzychuG Master

Joined: 16 Aug 2003 Posts: 306 Location: Torun, Poland
|
Posted: Fri May 05, 2006 4:08 pm Post subject: |
|
|
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. _________________ Que? |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sat May 06, 2006 1:33 am Post subject: |
|
|
moreover, you would also need to implement a [dll] script command which would invoke your DLL function (analogous to mIRC's /dll) _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Sat May 06, 2006 3:42 am Post subject: |
|
|
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) . _________________ De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens... |
|
| Back to top |
|
 |
|