Click here to Skip to main content
15,899,126 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to stop Autorun Pin
Michael Dunn29-Aug-07 7:54
sitebuilderMichael Dunn29-Aug-07 7:54 
QuestionDirectDraw Question Pin
TheDelChop29-Aug-07 4:09
TheDelChop29-Aug-07 4:09 
QuestionHow to get Proccess ID Pin
GauranG Shah29-Aug-07 4:02
GauranG Shah29-Aug-07 4:02 
AnswerRe: How to get Proccess ID Pin
Russell'29-Aug-07 4:45
Russell'29-Aug-07 4:45 
AnswerRe: How to get Proccess ID Pin
David Crow29-Aug-07 4:45
David Crow29-Aug-07 4:45 
AnswerRe: How to get Proccess ID Pin
Waldermort29-Aug-07 5:14
Waldermort29-Aug-07 5:14 
QuestionQuestion about DirectShow Output Pin Pin
techratna29-Aug-07 3:59
techratna29-Aug-07 3:59 
QuestionCEdit max text size (MFC, VC++6, WinXP) Pin
im7929-Aug-07 3:12
im7929-Aug-07 3:12 
Hello,
I use the following funktion to write log info into a write protected CEdit window for debuging purposes:

void CMyprogDlg::log(LPCTSTR lpszText)
{
long iBegin, iEnd;
CString time;
CString msg;

time = m_CTime_time.Format("%d.%m %H:%M:%S");

msg.Format("[%s] %s", time, lpszText);

iBegin = m_CEdit_log.LineIndex(-1);
iEnd = iBegin + m_CEdit_log.LineLength(iBegin);

m_CEdit_log.SetSel(iBegin, iEnd);
m_CEdit_log.ReplaceSel(msg);
}

for example :
log("blablabla\r\n");

It works well and i'm using it in alot of programs instead of stdout.
The problems is that when i'm trying to put a lot text lines in the window, after a few hundred lines, the function doesn't work as supposed anymore. Instead of creating new lines, the new text replaces the last line.
I'll be very greatfull for any help!

Best Regards,
im79
AnswerRe: CEdit max text size (MFC, VC++6, WinXP) Pin
David Crow29-Aug-07 3:35
David Crow29-Aug-07 3:35 
AnswerRe: CEdit max text size (MFC, VC++6, WinXP) Pin
Anurag Gandhi29-Aug-07 3:41
professionalAnurag Gandhi29-Aug-07 3:41 
AnswerRe: CEdit max text size (MFC, VC++6, WinXP) Pin
Stephen Hewitt29-Aug-07 16:41
Stephen Hewitt29-Aug-07 16:41 
QuestionDisable network connection? Pin
Larsson29-Aug-07 2:48
Larsson29-Aug-07 2:48 
AnswerRe: Disable network connection? Pin
Hamid_RT29-Aug-07 2:57
Hamid_RT29-Aug-07 2:57 
GeneralRe: Disable network connection? Pin
Larsson29-Aug-07 3:12
Larsson29-Aug-07 3:12 
GeneralRe: Disable network connection? Pin
David Crow29-Aug-07 3:36
David Crow29-Aug-07 3:36 
GeneralRe: Disable network connection? Pin
Larsson29-Aug-07 3:53
Larsson29-Aug-07 3:53 
GeneralRe: Disable network connection? Pin
Hamid_RT31-Aug-07 21:29
Hamid_RT31-Aug-07 21:29 
Questiononpaint() Problem Pin
Neo Andreson29-Aug-07 2:27
Neo Andreson29-Aug-07 2:27 
AnswerRe: onpaint() Problem Pin
_AnsHUMAN_ 29-Aug-07 2:34
_AnsHUMAN_ 29-Aug-07 2:34 
AnswerRe: onpaint() Problem Pin
David Crow29-Aug-07 3:06
David Crow29-Aug-07 3:06 
QuestionInter-process communication over network Pin
baerten29-Aug-07 1:43
baerten29-Aug-07 1:43 
AnswerRe: Inter-process communication over network Pin
led mike29-Aug-07 5:03
led mike29-Aug-07 5:03 
Questionhow can i set the setting to automatically resize dialog box of my application when i changed resolution of my computer Pin
rajneshmalik29-Aug-07 1:33
rajneshmalik29-Aug-07 1:33 
AnswerRe: how can i set the setting to automatically resize dialog box of my application when i changed resolution of my computer Pin
Hamid_RT29-Aug-07 1:48
Hamid_RT29-Aug-07 1:48 
AnswerRe: how can i set the setting to automatically resize dialog box of my application when i changed resolution of my computer Pin
Emilio Garavaglia29-Aug-07 1:51
Emilio Garavaglia29-Aug-07 1:51 

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.