Click here to Skip to main content
15,895,667 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SHFileOperation Pin
fantasy12155-Oct-08 22:20
fantasy12155-Oct-08 22:20 
QuestionRe: SHFileOperation [modified] Pin
CPallini5-Oct-08 22:28
mveCPallini5-Oct-08 22:28 
AnswerRe: SHFileOperation Pin
SandipG 5-Oct-08 22:34
SandipG 5-Oct-08 22:34 
GeneralRe: SHFileOperation Pin
Rajesh R Subramanian5-Oct-08 22:43
professionalRajesh R Subramanian5-Oct-08 22:43 
GeneralRe: SHFileOperation Pin
CPallini5-Oct-08 22:50
mveCPallini5-Oct-08 22:50 
GeneralRe: SHFileOperation Pin
SandipG 5-Oct-08 22:54
SandipG 5-Oct-08 22:54 
GeneralRe: SHFileOperation Pin
CPallini5-Oct-08 22:44
mveCPallini5-Oct-08 22:44 
QuestionON_EN_CHANGE() Notification problem of CEdit Box Pin
Dhiraj kumar Saini5-Oct-08 20:19
Dhiraj kumar Saini5-Oct-08 20:19 
Hi,

I am working in MFC and i am having a chat dilaog box in which there is an edit box. I want to send send what the user is doing on the edit box used for sending message. For this I am using the notificatio ON_EN_CHANGE();

I have declared it as follows in My Class COperChatDlg:
afx_msg void OnChangeEdit();
ON_EN_CHANGE(IDC_EDIT_OP, OnChangeEdit)
and defined it as

void COperChatDlg::OnChangeEdit()
{
static bool bSend = false;

CString strText;
GetDlgItemText(IDC_EDIT_OP,strText);

int nTextLen = strText.GetLength();

if(!bSend)
{
bSend = true;
SendOperatorTypingStatus();
}
else if(nTextLen != 0 && nTextLen % 5 == 0)
{
bSend = false;
}
}

But its giving the error in the while loop of below code during run time as soon as i start typing anything in the editbox IDC_EDIT_OP.

#endif /* _SAFECRT_IMPL */
++p;
++p;
}
/* textlen now contains length in multibyte chars */
} else {
if (text.wz == NULL) /* NULL passed, use special string */
text.wz = __wnullstring;
bufferiswide = 1;
pwch = text.wz;
while (i-- && *pwch)
++pwch;
textlen = (int)(pwch - text.wz); /* in wchar_ts */
/* textlen now contains length in wide chars */
}
#else /* _UNICODE */

please help me.

Thanks In Advance.
AnswerRe: ON_EN_CHANGE() Notification problem of CEdit Box Pin
Chandrasekharan P5-Oct-08 20:24
Chandrasekharan P5-Oct-08 20:24 
RantRe: ON_EN_CHANGE() Notification problem of CEdit Box Pin
Rajesh R Subramanian5-Oct-08 20:27
professionalRajesh R Subramanian5-Oct-08 20:27 
AnswerRe: ON_EN_CHANGE() Notification problem of CEdit Box Pin
Cedric Moonen5-Oct-08 20:28
Cedric Moonen5-Oct-08 20:28 
QuestionAccess the controls of other dialog boxes. Pin
hariakuthota5-Oct-08 20:10
hariakuthota5-Oct-08 20:10 
AnswerRe: Access the controls of other dialog boxes. Pin
_AnsHUMAN_ 5-Oct-08 20:15
_AnsHUMAN_ 5-Oct-08 20:15 
AnswerRe: Access the controls of other dialog boxes. Pin
Chandrasekharan P5-Oct-08 20:29
Chandrasekharan P5-Oct-08 20:29 
QuestionProblem in binary compilation with assembly language. [modified] Pin
SNI5-Oct-08 19:50
SNI5-Oct-08 19:50 
AnswerRe: Problem in binary compilation with assembly language. Pin
Naveen5-Oct-08 20:25
Naveen5-Oct-08 20:25 
GeneralRe: Problem in binary compilation with assembly language. Pin
SNI5-Oct-08 22:54
SNI5-Oct-08 22:54 
GeneralRe: Problem in binary compilation with assembly language. Pin
Naveen5-Oct-08 23:20
Naveen5-Oct-08 23:20 
GeneralRe: Problem in binary compilation with assembly language. Pin
SNI6-Oct-08 20:55
SNI6-Oct-08 20:55 
GeneralRe: Problem in binary compilation with assembly language. Pin
Naveen6-Oct-08 21:06
Naveen6-Oct-08 21:06 
GeneralRe: Problem in binary compilation with assembly language. Pin
SNI6-Oct-08 22:35
SNI6-Oct-08 22:35 
GeneralRe: Problem in binary compilation with assembly language. Pin
Naveen6-Oct-08 22:37
Naveen6-Oct-08 22:37 
GeneralRe: Problem in binary compilation with assembly language. Pin
SNI7-Oct-08 22:52
SNI7-Oct-08 22:52 
GeneralRe: Problem in binary compilation with assembly language. Pin
Naveen7-Oct-08 22:55
Naveen7-Oct-08 22:55 
GeneralRe: Problem in binary compilation with assembly language. Pin
SNI7-Oct-08 23:45
SNI7-Oct-08 23:45 

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.