Click here to Skip to main content
15,792,510 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionIPv6 address compression code using vc++ Pin
Member 1252773510-Mar-22 18:12
Member 1252773510-Mar-22 18:12 
AnswerRe: IPv6 address compression code using vc++ Pin
Victor Nijegorodov10-Mar-22 22:06
Victor Nijegorodov10-Mar-22 22:06 
QuestionQuestions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
ForNow10-Mar-22 7:02
ForNow10-Mar-22 7:02 
AnswerRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
RedDk10-Mar-22 9:22
RedDk10-Mar-22 9:22 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
ForNow10-Mar-22 10:35
ForNow10-Mar-22 10:35 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
RedDk10-Mar-22 10:40
RedDk10-Mar-22 10:40 
AnswerRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
Richard MacCutchan10-Mar-22 23:19
mveRichard MacCutchan10-Mar-22 23:19 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
ForNow11-Mar-22 2:41
ForNow11-Mar-22 2:41 
Richard

thank you for responding


This is my code

C++
	storagepointer->SendMessage(EM_SETWORDBREAKPROC, 0, (LPARAM)(EDITWORDBREAKPROC)EditWordBreakProc);
long numstream = storagepointer->StreamIn(SF_TEXT,STORAGESTREAM);



this is the callback

C++
int  CALLBACK EditWordBreakProc(LPTSTR lpszEditText, int ichCurrent, int    cchEditText, int code)
{
	char FAR* lpCurrentChar;
	int  nIndex;
	int  nLastAction;

	switch (code)
	{


I have the call back declared all the way at the begining of my .cpp file I made a breakpoint at entry of the call back and it never got control
I tried the SendMessage with a &EditWordBreakProc and also tried the sendmessage after the streamin

Thankx

C++
int CALLBACK EditWordBreakProc(LPTSTR lpszEditText, int ichCurrent, int    cchEditText, int code);

GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
Richard MacCutchan11-Mar-22 2:51
mveRichard MacCutchan11-Mar-22 2:51 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
ForNow11-Mar-22 3:13
ForNow11-Mar-22 3:13 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
Richard MacCutchan11-Mar-22 4:49
mveRichard MacCutchan11-Mar-22 4:49 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
ForNow11-Mar-22 5:08
ForNow11-Mar-22 5:08 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
Richard MacCutchan11-Mar-22 5:19
mveRichard MacCutchan11-Mar-22 5:19 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
ForNow11-Mar-22 5:46
ForNow11-Mar-22 5:46 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
Richard MacCutchan11-Mar-22 5:54
mveRichard MacCutchan11-Mar-22 5:54 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
ForNow11-Mar-22 6:06
ForNow11-Mar-22 6:06 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
Richard MacCutchan11-Mar-22 7:11
mveRichard MacCutchan11-Mar-22 7:11 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
ForNow11-Mar-22 8:56
ForNow11-Mar-22 8:56 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
Randor 11-Mar-22 13:55
professional Randor 11-Mar-22 13:55 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
Richard MacCutchan11-Mar-22 23:03
mveRichard MacCutchan11-Mar-22 23:03 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
ForNow12-Mar-22 14:23
ForNow12-Mar-22 14:23 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
ForNow12-Mar-22 14:28
ForNow12-Mar-22 14:28 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
Richard MacCutchan12-Mar-22 23:14
mveRichard MacCutchan12-Mar-22 23:14 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
ForNow13-Mar-22 6:01
ForNow13-Mar-22 6:01 
QuestionC++ programming Pin
ali khan Mar20226-Mar-22 9:08
ali khan Mar20226-Mar-22 9:08 

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.