Michele
2010-03-16 12:07:41 UTC
Dear All, I have a strange problem with RasDial. I use this code and after
the connection PING and FTP are OK but if I try to navigate with IEXPLORER
or my HTTP browser I not navigate.
Why?
I seu the smartphone with Windows Mobile 5.0 and EDGE Modem
Thankse in advance
Michele
BOOL CRas::RasCalling()
{
DWORD RetVal;
RASDIALPARAMS RasDialParams;
memset ((char *)&RasDialParams, 0, sizeof(RasDialParams));
RasDialParams.dwSize = sizeof(RasDialParams);
tcscpy(RasDialParams.szEntryName, T("MY_NAME_CONN"));
RetVal = RasSetEntryDialParams(NULL, &RasDialParams, FALSE);
switch (RetVal)
{
case ERROR_SUCCESS:
break;
case ERROR_BUFFER_INVALID:
break;
case ERROR_CANNOT_OPEN_PHONEBOOK:
break;
case ERROR_CANNOT_FIND_PHONEBOOK_ENTRY:
break;
default:
break;
}
hRasConn = NULL;
RetVal = RasDial(NULL, NULL, &RasDialParams, 0xFFFFFFFF, v_hWnd,
&hRasConn);
if (RetVal==0)
{
return TRUE;
}
else
{
return FALSE;
}
}
the connection PING and FTP are OK but if I try to navigate with IEXPLORER
or my HTTP browser I not navigate.
Why?
I seu the smartphone with Windows Mobile 5.0 and EDGE Modem
Thankse in advance
Michele
BOOL CRas::RasCalling()
{
DWORD RetVal;
RASDIALPARAMS RasDialParams;
memset ((char *)&RasDialParams, 0, sizeof(RasDialParams));
RasDialParams.dwSize = sizeof(RasDialParams);
tcscpy(RasDialParams.szEntryName, T("MY_NAME_CONN"));
RetVal = RasSetEntryDialParams(NULL, &RasDialParams, FALSE);
switch (RetVal)
{
case ERROR_SUCCESS:
break;
case ERROR_BUFFER_INVALID:
break;
case ERROR_CANNOT_OPEN_PHONEBOOK:
break;
case ERROR_CANNOT_FIND_PHONEBOOK_ENTRY:
break;
default:
break;
}
hRasConn = NULL;
RetVal = RasDial(NULL, NULL, &RasDialParams, 0xFFFFFFFF, v_hWnd,
&hRasConn);
if (RetVal==0)
{
return TRUE;
}
else
{
return FALSE;
}
}