Click here to Skip to main content
15,916,379 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCRichEditCtrl slowing down my application Pin
Manfred Staiger11-Jun-03 4:08
Manfred Staiger11-Jun-03 4:08 
GeneralRe: CRichEditCtrl slowing down my application Pin
John M. Drescher11-Jun-03 4:15
John M. Drescher11-Jun-03 4:15 
GeneralCompile problem Pin
Roger Allen11-Jun-03 4:03
Roger Allen11-Jun-03 4:03 
GeneralRe: Compile problem Pin
David Crow11-Jun-03 4:28
David Crow11-Jun-03 4:28 
GeneralRe: Compile problem Pin
Roger Allen11-Jun-03 4:43
Roger Allen11-Jun-03 4:43 
GeneralRe: Compile problem Pin
David Crow11-Jun-03 4:48
David Crow11-Jun-03 4:48 
GeneralRe: Compile problem Pin
Roger Allen11-Jun-03 5:14
Roger Allen11-Jun-03 5:14 
QuestionHow to run these codes? Pin
FlyingDancer11-Jun-03 4:00
FlyingDancer11-Jun-03 4:00 
void CFrameworkDlg::OnTimer(UINT nIDEvent)
{
// TODO: Add your message handler code here and/or call default
switch (nIDEvent) {
case IDC_Timer:
{
KillTimer(IDC_Timer);
if(!SetTimer(IDC_TIMER_CHECKUP_THREAD,50,NULL))
DestroyWindow();
FunctionStart();
break;
}
case IDC_TIMER_CHECKUP_THREAD :
{
if (!FuncEndupTest())
UpdateData(FALSE);
break;
}
}

CDialog::OnTimer(nIDEvent);
}
//----------------------------------------------------------------------------
//Procedure:
// FunctionStart(void)
//Description:
// Entry point for each function
//Input:
// None.
//Output:
// None.
//
void CFuncDlg::FunctionStart()
{

m_hFunThread = CreateThread(NULL,0,
(LPTHREAD_START_ROUTINE)funclist[m_nCurFunc],
m_ptr,0,
NULL);
}

//----------------------------------------------------------------------------
//Procedure:
// FuncEndupTest(void)
//Description:
// Check if function is finished
//Input:
// None.
//Output:
// true or false
//
bool CFuncDlg::FuncEndupTest()
{
DWORD dwExitCode;


while (WaitForSingleObject(m_hFunThread,0)==WAIT_OBJECT_0) //The state of the specified object is signaled.
{
GetExitCodeThread (m_hFunThread,&dwExitCode); //This function retrieves the termination status
//of the specified thread
CloseHandle(m_hFunThread);

m_nCurFunc++; //A abnormal handle section

if(m_bStopOnFristError&&!(dwExitCode&0xff))
{
for(int i=m_nCurFunc;i<m_nfunccount;i++)
="" logresult(stoponfirsterror);
="" sendmessage(m_hptr,="" wm_close,0,="" 0);
="" return="" true;
="" }
="" decide="" whether="" all="" the="" functions="" have="" complished,="" and="" do="" some="" handle="" actions
="" if(m_ncurfunc<m_nfunccount="" )
="" functionstart();
="" else
="" false;
}<="" small="">

AnswerRe: How to run these codes? Pin
John M. Drescher11-Jun-03 4:10
John M. Drescher11-Jun-03 4:10 
AnswerRe: How to run these codes? Pin
David Crow11-Jun-03 4:30
David Crow11-Jun-03 4:30 
GeneralRe: How to run these codes? Pin
FlyingDancer11-Jun-03 13:52
FlyingDancer11-Jun-03 13:52 
GeneralRe: How to run these codes? Pin
David Crow12-Jun-03 2:35
David Crow12-Jun-03 2:35 
GeneralRe: How to run these codes? Pin
FlyingDancer12-Jun-03 3:08
FlyingDancer12-Jun-03 3:08 
GeneralRegistry problems Pin
rohit.dhamija11-Jun-03 3:42
rohit.dhamija11-Jun-03 3:42 
QuestionWhat is the XP Accessibility Wizard doing? Pin
mcgahanfl11-Jun-03 3:36
mcgahanfl11-Jun-03 3:36 
QuestionHow can I create and post a web page Pin
gordingin11-Jun-03 3:28
gordingin11-Jun-03 3:28 
Generalproblem using CDialog::Create, assert error Pin
Luis E. Cuadrado11-Jun-03 3:21
Luis E. Cuadrado11-Jun-03 3:21 
GeneralRe: problem using CDialog::Create, assert error Pin
Tim Smith11-Jun-03 3:36
Tim Smith11-Jun-03 3:36 
GeneralRe: problem using CDialog::Create, assert error Pin
David Crow11-Jun-03 3:44
David Crow11-Jun-03 3:44 
GeneralRe: problem using CDialog::Create, assert error Pin
Luis E. Cuadrado11-Jun-03 4:13
Luis E. Cuadrado11-Jun-03 4:13 
GeneralRe: problem using CDialog::Create, assert error Pin
David Crow11-Jun-03 4:33
David Crow11-Jun-03 4:33 
GeneralRe: problem using CDialog::Create, assert error Pin
Luis E. Cuadrado11-Jun-03 4:56
Luis E. Cuadrado11-Jun-03 4:56 
GeneralRe: problem using CDialog::Create, assert error Pin
Ryan Binns11-Jun-03 5:03
Ryan Binns11-Jun-03 5:03 
GeneralSHChangeNotifyRegister Questions!!! Pin
zmnie11-Jun-03 2:58
zmnie11-Jun-03 2:58 
GeneralRe: SHChangeNotifyRegister Questions!!! Pin
David Crow11-Jun-03 3:34
David Crow11-Jun-03 3:34 

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.