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:
Vadim Zeitlin
2005-07-29 22:27:13 +00:00
parent b7146cbec5
commit 93ed8ff770
4 changed files with 65 additions and 7 deletions

View File

@@ -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