You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
493 B
C++

#ifndef __LOAD_MODULE_H
#define __LOAD_MODULE_H
#include <QtCore/QLibrary>
typedef void* (*Func_Lib_Init)(void *);
typedef void (*Func_Lib_Free)();
class CLoadModule
{
public:
CLoadModule(const char *szLibName, const char *szFuncInit, const char *szFuncFree, const char* szPath = NULL);
~CLoadModule(void);
void* ModuleInit(void* inParam = NULL);
void ModuleFree();
private:
QLibrary m_lib;
Func_Lib_Init m_fpInit;
Func_Lib_Free m_fpFree;
};
#endif