// flags are GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT |
// GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS
HMODULE hmod;
- if ( s_pfnGetModuleHandleEx(6, (char *)addr, &hmod) && hmod )
+ if ( s_pfnGetModuleHandleEx(6, (LPCTSTR)addr, &hmod) && hmod )
return hmod;
}
/* static */
void *wxDynamicLibrary::RawGetSymbol(wxDllType handle, const wxString& name)
{
- return ::GetProcAddress(handle, name);
+ return ::GetProcAddress(handle, name.ToAscii());
}
// ----------------------------------------------------------------------------
{
wxDynamicLibraryDetailsArray dlls;
+#if wxUSE_DBGHELP
if ( wxDbgHelpDLL::Init() )
{
// prepare to use functions for version info extraction
wxLogLastError(_T("EnumerateLoadedModules"));
}
}
+#endif // wxUSE_DBGHELP
return dlls;
}