egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to use a dll with eggdrop?

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
darton
Op


Joined: 21 Jan 2006
Posts: 155

PostPosted: Mon May 01, 2006 2:45 pm    Post subject: How to use a dll with eggdrop? Reply with quote

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
View user's profile Send private message
KrzychuG
Master


Joined: 16 Aug 2003
Posts: 306
Location: Torun, Poland

PostPosted: Mon May 01, 2006 3:23 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Tue May 02, 2006 9:30 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
darton
Op


Joined: 21 Jan 2006
Posts: 155

PostPosted: Thu May 04, 2006 9:56 am    Post subject: Reply with quote

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
View user's profile Send private message
KrzychuG
Master


Joined: 16 Aug 2003
Posts: 306
Location: Torun, Poland

PostPosted: Thu May 04, 2006 3:28 pm    Post subject: Reply with quote

IT'S NOT POSSIBLE TO LOAD mIRC DLL FILES TO EGGDROP!
_________________
Que?
Back to top
View user's profile Send private message Visit poster's website
darton
Op


Joined: 21 Jan 2006
Posts: 155

PostPosted: Thu May 04, 2006 4:32 pm    Post subject: Reply with quote

But De Kus said that the windrop can load dll-files.
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Thu May 04, 2006 7:44 pm    Post subject: Reply with quote

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. Smile
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
darton
Op


Joined: 21 Jan 2006
Posts: 155

PostPosted: Fri May 05, 2006 10:18 am    Post subject: Reply with quote

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
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Fri May 05, 2006 11:04 am    Post subject: Reply with quote

Not necessarily.

Windrop Central - News
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
darton
Op


Joined: 21 Jan 2006
Posts: 155

PostPosted: Fri May 05, 2006 3:22 pm    Post subject: Reply with quote

What is not necessary?
Back to top
View user's profile Send private message
KrzychuG
Master


Joined: 16 Aug 2003
Posts: 306
Location: Torun, Poland

PostPosted: Fri May 05, 2006 4:08 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat May 06, 2006 1:33 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Sat May 06, 2006 3:42 am    Post subject: Reply with quote

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) Very Happy.
_________________
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
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber