87 if (fname==NULL || n<=0)
return FALSE;
110 if (lp==NULL)
return FALSE;
114 hmod = (HMODULE)(lp->ldat.ptr);
122 title = (*pgetinfo)(0);
125 for (
int i=1; i<
fnum; i++) {
126 char* nfn = (*pgetinfo)(i);
127 void* pfn = (
void*)GetProcAddress(
hmod, nfn);
150 if (
status<=0)
return NULL;
190 for (
int i=0; i<
vnum; i++) {
201 if (lt->ldat.ptr!=NULL) {
202 FreeLibrary((HMODULE)(lt->ldat.ptr));
230 if (dirn!=NULL)
dirname = dirn;
234 if (
lp==NULL)
return FALSE;
266 if (dirn==NULL)
return NULL;
268 if (lm==NULL)
return NULL;
271 HMODULE hmod = LoadLibrary((LPCTSTR)
mbs2ts((
char*)(lt->ldat.val.buf)));
272 lt->ldat.ptr = (
void*)hmod;
273 char* fn = get_file_name((
char*)(lt->ldat.val.buf));
274 lt->ldat.key = make_Buffer_bystr(fn);
281 if (lt->ldat.ptr==NULL) {
283 if (lm==lt) lm = lt->next;
308 if (fname==NULL)
return;
void make_module_tbl(LPCTSTR fname, int n)
tList * get_dir_module(LPCTSTR dirn)
BOOL load_module(LPCTSTR dirn=NULL)
virtual void set_module_function()
virtual DLLModule * new_module(LPCTSTR fname, int n)
void init(LPCTSTR dirn=NULL)
BOOL get_module_info(tList *lp)
BOOL set_funcname(LPCTSTR fname, int n)
void * get_funcptr(int n)
void init(LPCTSTR fname, int n)
char * ts2mbs(LPCTSTR str)
CString mbs2ts(char *str)
char *(* FUNC_STRING)(int)
tList * get_dir_files_t(LPCTSTR dirn)