added wxDynamicLibrary::GetSymbolAorW()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35003 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user