Click here to Skip to main content
16,009,598 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: CEdit problem in displaying CR and LF [modified] Pin
Rajesh R Subramanian25-Aug-09 0:00
professionalRajesh R Subramanian25-Aug-09 0:00 
bhanu_8509 wrote:
wchar_t szData[5];
szData[0] = 'a';
szData[1] = 'b';
szData[2] = 'c';
szData[3] = '\r';
szData[4] = '\0';



I don't see the purpose behind populating each and every element in a string separately. May be you haven't known of functions like strcpy? This would work for both Unicode and MBCS builds:
TCHAR szData[4];
_tcscpy(szData, _T("abc"));
m_EDIT.SetWindowText(szData);

For entering a new line, use \r\n and make sure that in the properties of the edit box, "multiline" is set to true.


It is a crappy thing, but it's life -^ Carlo Pallini

modified on Tuesday, August 25, 2009 6:44 AM

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 
GeneralRe: OT Pin
Michael Schubert25-Aug-09 1:58
Michael Schubert25-Aug-09 1:58 

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.