Click here to Skip to main content
14,930,815 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

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

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 5:29
MemberForNow5-Aug-16 5:29 
QuestionRe: CrichEditCtrl::Find returns zero when second RichEdit is Created as a Child of A Different CDialog Pin
David Crow6-Aug-16 17:03
MemberDavid Crow6-Aug-16 17:03 
AnswerRe: CrichEditCtrl::Find returns zero when second RichEdit is Created as a Child of A Different CDialog Pin
ForNow6-Aug-16 17:24
MemberForNow6-Aug-16 17:24 
QuestionUnhandled exception in ntdll.dll access violation reading location 0xFFFFFFFFFFFFFFFF Pin
ForNow1-Aug-16 8:04
MemberForNow1-Aug-16 8:04 
AnswerRe: Unhandled exception in ntdll.dll access violation reading location 0xFFFFFFFFFFFFFFFF Pin
Victor Nijegorodov1-Aug-16 11:02
MemberVictor Nijegorodov1-Aug-16 11:02 
GeneralRe: Unhandled exception in ntdll.dll access violation reading location 0xFFFFFFFFFFFFFFFF Pin
ForNow1-Aug-16 12:46
MemberForNow1-Aug-16 12:46 
GeneralRe: Unhandled exception in ntdll.dll access violation reading location 0xFFFFFFFFFFFFFFFF Pin
leon de boer1-Aug-16 16:09
Memberleon de boer1-Aug-16 16:09 
AnswerRe: Unhandled exception in ntdll.dll access violation reading location 0xFFFFFFFFFFFFFFFF Pin
Richard MacCutchan1-Aug-16 22:05
mveRichard MacCutchan1-Aug-16 22:05 
GeneralRe: Unhandled exception in ntdll.dll access violation reading location 0xFFFFFFFFFFFFFFFF Pin
ForNow2-Aug-16 1:53
MemberForNow2-Aug-16 1:53 
GeneralRe: Unhandled exception in ntdll.dll access violation reading location 0xFFFFFFFFFFFFFFFF Pin
Richard MacCutchan2-Aug-16 2:01
mveRichard MacCutchan2-Aug-16 2:01 
QuestionThe messages used by mice and joysticks Pin
Anthony Appleyard30-Jul-16 12:37
MemberAnthony Appleyard30-Jul-16 12:37 
AnswerRe: The messages used by mice and joysticks Pin
Richard MacCutchan30-Jul-16 21:35
mveRichard MacCutchan30-Jul-16 21:35 
QuestionMice with 3 buttons Pin
Anthony Appleyard30-Jul-16 10:22
MemberAnthony Appleyard30-Jul-16 10:22 
AnswerRe: Mice with 3 buttons Pin
Richard MacCutchan30-Jul-16 21:33
mveRichard MacCutchan30-Jul-16 21:33 
AnswerRe: Mice with 3 buttons Pin
Jochen Arndt30-Jul-16 22:18
professionalJochen Arndt30-Jul-16 22:18 
Questionplease help me with this problem Pin
Member 1254719729-Jul-16 6:29
MemberMember 1254719729-Jul-16 6:29 
AnswerRe: please help me with this problem Pin
Richard Deeming29-Jul-16 6:44
mveRichard Deeming29-Jul-16 6: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.