Hi All
i am developing an application in VS2005. I have two same callbackfunction in two classes
one is login.cpp and other is dialer.cpp. My problem is that when i put debug point in this
callback function, in login.cpp class it is well but in dialer class it is not?
i,e when login is succeedded the imediately dialer dialog open but before open dialer dialog
debug point not goes to callbackfunction.
this is in Login.cpp //working well
LRESULT CLogin::OnSIPCallbackEvent(WPARAM WParam, LPARAM LParam)
{
SIPCallbackCommand * command = (SIPCallbackCommand *)WParam;
if (!command)
{
return S_FALSE;
}
switch(command->getEventType())
{
case SIP_UNKNOWN:
break;
case SIP_REGISTER_SUCCESS:
{
m_Status.SetWindowText (_T ("Logged in"));
HandleRegisterSuccess(command);
}
break;
case SIP_REGISTER_FAILURE:
m_Status.SetWindowText (_T ("Not Connected"));
break;
}
delete command;
command = NULL;
return S_OK;
}
//this is in dialer //not goes debug point over here
LRESULT CSIPSampleDlg::OnSIPCallbackEvent(WPARAM WParam, LPARAM LParam)
{
SIPCallbackCommand * command = (SIPCallbackCommand *)WParam;
if (!command)
{
return S_FALSE;
}
switch(command->getEventType())
{
case SIP_UNKNOWN:
break;
...................
.................
..............
.............
............
delete command;
command = NULL;
return S_OK;
}
plz give me some idea.
thanks in advance


Reply With Quote
Victor Nijegorodov 