Click here to Skip to main content
15,894,539 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionReports in VC++ Pin
diptipanchal25-Aug-09 1:01
diptipanchal25-Aug-09 1:01 
AnswerRe: Reports in VC++ Pin
CPallini25-Aug-09 1:43
mveCPallini25-Aug-09 1:43 
AnswerRe: Reports in VC++ Pin
David Crow25-Aug-09 3:03
David Crow25-Aug-09 3:03 
QuestionCEdit problem in displaying CR and LF [modified] Pin
bhanu_850924-Aug-09 23:03
bhanu_850924-Aug-09 23:03 
AnswerRe: CEdit problem in displaying CR and LF Pin
Cedric Moonen24-Aug-09 23:06
Cedric Moonen24-Aug-09 23:06 
GeneralRe: CEdit problem in displaying CR and LF Pin
bhanu_850924-Aug-09 23:16
bhanu_850924-Aug-09 23:16 
GeneralRe: CEdit problem in displaying CR and LF Pin
Cedric Moonen24-Aug-09 23:19
Cedric Moonen24-Aug-09 23:19 
GeneralRe: CEdit problem in displaying CR and LF Pin
bhanu_850925-Aug-09 1:16
bhanu_850925-Aug-09 1:16 
Dear Cedric,

Thank you so much now I solved the proble but only one thing is pending. For instance, if the text has more no. of \r in it then how could I replace all the \r. Please give me your advice.

I have done already for one occurance of \r and the code is below.

char *str = "abc\rxyz";
 stdstr = str;
 int idx = stdstr.find('\r');
 stdstr.insert((idx+1),1,'\n');
 const char* rcData = stdstr.c_str();
 int lenA = lstrlenA(rcData);
 int lenW;
 wchar_t *unircData;
 lenW = ::MultiByteToWideChar(CP_ACP,0,rcData,lenA,0,0);
 unircData = SysAllocStringLen(0,lenW);
 if(lenW >0)
 {
     ::MultiByteToWideChar(CP_ACP,0,rcData,lenA,unircData,lenW);
 }
 unircData[lenW] = 0;
 m_EDIT.ReplaceSel(unircData);

AnswerRe: CEdit problem in displaying CR and LF [modified] Pin
Rajesh R Subramanian25-Aug-09 0:00
professionalRajesh R Subramanian25-Aug-09 0:00 
JokeRe: CEdit problem in displaying CR and LF [modified] Pin
CPallini25-Aug-09 0:44
mveCPallini25-Aug-09 0:44 
GeneralRe: CEdit problem in displaying CR and LF Pin
Rajesh R Subramanian25-Aug-09 0:44
professionalRajesh R Subramanian25-Aug-09 0:44 
JokeRe: CEdit problem in displaying CR and LF Pin
CPallini25-Aug-09 0:49
mveCPallini25-Aug-09 0:49 
QuestionDont update part of dialog window Pin
melinda_mel24-Aug-09 22:48
melinda_mel24-Aug-09 22:48 
AnswerRe: Dont update part of dialog window Pin
Code-o-mat24-Aug-09 23:04
Code-o-mat24-Aug-09 23:04 
Questionhow to use "LDRLoadDll" to load a dll in DDK? Pin
bahareh65524-Aug-09 22:45
bahareh65524-Aug-09 22:45 
AnswerRe: how to use "LDRLoadDll" to load a dll in DDK? Pin
Stuart Dootson24-Aug-09 23:47
professionalStuart Dootson24-Aug-09 23:47 
GeneralRe: how to use "LDRLoadDll" to load a dll in DDK? Pin
bahareh65525-Aug-09 19:38
bahareh65525-Aug-09 19:38 
GeneralRe: how to use "LDRLoadDll" to load a dll in DDK? Pin
Stuart Dootson25-Aug-09 21:00
professionalStuart Dootson25-Aug-09 21:00 
GeneralRe: how to use "LDRLoadDll" to load a dll in DDK? Pin
bahareh65526-Aug-09 8:50
bahareh65526-Aug-09 8:50 
QuestionHow to Write some data at a particular Sector Pin
Shiv Murti Pal24-Aug-09 21:18
Shiv Murti Pal24-Aug-09 21:18 
AnswerRe: How to Write some data at a particular Sector Pin
Iain Clarke, Warrior Programmer24-Aug-09 21:41
Iain Clarke, Warrior Programmer24-Aug-09 21:41 
GeneralRe: How to Write some data at a particular Sector Pin
Shiv Murti Pal24-Aug-09 22:20
Shiv Murti Pal24-Aug-09 22:20 
GeneralRe: How to Write some data at a particular Sector Pin
Michael Schubert25-Aug-09 1:24
Michael Schubert25-Aug-09 1:24 
GeneralRe: OT Pin
Michael Schubert25-Aug-09 1:30
Michael Schubert25-Aug-09 1:30 
GeneralRe: OT Pin
Iain Clarke, Warrior Programmer25-Aug-09 1:49
Iain Clarke, Warrior Programmer25-Aug-09 1:49 

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.