Click here to Skip to main content
15,911,891 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalembedding fonts Pin
difa13-Jun-03 23:10
difa13-Jun-03 23:10 
GeneralRe: embedding fonts Pin
basementman16-Jun-03 4:34
basementman16-Jun-03 4:34 
GeneralRe: embedding fonts Pin
Swinefeaster13-Mar-04 13:16
Swinefeaster13-Mar-04 13:16 
GeneralON_UPDATE_COMMAND_UI wont update my menu text (in dialog based application) Pin
yccheok13-Jun-03 22:20
yccheok13-Jun-03 22:20 
GeneralRe: ON_UPDATE_COMMAND_UI wont update my menu text (in dialog based application) Pin
valikac14-Jun-03 6:29
valikac14-Jun-03 6:29 
GeneralRe: ON_UPDATE_COMMAND_UI wont update my menu text (in dialog based application) Pin
Michael Dunn14-Jun-03 6:32
sitebuilderMichael Dunn14-Jun-03 6:32 
GeneralRe: ON_UPDATE_COMMAND_UI wont update my menu text (in dialog based application) Pin
tfiner11-Apr-12 8:00
tfiner11-Apr-12 8:00 
GeneralAsynchronies dial up connection Pin
no_body6913-Jun-03 18:55
no_body6913-Jun-03 18:55 
Hi,
In my program, I use asynchronies dial up connection with rasapi32 api.
From RasDialFunc, after RASCS_AuthNotify, I can’t get any other message.

Anybody knows why this happens?

Here is my RasDialFunc code.

VOID WINAPI RasDialFunc(UINT unMsg, RASCONNSTATE rasconnstate, DWORD dwError)
{

if ( dwError )
{
char szBuf[256];
if ( RasGetErrorString( dwError, (LPSTR)szBuf, 256 ) != 0 )
{
wsprintf( (LPSTR)szBuf, "Undefined RAS Dial Error (%ld).", dwError );
RasHangUp( g_hRasConn );
MessageBox(NULL, (LPSTR)szBuf, "Agni Dialer", MB_OK | MB_ICONSTOP );
}

return;
}

g_nLastRASConnState = rasconnstate;

LPCTSTR lpszMsg;
switch ( rasconnstate )
{
case RASCS_OpenPort : lpszMsg = "Openning Port"; break;
case RASCS_PortOpened : lpszMsg = "Port Opened"; break;
case RASCS_ConnectDevice : lpszMsg = "Connecting Device"; break;
case RASCS_DeviceConnected : lpszMsg = "Device Connected"; break;
case RASCS_AllDevicesConnected : lpszMsg = "All Devices Connected"; break;
case RASCS_Authenticate : lpszMsg = "Starting Authentication"; break;
case RASCS_AuthNotify : lpszMsg = "Authentication Notify"; break;
case RASCS_AuthRetry : lpszMsg = "Authentication Retry"; break;
case RASCS_AuthCallback : lpszMsg = "Callback Requested"; break;
case RASCS_AuthChangePassword : lpszMsg = "Change Password Requested"; break;
case RASCS_AuthProject : lpszMsg = "Projection Phase Started"; break;
case RASCS_AuthLinkSpeed : lpszMsg = "Link Speed Calculation"; break;
case RASCS_AuthAck : lpszMsg = "Authentication Acknowledged"; break;
case RASCS_ReAuthenticate : lpszMsg = "Reauthenticatation Started"; break;
case RASCS_Authenticated : lpszMsg = "Authenticated"; break;
case RASCS_PrepareForCallback : lpszMsg = "Preparation For Callback"; break;
case RASCS_WaitForModemReset : lpszMsg = "Waiting For Modem Reset"; break;
case RASCS_WaitForCallback : lpszMsg = "Waiting For Callback"; break;
case RASCS_Interactive : lpszMsg = "Interactive"; break;
case RASCS_RetryAuthentication : lpszMsg = "Retry Authentication"; break;
case RASCS_CallbackSetByCaller : lpszMsg = "Callback Set By Caller"; break;
case RASCS_PasswordExpired : lpszMsg = "Password Expired"; break;
case RASCS_Disconnected : lpszMsg = "Disconnected"; break;
case RASCS_Connected : lpszMsg = "Connected"; break;
}

g_csStatusMsg = lpszMsg;
}


GeneralRe: Asynchronies dial up connection Pin
Kuniva15-Jun-03 4:30
Kuniva15-Jun-03 4:30 
QuestionApplication causing Windows clock drift? Pin
Gavin Stark13-Jun-03 18:05
Gavin Stark13-Jun-03 18:05 
AnswerRe: Application causing Windows clock drift? Pin
John Aldrich13-Jun-03 18:46
John Aldrich13-Jun-03 18:46 
GeneralRe: Application causing Windows clock drift? Pin
Gavin Stark13-Jun-03 19:13
Gavin Stark13-Jun-03 19:13 
GeneralRe: Application causing Windows clock drift? Pin
Gavin Stark16-Jun-03 17:54
Gavin Stark16-Jun-03 17:54 
QuestionHow I can access an external MS Access database (.mdb) Pin
ATC13-Jun-03 16:48
ATC13-Jun-03 16:48 
AnswerRe: How I can access an external MS Access database (.mdb) Pin
John M. Drescher13-Jun-03 17:35
John M. Drescher13-Jun-03 17:35 
GeneralRe: How I can access an external MS Access database (.mdb) Pin
ATC14-Jun-03 4:35
ATC14-Jun-03 4:35 
GeneralHiding Mainframe without flicker Pin
pranavamhari13-Jun-03 15:47
pranavamhari13-Jun-03 15:47 
QuestionHow to get a sub-member's pointer Pin
FlyingDancer13-Jun-03 15:43
FlyingDancer13-Jun-03 15:43 
AnswerRe: How to get a sub-member's pointer Pin
John M. Drescher13-Jun-03 15:55
John M. Drescher13-Jun-03 15:55 
GeneralRe: How to get a sub-member's pointer Pin
FlyingDancer13-Jun-03 16:02
FlyingDancer13-Jun-03 16:02 
GeneralRe: How to get a sub-member's pointer Pin
Tim Smith13-Jun-03 16:21
Tim Smith13-Jun-03 16:21 
GeneralRe: How to get a sub-member's pointer Pin
Ryan Binns14-Jun-03 4:50
Ryan Binns14-Jun-03 4:50 
AnswerRe: How to get a sub-member's pointer Pin
Michael Dunn13-Jun-03 16:33
sitebuilderMichael Dunn13-Jun-03 16:33 
GeneralRe: How to get a sub-member's pointer Pin
FlyingDancer13-Jun-03 19:14
FlyingDancer13-Jun-03 19:14 
GeneralRe: How to get a sub-member's pointer Pin
Michael Dunn13-Jun-03 19:22
sitebuilderMichael Dunn13-Jun-03 19:22 

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.