DCL 3.7.4
Loading...
Searching...
No Matches
Dll.h
Go to the documentation of this file.
1#ifndef __DCL_DLL_H__
2#define __DCL_DLL_H__ 20041127
3
4#ifndef __DCL_OBJECT_H__
5#include <dcl/Object.h>
6#endif
7#ifndef __DCL_EXCEPTION_H__
8#include <dcl/Exception.h>
9#endif
10
11__DCL_BEGIN_NAMESPACE
12
14{
16public:
17 String __message;
18
19public:
20 DllException(const String& _name, Exception* _cause);
21 DllException(const String& _name, uint32_t _errorNo);
22 DllException(const String& _name, const String& _message);
23
24 virtual String toString() const;
25};
26
27class DCLCAPI Dll : public Object
28{
30
31public:
32 Dll();
33 virtual ~Dll();
34
35 enum OpenFlag
36 {
37 DEFAULT = 0
38 };
39
40 void open(
41 const String& _filename, int _flags = DEFAULT
43
44 void close()
46
47 void* getAddress(const char* _symbol)
49
50 void* getAddress(const String& _symbol)
52
53 const String& fileName() const { return __filename; }
54
55protected:
56 void* __handle;
57 String __filename;
58};
59
60__DCL_END_NAMESPACE
61
62#endif // __DCL_DLL_H__
#define DCLCAPI
Definition Config.h:95
#define __DCL_THROWS1(e)
Definition Config.h:152
#define DECLARE_CLASSINFO(class_name)
Definition Object.h:227
DllException(const String &_name, Exception *_cause)
Definition Dll.h:28
void * __handle
Definition Dll.h:56
String __filename
Definition Dll.h:57
Exception(Exception *_cause=NULL)
Object()
Definition Object.cpp:183
virtual String toString() const
SysError(Exception *_cause=NULL)