Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: warz on February 28, 2005, 12:19 AM

Title: Simple dll plugins
Post by: warz on February 28, 2005, 12:19 AM
I understand a lot of people use dll files as their plugins for their bot. Similar to skywings bot, except without any win32 api, simply linux console bot, how is loading dll plugins done? Skywings thing seemed rather indepth when i looked into it for my win32 bot. Just lookin for a brief description or website link that might help out some.

Thanks
Title: Re: Simple dll plugins
Post by: Newby on February 28, 2005, 12:20 AM
Probably belongs in general programming. =P

This (http://www.clarionmag.com/cmag/v3/v3n5runtimedlls1.html) was the first thing that came up in Google.
Title: Re: Simple dll plugins
Post by: dxoigmn on February 28, 2005, 12:22 AM
Quote from: Newby on February 28, 2005, 12:20 AM
Probably belongs in general programming. =P

This (http://www.clarionmag.com/cmag/v3/v3n5runtimedlls1.html) was the first thing that came up in Google.

Did you actually click that link?
Title: Re: Simple dll plugins
Post by: warz on February 28, 2005, 12:27 AM
Nevermind, found some useful functions.

Quote
> man dlopen
DLOPEN(3)           Linux Programmer's Manual           DLOPEN(3)

NAME
       dladdr, dlclose, dlerror, dlopen, dlsym, dlvsym - programĀ­
       ming interface to dynamic linking loader

SYNOPSIS
       #include <dlfcn.h>

       void *dlopen(const char *filename, int flag);

       char *dlerror(void);

       void *dlsym(void *handle, const char *symbol);

       int dlclose(void *handle);

DESCRIPTION
       The four functions dlopen(), dlsym(), dlclose(), dlerror()
       implement the interface to the dynamic linking loader.

Thanks.
Title: Re: Simple dll plugins
Post by: iago on February 28, 2005, 08:37 AM
You should have a look at how Gaim loads plugins.  It's nice and clean, and I got a lot of ideas for my Java bot from them.
Title: Re: Simple dll plugins
Post by: Newby on February 28, 2005, 08:44 AM
Quote from: dxoigmn on February 28, 2005, 12:22 AM
Quote from: Newby on February 28, 2005, 12:20 AM
Probably belongs in general programming. =P

This (http://www.clarionmag.com/cmag/v3/v3n5runtimedlls1.html) was the first thing that came up in Google.

Did you actually click that link?
Nope, damnit.

BugMeNot had no passwords for it either. Lame. :(