Discussion:
RASDIAL
(too old to reply)
Michele
2010-03-16 12:07:41 UTC
Permalink
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;

}

}
Bruce Eitman [eMVP]
2010-03-16 16:49:47 UTC
Permalink
How are you pinging and using FTP? Do you have valid DNS set up? What does
"I not navigate" mean to you? or more important what actually happens?
--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT Eurotech DOT com
My BLOG http://geekswithblogs.net/bruceeitman

Eurotech Inc.
www.Eurotech.com
Post by Michele
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)
{
break;
break;
break;
break;
break;
}
hRasConn = NULL;
RetVal = RasDial(NULL, NULL, &RasDialParams, 0xFFFFFFFF, v_hWnd,
&hRasConn);
if (RetVal==0)
{
return TRUE;
}
else
{
return FALSE;
}
}
Loading...