📄 dynamiclibrary.h
字号:
#ifndef DYNAMICLIBRARY_H
#define DYNAMICLIBRARY_H
/*
The most codes here is from the ICE(www.zeroc.com). Thanks a lot. ;-)
*/
#ifndef _WIN32 #include <dlfcn.h>#else #include <windows.h>#endif
#include <stddef.h>
#include <string>
using namespace std;
#include "common.h"
class EXPORT DynamicLibrary
{
public:
DynamicLibrary();
~DynamicLibrary();
public:
bool load( const string& __filename );
void* getSymbol( const string& __name );
void unload(void);
const string& getError(void) const
{
return _err;
}
protected:
#ifdef _WIN32 HINSTANCE _hnd;#else void* _hnd;#endif
string _err;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -