Click here to Skip to main content
15,914,221 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: type castting and assignement problem Pin
kk_mfc1-Nov-06 19:31
kk_mfc1-Nov-06 19:31 
AnswerRe: type castting and assignement problem Pin
David Crow2-Nov-06 5:07
David Crow2-Nov-06 5:07 
AnswerRe: type castting and assignement problem Pin
ThatsAlok1-Nov-06 19:15
ThatsAlok1-Nov-06 19:15 
QuestionRe: type castting and assignement problem Pin
kk_mfc1-Nov-06 19:26
kk_mfc1-Nov-06 19:26 
QuestionIntegrating the functionality of two dlls Pin
tom groezer1-Nov-06 18:05
tom groezer1-Nov-06 18:05 
AnswerRe: Integrating the functionality of two dlls Pin
dharani2-Nov-06 0:13
dharani2-Nov-06 0:13 
GeneralRe: Integrating the functionality of two dlls Pin
tom groezer2-Nov-06 8:26
tom groezer2-Nov-06 8:26 
QuestionRAS dial up and ADSL Pin
Benlahrech .Dj1-Nov-06 17:14
Benlahrech .Dj1-Nov-06 17:14 
Hello everyone,

Could someone help me for how to open a RAS dial up using RasDial function knowing that
an adsl modem used, i wrote this code below

bool DialUp()
{
// Fill RASDIALPARAMS structure
RASDIALPARAMS rdParams;
rdParams.dwSize = sizeof(RASDIALPARAMS);
rdParams.szEntryName[0] = '\0';
lstrcpy(rdParams.szPhoneNumber, szPhoneNumberToDial);
rdParams.szCallbackNumber[0] = '\0';
lstrcpy( rdParams.szUserName, szUserName );
lstrcpy( rdParams.szPassword, szPassword );
rdParams.szDomain[0] = '\0';

HRASCONN hRasConn = NULL;
DWORD dwRet = RasDial( NULL, NULL, &rdParams, 0L, NULL, &hRasConn );

// Everything OK?
if (dwRet == 0)
return true;

// Error occurred - get error description and alert user
char szBuf[256];
if (RasGetErrorString( (UINT)dwRet, (LPSTR)szBuf, 256 ) != 0 )
wsprintf( (LPSTR)szBuf, "Undefined RAS Dial Error (%ld).", dwRet );
RasHangUp( hRasConn );
MessageBox( NULL, (LPSTR)szBuf, "Error", MB_OK | MB_ICONSTOP );

return false;
}
but when i excute the program i see the error message tell me that i have a bad modem configuration or modem port problem (my modem cofiguration is good)
any idea??
Thank you
---

Anyone who considers arithmetical methods of producing random numbers is, of course, in a state of sin.
John von Neumann

AnswerRe: RAS dial up and ADSL Pin
PJ Arends1-Nov-06 19:03
professionalPJ Arends1-Nov-06 19:03 
GeneralRe: RAS dial up and ADSL Pin
Benlahrech .Dj2-Nov-06 13:35
Benlahrech .Dj2-Nov-06 13:35 
GeneralRe: RAS dial up and ADSL Pin
Benlahrech .Dj2-Nov-06 14:25
Benlahrech .Dj2-Nov-06 14:25 
QuestionPointer arithmetic and Optimisation Pin
flip1-Nov-06 17:13
flip1-Nov-06 17:13 
AnswerRe: Pointer arithmetic and Optimisation Pin
Michael Dunn1-Nov-06 20:04
sitebuilderMichael Dunn1-Nov-06 20:04 
GeneralRe: Pointer arithmetic and Optimisation Pin
flip2-Nov-06 16:28
flip2-Nov-06 16:28 
AnswerRe: Pointer arithmetic and Optimisation Pin
cmk2-Nov-06 11:55
cmk2-Nov-06 11:55 
GeneralRe: Pointer arithmetic and Optimisation Pin
flip2-Nov-06 16:31
flip2-Nov-06 16:31 
QuestionHow do i open a '2nd level' dialog in main dialog in a DLL? Pin
tojjite1-Nov-06 16:51
tojjite1-Nov-06 16:51 
QuestionActiveX Include Other ActiveXs Pin
Louai Haimour1-Nov-06 14:02
Louai Haimour1-Nov-06 14:02 
QuestionOracle 8i ODBC driver Pin
Charlie Curtis1-Nov-06 11:36
Charlie Curtis1-Nov-06 11:36 
AnswerRe: Oracle 8i ODBC driver Pin
Mark Salsbery1-Nov-06 13:09
Mark Salsbery1-Nov-06 13:09 
GeneralRe: Oracle 8i ODBC driver Pin
Charlie Curtis1-Nov-06 13:25
Charlie Curtis1-Nov-06 13:25 
GeneralRe: Oracle 8i ODBC driver Pin
Mark Salsbery1-Nov-06 13:33
Mark Salsbery1-Nov-06 13:33 
GeneralRe: Oracle 8i ODBC driver Pin
Charlie Curtis1-Nov-06 13:48
Charlie Curtis1-Nov-06 13:48 
GeneralRe: Oracle 8i ODBC driver Pin
Mark Salsbery1-Nov-06 13:54
Mark Salsbery1-Nov-06 13:54 
GeneralRe: Oracle 8i ODBC driver Pin
Charlie Curtis1-Nov-06 14:09
Charlie Curtis1-Nov-06 14:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.