X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0872eaf957aaf4138dbba007df662ce5eae374e2..259c43f679ca655362b5a439e11c87fc0666d663:/include/wx/dynlib.h diff --git a/include/wx/dynlib.h b/include/wx/dynlib.h index a5273869fd..64aeb305cb 100644 --- a/include/wx/dynlib.h +++ b/include/wx/dynlib.h @@ -12,10 +12,6 @@ #ifndef _WX_DYNLIB_H__ #define _WX_DYNLIB_H__ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -# pragma interface "dynlib.h" -#endif - #include "wx/defs.h" #if wxUSE_DYNLIB_CLASS @@ -245,6 +241,30 @@ public: #endif } +#ifdef __WXMSW__ + // this function is useful for loading functions from the standard Windows + // DLLs: such functions have an 'A' (in ANSI build) or 'W' (in Unicode, or + // wide character build) suffix if they take string parameters + static void *RawGetSymbolAorW(wxDllType handle, const wxString& name) + { + return RawGetSymbol + ( + handle, + name + +#if wxUSE_UNICODE + L'W' +#else + 'A' +#endif + ); + } + + void *GetSymbolAorW(const wxString& name) const + { + return RawGetSymbolAorW(m_handle, name); + } +#endif // __WXMSW__ + // return all modules/shared libraries in the address space of this process // // returns an empty array if not implemented or an error occurred @@ -298,6 +318,8 @@ protected: #if WXWIN_COMPATIBILITY_2_2 && wxUSE_DYNAMIC_LOADER +#include "wx/object.h" + /* wxDllLoader is a class providing an interface similar to unix's dlopen(). It is used by wxDynamicLibrary wxLibrary and manages the actual loading of