10 #include <wx/dynarray.h>
17 // ---------------------------------------------------------------------------
20 class wxLibrary
: public wxObject
{
25 wxHashTable classTable
;
28 wxLibrary(void *handle
);
31 // Get a symbol from the dynamic library
32 void *GetSymbol(const wxString
& symbname
);
34 // Create the object whose classname is "name"
35 wxObject
*CreateObject(const wxString
& name
);
37 // Merge the symbols with the main symbols: WARNING! the library will not
39 void MergeWithSystem();
42 void PrepareClasses(wxClassInfo
*first
);
45 // ---------------------------------------------------------------------------
55 wxLibrary
*LoadLibrary(const wxString
& name
);
56 wxObject
*CreateObject(const wxString
& name
);
59 // ---------------------------------------------------------------------------
62 extern wxLibraries wxTheLibraries
;
64 // ---------------------------------------------------------------------------
65 // Interesting defines
67 #define WXDLL_ENTRY_FUNCTION() \
68 extern "C" wxClassInfo *wxGetClassFirst(); \
69 wxClassInfo *wxGetClassFirst() { \
70 return wxClassInfo::GetFirst(); \