I am trying to use RasDial to establish an internet connection, but am getting an error that I don't understand. Here is the code that I am using: RASDIALPARAMS dialParams; DWORD dwRes; CString cs; char szError[50]; dialParams.dwSize = sizeof( RASDIALPARAMS ); strcpy( dialParams.szEntryName, "" ); strcpy( dialParams.szPhoneNumber, "szPhone" ); strcpy( dialParams.szCallbackNumber, "" ); strcpy( dialParams.szUserName, "szUser" ); strcpy( dialParams.szPassword, "szPW" ); strcpy( dialParams.szDomain, "" ); dwRes = RasDial( NULL, NULL, &dialParams, 0, NULL, &m_hRasConn ); if( dwRes == 0 ) { m_list.AddString( "Success." ); } else { RasGetErrorString( dwRes, szError, sizeof(szError) ); cs.Format( "Error: #%d = %s - Handle: %s", dwRes, szError, (m_hRasConn == NULL) ? "NULL" : "Non-NULL" ); m_list.AddString( cs ); } The error that I'm getting is that it "Cannot find phonebook entry." My understanding is that this makes no sense, since in Win98, phonebooks are not valid and should be ignored. I've checked the article at http://www.codeproject.com/internet/dialup.asp, but my code seems identical to that example. Does anyone have any suggestions? Thanks, Matt J
M
Matt James
@Matt James