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

C / C++ / MFC

 
GeneralMulti-Language app trouble Pin
Deian24-Jan-05 0:22
Deian24-Jan-05 0:22 
Questionhow to change regional setting Pin
venu_vooda23-Jan-05 22:36
venu_vooda23-Jan-05 22:36 
AnswerRe: how to change regional setting Pin
ThatsAlok23-Jan-05 23:47
ThatsAlok23-Jan-05 23:47 
GeneralCross platform GUID's Pin
Giles23-Jan-05 22:24
Giles23-Jan-05 22:24 
Generalreading a file - one bit at a time Pin
2000ram23-Jan-05 22:17
2000ram23-Jan-05 22:17 
GeneralRe: reading a file - one bit at a time Pin
toxcct23-Jan-05 22:27
toxcct23-Jan-05 22:27 
GeneralRe: reading a file - one bit at a time Pin
2000ram23-Jan-05 23:41
2000ram23-Jan-05 23:41 
QuestionAnything wrong with this? Pin
Yulianto.23-Jan-05 22:11
Yulianto.23-Jan-05 22:11 
POSITION pos = GetFirstViewPosition();
CString temp;
while (pos != NULL)
{
CRichEditView* pView = (CRichEditView*) GetNextView(pos);

int i, nLineLength, nLineCount = pView->GetRichEditCtrl().GetLineCount();
CString strText, strLine;

// Dump every line of text of the rich edit control.
for (i=0;i < nLineCount;i++)
{
nLineLength = pView->GetRichEditCtrl().LineLength(i);
pView->GetRichEditCtrl().GetLine(i, strText.GetBuffer(nLineLength));
AfxMessageBox(strText);
strText.ReleaseBuffer(nLineLength);
}
}


I think there`s a problem with the CString allocation memory.


<italic>Work hard and a bit of luck is the key to success.
You don`t need to be genius, to be rich.
AnswerRe: Anything wrong with this? Pin
David Crow24-Jan-05 2:42
David Crow24-Jan-05 2:42 
AnswerRe: Anything wrong with this? Pin
James R. Twine24-Jan-05 3:37
James R. Twine24-Jan-05 3:37 
GeneralSendMessage Pin
Yulianto.23-Jan-05 21:54
Yulianto.23-Jan-05 21:54 
GeneralRe: SendMessage Pin
ThatsAlok23-Jan-05 22:21
ThatsAlok23-Jan-05 22:21 
GeneralRe: SendMessage Pin
ThatsAlok23-Jan-05 22:22
ThatsAlok23-Jan-05 22:22 
GeneralRe: SendMessage Pin
Yulianto.23-Jan-05 22:50
Yulianto.23-Jan-05 22:50 
GeneralRe: SendMessage Pin
ThatsAlok23-Jan-05 23:42
ThatsAlok23-Jan-05 23:42 
GeneralRe: SendMessage Pin
Mircea Puiu23-Jan-05 22:42
Mircea Puiu23-Jan-05 22:42 
GeneralOutput formatting Pin
hugPW23-Jan-05 21:31
hugPW23-Jan-05 21:31 
GeneralRe: Output formatting Pin
David Crow24-Jan-05 2:49
David Crow24-Jan-05 2:49 
GeneralRe: Output formatting Pin
hugPW24-Jan-05 3:12
hugPW24-Jan-05 3:12 
GeneralRe: Output formatting Pin
David Crow24-Jan-05 3:25
David Crow24-Jan-05 3:25 
GeneralRe: Output formatting Pin
hugPW24-Jan-05 5:40
hugPW24-Jan-05 5:40 
GeneralRe: Output formatting Pin
David Crow24-Jan-05 9:02
David Crow24-Jan-05 9:02 
GeneralRe: Output formatting Pin
hugPW24-Jan-05 5:43
hugPW24-Jan-05 5:43 
QuestionHow to open USB port? Pin
eli1502197923-Jan-05 21:12
eli1502197923-Jan-05 21:12 
AnswerRe: How to open USB port? Pin
Cedric Moonen23-Jan-05 21:32
Cedric Moonen23-Jan-05 21:32 

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.