Click here to Skip to main content
15,793,609 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to be sure each child class inherits a method? Pin
FriendOfAsherah3-Aug-16 20:23
FriendOfAsherah3-Aug-16 20:23 
SuggestionRe: how to be sure each child class inherits a method? Pin
Krishnakumartg21-Sep-16 21:19
Krishnakumartg21-Sep-16 21:19 
QuestionCrichEditCtrl::Find returns zero when second RichEdit is Created as a Child of A Different CDialog Pin
ForNow2-Aug-16 17:38
ForNow2-Aug-16 17:38 
QuestionRe: CrichEditCtrl::Find returns zero when second RichEdit is Created as a Child of A Different CDialog Pin
Richard MacCutchan2-Aug-16 21:24
mveRichard MacCutchan2-Aug-16 21:24 
AnswerRe: CrichEditCtrl::Find returns zero when second RichEdit is Created as a Child of A Different CDialog Pin
ForNow3-Aug-16 0:25
ForNow3-Aug-16 0:25 
GeneralRe: CrichEditCtrl::Find returns zero when second RichEdit is Created as a Child of A Different CDialog Pin
Richard MacCutchan3-Aug-16 4:11
mveRichard MacCutchan3-Aug-16 4:11 
AnswerRe: CrichEditCtrl::Find returns zero when second RichEdit is Created as a Child of A Different CDialog Pin
leon de boer4-Aug-16 6:19
leon de boer4-Aug-16 6:19 
GeneralRe: CrichEditCtrl::Find returns zero when second RichEdit is Created as a Child of A Different CDialog Pin
ForNow4-Aug-16 6:29
ForNow4-Aug-16 6:29 
I added he following code want to see what is in the rich edit

C++
linechar = myedit->FindText(FR_DOWN , &listtext);
if(linechar == 0)
{
	
	CFile dumpfile;
	CFileException e;
	TCHAR* pszFileName = _T("F:\\DUMPLIST.LST");
	if(!dumpfile.Open(pszFileName, CFile::modeCreate | CFile::modeWrite, &e))
		MessageBox("file could not be opened");
	EDITSTREAM dmp;
	   dmp.dwCookie = (DWORD_PTR) &dumpfile;
        dmp.pfnCallback = (EDITSTREAMCALLBACK)dumpit;
		myedit->StreamOut(SF_TEXT,dmp);
}

static DWORD CALLBACK dumpit(DWORD_PTR dwCookie, LPBYTE pbBuff, LONG cb, LONG *pcb)
{
   CFile* pFile = (CFile*) dwCookie;

   pFile->Write(pbBuff, cb);
   *pcb = cb;

   return 0;
}

GeneralRe: Had a number of controls CTEXT and I didn't allocate Corresponding Ctatic Pointers thanks Pin
ForNow5-Aug-16 6:29
ForNow5-Aug-16 6:29 
QuestionRe: CrichEditCtrl::Find returns zero when second RichEdit is Created as a Child of A Different CDialog Pin
David Crow6-Aug-16 18:03
David Crow6-Aug-16 18:03 
AnswerRe: CrichEditCtrl::Find returns zero when second RichEdit is Created as a Child of A Different CDialog Pin
ForNow6-Aug-16 18:24
ForNow6-Aug-16 18:24 
QuestionUnhandled exception in ntdll.dll access violation reading location 0xFFFFFFFFFFFFFFFF Pin
ForNow1-Aug-16 9:04
ForNow1-Aug-16 9:04 
AnswerRe: Unhandled exception in ntdll.dll access violation reading location 0xFFFFFFFFFFFFFFFF Pin
Victor Nijegorodov1-Aug-16 12:02
Victor Nijegorodov1-Aug-16 12:02 
GeneralRe: Unhandled exception in ntdll.dll access violation reading location 0xFFFFFFFFFFFFFFFF Pin
ForNow1-Aug-16 13:46
ForNow1-Aug-16 13:46 
GeneralRe: Unhandled exception in ntdll.dll access violation reading location 0xFFFFFFFFFFFFFFFF Pin
leon de boer1-Aug-16 17:09
leon de boer1-Aug-16 17:09 
AnswerRe: Unhandled exception in ntdll.dll access violation reading location 0xFFFFFFFFFFFFFFFF Pin
Richard MacCutchan1-Aug-16 23:05
mveRichard MacCutchan1-Aug-16 23:05 
GeneralRe: Unhandled exception in ntdll.dll access violation reading location 0xFFFFFFFFFFFFFFFF Pin
ForNow2-Aug-16 2:53
ForNow2-Aug-16 2:53 
GeneralRe: Unhandled exception in ntdll.dll access violation reading location 0xFFFFFFFFFFFFFFFF Pin
Richard MacCutchan2-Aug-16 3:01
mveRichard MacCutchan2-Aug-16 3:01 
QuestionThe messages used by mice and joysticks Pin
Anthony Appleyard30-Jul-16 13:37
Anthony Appleyard30-Jul-16 13:37 
AnswerRe: The messages used by mice and joysticks Pin
Richard MacCutchan30-Jul-16 22:35
mveRichard MacCutchan30-Jul-16 22:35 
QuestionMice with 3 buttons Pin
Anthony Appleyard30-Jul-16 11:22
Anthony Appleyard30-Jul-16 11:22 
AnswerRe: Mice with 3 buttons Pin
Richard MacCutchan30-Jul-16 22:33
mveRichard MacCutchan30-Jul-16 22:33 
AnswerRe: Mice with 3 buttons Pin
Jochen Arndt30-Jul-16 23:18
professionalJochen Arndt30-Jul-16 23:18 
Questionplease help me with this problem Pin
Member 1254719729-Jul-16 7:29
Member 1254719729-Jul-16 7:29 
AnswerRe: please help me with this problem Pin
Richard Deeming29-Jul-16 7:44
mveRichard Deeming29-Jul-16 7:44 

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.