10 #include <wx/dynarray.h>
13 // ---------------------------------------------------------------------------
16 class wxLibrary
: public wxObject
{
21 wxHashTable classTable
;
24 wxLibrary(void *handle
);
27 // Get a symbol from the dynamic library
28 void *GetSymbol(const wxString
& symbname
);
30 // Create the object whose classname is "name"
31 wxObject
*CreateObject(const wxString
& name
);
33 // Merge the symbols with the main symbols: WARNING! the library will not
35 void MergeWithSystem();
38 void PrepareClasses(wxClassInfo
**first
);
41 // ---------------------------------------------------------------------------
51 wxLibrary
*LoadLibrary(const wxString
& name
);
52 wxObject
*CreateObject(const wxString
& name
);
55 // ---------------------------------------------------------------------------
58 extern wxLibraries wxTheLibraries
;
60 // ---------------------------------------------------------------------------
61 // Interesting defines
63 #define WXDLL_ENTRY_FUNCTION() \
64 extern "C" wxClassInfo **wxGetClassFirst(); \
65 wxClassInfo **wxGetClassFirst() { \
66 return &wxClassInfo::first; \