Click here to Skip to main content
15,905,587 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDiable enter key Pin
NewHSKid3-Sep-03 4:45
NewHSKid3-Sep-03 4:45 
GeneralRe: Diable enter key Pin
Ravi Bhavnani3-Sep-03 5:35
professionalRavi Bhavnani3-Sep-03 5:35 
GeneralRe: Diable enter key Pin
NewHSKid3-Sep-03 5:58
NewHSKid3-Sep-03 5:58 
GeneralRe: Diable enter key Pin
Ravi Bhavnani3-Sep-03 6:01
professionalRavi Bhavnani3-Sep-03 6:01 
GeneralRe: Diable enter key Pin
valikac3-Sep-03 6:00
valikac3-Sep-03 6:00 
QuestionHow to capture ENTER key in single line edit box? Pin
melwyn3-Sep-03 4:40
melwyn3-Sep-03 4:40 
AnswerRe: How to capture ENTER key in single line edit box? Pin
Ravi Bhavnani3-Sep-03 5:37
professionalRavi Bhavnani3-Sep-03 5:37 
GeneralProblem with thread Pin
Majid Shahabfar3-Sep-03 4:14
Majid Shahabfar3-Sep-03 4:14 
Hi dear,
I created a thread.
But when I start the thread CPU load become 100%.
I use these code.

void CEventLine::BeginThread()<br />
{<br />
m_isRunning = TRUE;<br />
AfxBeginThread(ThreadStart,this,THREAD_PRIORITY_LOWEST);<br />
}<br />
<br />
UINT CEventLine::ThreadStart(LPVOID pParam)<br />
{<br />
CEventLine* pEventLine = (CEventLine*)pParam;<br />
if (pEventLine == NULL || !pEventLine->IsKindOf(RUNTIME_CLASS(CEventLine)))<br />
return 1; // if pEventLine is not valid<br />
<br />
while(m_isRunning == 1)<br />
pEventLine->Start();<br />
<br />
return 0; // thread completed successfully<br />
}<br />
<br />
void CEventLine::Start()<br />
{<br />
// some code<br />
}<br />


CEventLine is a CDialog based class.
Thank you in advance.
GeneralRe: Problem with thread Pin
Iain Clarke, Warrior Programmer3-Sep-03 5:52
Iain Clarke, Warrior Programmer3-Sep-03 5:52 
GeneralRe: Problem with thread Pin
Brad Sokol3-Sep-03 5:56
Brad Sokol3-Sep-03 5:56 
GeneralRe: Problem with thread Pin
Iain Clarke, Warrior Programmer3-Sep-03 6:02
Iain Clarke, Warrior Programmer3-Sep-03 6:02 
GeneralRe: Problem with thread Pin
Scott H. Settlemier3-Sep-03 10:18
Scott H. Settlemier3-Sep-03 10:18 
GeneralWinCVS and Visual Studio 6 Pin
Jerome Conus3-Sep-03 3:57
Jerome Conus3-Sep-03 3:57 
GeneralRe: WinCVS and Visual Studio 6 Pin
Stefan Pedersen3-Sep-03 5:23
Stefan Pedersen3-Sep-03 5:23 
GeneralRe: WinCVS and Visual Studio 6 Pin
Jerome Conus3-Sep-03 19:07
Jerome Conus3-Sep-03 19:07 
GeneralRe: WinCVS and Visual Studio 6 Pin
Stefan Pedersen3-Sep-03 22:58
Stefan Pedersen3-Sep-03 22:58 
GeneralRe: WinCVS and Visual Studio 6 Pin
Rasqual Twilight4-Sep-03 2:15
Rasqual Twilight4-Sep-03 2:15 
QuestionEscape URLs? Pin
Dominik Reichl3-Sep-03 3:42
Dominik Reichl3-Sep-03 3:42 
AnswerRe: Escape URLs? Pin
Iain Clarke, Warrior Programmer3-Sep-03 5:42
Iain Clarke, Warrior Programmer3-Sep-03 5:42 
GeneralRe: Escape URLs? Pin
Dominik Reichl3-Sep-03 6:21
Dominik Reichl3-Sep-03 6:21 
GeneralRe: Escape URLs? Pin
David Crow3-Sep-03 11:02
David Crow3-Sep-03 11:02 
AnswerRe: Escape URLs? Pin
Ravi Bhavnani3-Sep-03 5:44
professionalRavi Bhavnani3-Sep-03 5:44 
GeneralRe: Escape URLs? Pin
Dominik Reichl3-Sep-03 6:20
Dominik Reichl3-Sep-03 6:20 
GeneralRe: Escape URLs? Pin
David Crow3-Sep-03 11:02
David Crow3-Sep-03 11:02 
GeneralDisable Menu Items Pin
Jay Hova3-Sep-03 3:05
Jay Hova3-Sep-03 3:05 

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.