X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0872eaf957aaf4138dbba007df662ce5eae374e2..5b12cceef870243338e39d4b15536008491de474:/include/wx/dynlib.h diff --git a/include/wx/dynlib.h b/include/wx/dynlib.h index a5273869fd..284ce7de2e 100644 --- a/include/wx/dynlib.h +++ b/include/wx/dynlib.h @@ -245,6 +245,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