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 )
if ( pfnInternetGetConnectedState(&flags, 0 /* reserved */) )
{
// there is some connection to the net, see of which type
- ms_isAlwaysOnline = (flags & INTERNET_CONNECTION_LAN != 0) ||
- (flags & INTERNET_CONNECTION_PROXY != 0);
+ ms_isAlwaysOnline = ((flags & INTERNET_CONNECTION_LAN) != 0)
+ || ((flags & INTERNET_CONNECTION_PROXY) != 0);
}
else
{
{
// create a hidden window to receive notification about connections
// status change
- extern const wxChar *wxPanelClassName;
- ms_hwndRas = ::CreateWindow(wxPanelClassName, NULL,
+ extern const wxChar *wxCanvasClassName;
+ ms_hwndRas = ::CreateWindow(wxCanvasClassName, NULL,
0, 0, 0, 0,
0, NULL,
(HMENU)NULL, wxGetInstance(), 0);