[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

how to prevent a stamanet from skip

Asked by kuldeepruhela in Windows MFC Programming

Tags: Microsoft VC++/MFC


hi

i have a function given below basically this is a thread function

UINT popclose(LPVOID pram)
{
      //Reading Data from Sim

      memset(&objudtPhoneList,0, sizeof(udtPhoneList));
      
      iResult = ObjReadPhoneNo(&objudtPhoneList); // this function takes around 5 minutes
                                    //So this statement is skipeed and next statement
                                    //is being executed      
      //basically used for closing a Dialog box       
      Sleep(500);
      dProg1->EndDialog(0);
      dProg1=NULL;

}



the function ObjReadPhoneNo(&objudtPhoneList); is actually time consuming statement
so it is being skipped and next statement executed

so how to force compiler to execute that statement

[+][-]01/19/09 12:06 AM, ID: 23408852Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/19/09 12:48 AM, ID: 23409001Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/19/09 01:50 AM, ID: 23409235Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/22/09 02:07 AM, ID: 23437923Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625