Click here to Skip to main content
15,914,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: holding more than one decimal Pin
Bob Flynn28-Oct-05 6:07
Bob Flynn28-Oct-05 6:07 
GeneralRe: holding more than one decimal Pin
David Crow28-Oct-05 6:50
David Crow28-Oct-05 6:50 
GeneralRe: holding more than one decimal Pin
Bob Flynn28-Oct-05 7:05
Bob Flynn28-Oct-05 7:05 
GeneralRe: holding more than one decimal Pin
David Crow28-Oct-05 7:30
David Crow28-Oct-05 7:30 
GeneralRe: holding more than one decimal Pin
Bob Flynn28-Oct-05 7:51
Bob Flynn28-Oct-05 7:51 
GeneralRe: holding more than one decimal Pin
mtucker678428-Oct-05 9:22
mtucker678428-Oct-05 9:22 
GeneralRe: holding more than one decimal Pin
David Crow28-Oct-05 9:55
David Crow28-Oct-05 9:55 
QuestionCEdit : GetLine Pin
DanYELL28-Oct-05 4:52
DanYELL28-Oct-05 4:52 
I have an edit box which people text many lines of text into.
Lets say the text is:

Danielle Brina
Suite 1

I want to get each line of the edit box, so I have:

int i, nLineCount = pmyEdit->GetLineCount();
CString strText, strLine;

for (i=0;i < nLineCount;i++)
{
// length of line i:
int len = pmyEdit->LineLength(pmyEdit->LineIndex(i));
pmyEdit->GetLine(i, strText.GetBuffer(len), len);
strText.ReleaseBuffer(len);
}

But what happens is the first line looks like:

Danielle Brina

and the 2nd line looks like

Suite 1e Brina

which is a combination of the two. I tried adding strText.Empty();
as well as other commands, but I cant get the two lines to stop
blurring. Anyone see an obvious solution?

Please, any response any one can give me will be greatly appreciated.

Sincerely,
Danielle Brina (an overworked graduate student)
AnswerRe: CEdit : GetLine Pin
PJ Arends28-Oct-05 10:21
professionalPJ Arends28-Oct-05 10:21 
QuestionLink list Using STL Pin
itkid28-Oct-05 3:54
itkid28-Oct-05 3:54 
AnswerRe: Link list Using STL Pin
toxcct28-Oct-05 4:08
toxcct28-Oct-05 4:08 
GeneralRe: Link list Using STL Pin
itkid28-Oct-05 4:23
itkid28-Oct-05 4:23 
GeneralRe: Link list Using STL Pin
toxcct28-Oct-05 4:31
toxcct28-Oct-05 4:31 
GeneralRe: Link list Using STL Pin
itkid28-Oct-05 6:02
itkid28-Oct-05 6:02 
AnswerRe: Link list Using STL Pin
Eytukan28-Oct-05 4:41
Eytukan28-Oct-05 4:41 
GeneralRe: Link list Using STL Pin
itkid28-Oct-05 5:34
itkid28-Oct-05 5:34 
GeneralRe: Link list Using STL Pin
Eytukan28-Oct-05 5:57
Eytukan28-Oct-05 5:57 
AnswerRe: Link list Using STL Pin
Maximilien28-Oct-05 4:45
Maximilien28-Oct-05 4:45 
GeneralRe: Link list Using STL Pin
itkid28-Oct-05 6:46
itkid28-Oct-05 6:46 
QuestionAssertion in ctlreg.cpp (OLE Registration) Pin
SatyaDY28-Oct-05 3:50
SatyaDY28-Oct-05 3:50 
QuestionInternet Explorer Toolbar Pin
Mircea Grelus28-Oct-05 3:03
Mircea Grelus28-Oct-05 3:03 
QuestionForcing an allocated Heap to physical memory &amp; not to be swaped to the page file. Pin
ja100128-Oct-05 2:48
ja100128-Oct-05 2:48 
AnswerRe: Forcing an allocated Heap to physical memory &amp; not to be swaped to the page file. Pin
David Crow28-Oct-05 3:04
David Crow28-Oct-05 3:04 
AnswerRe: Forcing an allocated Heap to physical memory &amp; not to be swaped to the page file. Pin
Cedric Moonen28-Oct-05 3:13
Cedric Moonen28-Oct-05 3:13 
AnswerRe: Forcing an allocated Heap to physical memory &amp; not to be swaped to the page file. Pin
Michael Dunn28-Oct-05 3:24
sitebuilderMichael Dunn28-Oct-05 3:24 

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.