Click here to Skip to main content
15,896,606 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: who will create the message loop and message queue? Pin
bleedingfingers17-Oct-10 21:48
bleedingfingers17-Oct-10 21:48 
GeneralRe: who will create the message loop and message queue? Pin
CPallini18-Oct-10 2:12
mveCPallini18-Oct-10 2:12 
GeneralRe: who will create the message loop and message queue? Pin
bleedingfingers18-Oct-10 2:40
bleedingfingers18-Oct-10 2:40 
GeneralRe: who will create the message loop and message queue? [modified] Pin
Rajesh R Subramanian18-Oct-10 6:54
professionalRajesh R Subramanian18-Oct-10 6:54 
AnswerRe: who will create the message loop and message queue? Pin
Sauro Viti17-Oct-10 22:15
professionalSauro Viti17-Oct-10 22:15 
QuestionRe: who will create the message loop and message queue? Pin
vasu_sri18-Oct-10 18:40
vasu_sri18-Oct-10 18:40 
AnswerRe: who will create the message loop and message queue? Pin
Sauro Viti18-Oct-10 21:09
professionalSauro Viti18-Oct-10 21:09 
QuestionApplication crashes at RichEditCtrl.StremOut(), It says attempt to read write protected memory. this often an indication that the other memory is corrupt. Pin
ptr_Electron17-Oct-10 17:47
ptr_Electron17-Oct-10 17:47 
Application crashes at RichEditCtrl.StremOut(), It says attempt to read write protected memory. this often an indication that the other memory is corrupt.

May I know some path to find the issue and fix the issue. Any idea ?



.....
if (0 != file.Open(m_str, CFile::modeCreate | CFile::modeWrite, &e))
	{		
	    EDITSTREAM es = {0};		
    	    es.pfnCallback = COleElement::CallFunction;	
	    es.dwError = 0;		
	    es.dwCookie = (DWORD)&file;		
	    lRet = m_cRichEdCt.StreamOut(SF_RTF, es);
	}..........



DWORD CALLBACK CMyClass::CallFunction(DWORD dwCookie, LPBYTE lpBuf,LONG nCount, LONG* Write)	
{
      CFile* pFile = (CFile*)dwCookie;
      if (pFile)	
      {		
          pFile->Write(lpBuf, nCount);
      }	
       *Write = nCount;	
       return 0;
}

AnswerRe: Application crashes at RichEditCtrl.StremOut(), It says attempt to read write protected memory. this often an indication that the other memory is corrupt. Pin
Richard MacCutchan17-Oct-10 21:26
mveRichard MacCutchan17-Oct-10 21:26 
GeneralRe: Application crashes at RichEditCtrl.StremOut(), It says attempt to read write protected memory. this often an indication that the other memory is corrupt. Pin
ptr_Electron19-Oct-10 20:40
ptr_Electron19-Oct-10 20:40 
GeneralRe: Application crashes at RichEditCtrl.StremOut(), It says attempt to read write protected memory. this often an indication that the other memory is corrupt. Pin
Richard MacCutchan19-Oct-10 23:04
mveRichard MacCutchan19-Oct-10 23:04 
QuestionConverting to the web Pin
hamilton12317-Oct-10 11:49
hamilton12317-Oct-10 11:49 
AnswerRe: Converting to the web Pin
Cedric Moonen17-Oct-10 21:33
Cedric Moonen17-Oct-10 21:33 
QuestionCstatic Button Pin
cino alex17-Oct-10 7:48
cino alex17-Oct-10 7:48 
AnswerRe: Cstatic Button Pin
Iain Clarke, Warrior Programmer17-Oct-10 10:08
Iain Clarke, Warrior Programmer17-Oct-10 10:08 
AnswerRe: Cstatic Button Pin
Moak17-Oct-10 10:33
Moak17-Oct-10 10:33 
AnswerRe: Cstatic Button Pin
«_Superman_»17-Oct-10 19:22
professional«_Superman_»17-Oct-10 19:22 
AnswerRe: Cstatic Button Pin
vasu_sri18-Oct-10 18:46
vasu_sri18-Oct-10 18:46 
Questionmessagebox not showing? Pin
AmbiguousName17-Oct-10 6:06
AmbiguousName17-Oct-10 6:06 
AnswerRe: messagebox not showing? Pin
Richard MacCutchan17-Oct-10 7:29
mveRichard MacCutchan17-Oct-10 7:29 
AnswerRe: messagebox not showing? Pin
Iain Clarke, Warrior Programmer17-Oct-10 10:09
Iain Clarke, Warrior Programmer17-Oct-10 10:09 
AnswerRe: messagebox not showing? Pin
Moak17-Oct-10 10:29
Moak17-Oct-10 10:29 
AnswerRe: messagebox not showing? Pin
«_Superman_»17-Oct-10 19:48
professional«_Superman_»17-Oct-10 19:48 
QuestionReusing C++ code for use with .NET (WPF) Pin
Arivanna16-Oct-10 10:08
Arivanna16-Oct-10 10:08 
AnswerRe: Reusing C++ code for use with .NET (WPF) Pin
Paul Michalik17-Oct-10 0:09
Paul Michalik17-Oct-10 0:09 

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.