Click here to Skip to main content
15,911,531 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMigrating old project to VS2008 - resource file errors Pin
charlieg4-Aug-16 3:10
charlieg4-Aug-16 3:10 
AnswerRe: Migrating old project to VS2008 - resource file errors Pin
Richard MacCutchan4-Aug-16 3:36
mveRichard MacCutchan4-Aug-16 3:36 
GeneralRe: Migrating old project to VS2008 - resource file errors Pin
charlieg4-Aug-16 8:07
charlieg4-Aug-16 8:07 
GeneralRe: Migrating old project to VS2008 - resource file errors Pin
Richard MacCutchan4-Aug-16 8:22
mveRichard MacCutchan4-Aug-16 8:22 
GeneralRe: Migrating old project to VS2008 - resource file errors Pin
leon de boer7-Aug-16 7:47
leon de boer7-Aug-16 7:47 
GeneralRe: Migrating old project to VS2008 - resource file errors Pin
charlieg8-Aug-16 2:02
charlieg8-Aug-16 2:02 
GeneralRe: Migrating old project to VS2008 - resource file errors Pin
leon de boer8-Aug-16 7:11
leon de boer8-Aug-16 7:11 
GeneralRe: Migrating old project to VS2008 - resource file errors Pin
charlieg9-Aug-16 7:50
charlieg9-Aug-16 7:50 
AnswerRe: Migrating old project to VS2008 - resource file errors Pin
charlieg24-Sep-16 0:48
charlieg24-Sep-16 0:48 
Questionhow to be sure each child class inherits a method? Pin
FriendOfAsherah2-Aug-16 19:58
FriendOfAsherah2-Aug-16 19:58 
AnswerRe: how to be sure each child class inherits a method? Pin
Richard MacCutchan2-Aug-16 20:28
mveRichard MacCutchan2-Aug-16 20:28 
GeneralRe: how to be sure each child class inherits a method? Pin
FriendOfAsherah2-Aug-16 20:49
FriendOfAsherah2-Aug-16 20:49 
GeneralRe: how to be sure each child class inherits a method? Pin
Richard MacCutchan2-Aug-16 21:03
mveRichard MacCutchan2-Aug-16 21:03 
GeneralRe: how to be sure each child class inherits a method? Pin
FriendOfAsherah2-Aug-16 21:29
FriendOfAsherah2-Aug-16 21:29 
GeneralRe: how to be sure each child class inherits a method? Pin
Richard MacCutchan3-Aug-16 3:15
mveRichard MacCutchan3-Aug-16 3:15 
GeneralRe: how to be sure each child class inherits a method? Pin
FriendOfAsherah3-Aug-16 19:23
FriendOfAsherah3-Aug-16 19:23 
SuggestionRe: how to be sure each child class inherits a method? Pin
Krishnakumartg21-Sep-16 20:19
Krishnakumartg21-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
ForNow2-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
ForNow2-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
leon 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
ForNow4-Aug-16 5: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 5:29
ForNow5-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
David Crow6-Aug-16 17:03 

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.