if ( dwRet != 0 )
{
+#if wxUSE_UNICODE
+ // can't pass a wxWCharBuffer through ( ... )
+ wxLogError(_("Failed to %s dialup connection: %s").data(),
+ async ? _("initiate").data() : _("establish").data(),
+ GetErrorString(dwRet).c_str());
+#else
+ // can't pass a wxWCharBuffer through ( ... )
wxLogError(_("Failed to %s dialup connection: %s"),
wxString(async ? _("initiate") : _("establish")).c_str(),
GetErrorString(dwRet).c_str());
+#endif
// we should still call RasHangUp() if we got a non 0 connection
if ( ms_hRasConnection )
wxDllType hDll = wxDllLoader::LoadLibrary(_T("WININET"), &ok);
if ( ok )
{
- typedef BOOL (*INTERNETGETCONNECTEDSTATE)(LPDWORD, DWORD);
+ typedef BOOL (WINAPI *INTERNETGETCONNECTEDSTATE)(LPDWORD, DWORD);
INTERNETGETCONNECTEDSTATE pfnInternetGetConnectedState;
#define RESOLVE_FUNCTION(type, name) \