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
Probably belongs in general programming. =P
This (http://www.clarionmag.com/cmag/v3/v3n5runtimedlls1.html) was the first thing that came up in Google.
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?
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.
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.
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. :(