Click here to Skip to main content
15,887,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Can we launch/open a Web page? Pin
ATC26-Jul-05 2:05
ATC26-Jul-05 2:05 
GeneralMS-Word automation and Virtual memory Pin
Imtiaz Murtaza25-Jul-05 2:41
Imtiaz Murtaza25-Jul-05 2:41 
GeneralGetting contact of Outlook Express on asp page Pin
Member 126565125-Jul-05 1:59
Member 126565125-Jul-05 1:59 
Generalexiting the infinite while loop Pin
Uzma Waheed25-Jul-05 1:02
Uzma Waheed25-Jul-05 1:02 
GeneralRe: exiting the infinite while loop Pin
Trollslayer25-Jul-05 1:13
mentorTrollslayer25-Jul-05 1:13 
GeneralRe: exiting the infinite while loop Pin
khan++25-Jul-05 1:13
khan++25-Jul-05 1:13 
GeneralRe: exiting the infinite while loop Pin
Jörgen Sigvardsson25-Jul-05 1:24
Jörgen Sigvardsson25-Jul-05 1:24 
GeneralHope this will work 4 u Pin
Eytukan25-Jul-05 2:18
Eytukan25-Jul-05 2:18 
for UZMA.. Smile | :)

//Declare these in the class header file...(.h)


static UINT runLoop(LPVOID p);
void runLoop();


///Put this in the implementation file....(.cpp)

UINT UZMAPPDlg::runLoop(LPVOID p)
{
UZMAPPDlg * me = (runLoop *)p;
me->runLoop();
return 0;

}

void UZMAPPDlg::runLoop()
{

do
{

///UZMA's story

}while(true)
}


in the click events(by double-clicking on the buttons!!), put


void UZMAPPDlg::OnButton1()
{
CWinThread cwt=AfxBeginThread(runLoop, this); //Start your loop
}


void UZMAPPDlg::OnButton2()
{
////Manipulate your cwt Object... here Smile | :) , resume,close etc

}
hope it'll work Cool | :cool: Rose | [Rose]


regards,
vivek
GeneralRe: exiting the infinite while loop Pin
Tim Smith25-Jul-05 3:57
Tim Smith25-Jul-05 3:57 
GeneralRe: exiting the infinite while loop Pin
toxcct25-Jul-05 5:44
toxcct25-Jul-05 5:44 
GeneralRe: exiting the infinite while loop Pin
Tim Smith26-Jul-05 3:46
Tim Smith26-Jul-05 3:46 
GeneralStack overflow Pin
LiYS25-Jul-05 0:33
LiYS25-Jul-05 0:33 
GeneralRe: Stack overflow Pin
mark novak25-Jul-05 0:47
mark novak25-Jul-05 0:47 
GeneralRe: Stack overflow Pin
LiYS25-Jul-05 0:49
LiYS25-Jul-05 0:49 
GeneralRe: Stack overflow Pin
khan++25-Jul-05 0:54
khan++25-Jul-05 0:54 
GeneralRe: Stack overflow Pin
LiYS25-Jul-05 3:47
LiYS25-Jul-05 3:47 
GeneralRe: Stack overflow Pin
toxcct25-Jul-05 5:47
toxcct25-Jul-05 5:47 
GeneralRe: Stack overflow Pin
Tim Smith26-Jul-05 3:52
Tim Smith26-Jul-05 3:52 
GeneralThe old time classic dll questions! Pin
Themis24-Jul-05 23:58
Themis24-Jul-05 23:58 
GeneralRe: The old time classic dll questions! Pin
mark novak25-Jul-05 0:41
mark novak25-Jul-05 0:41 
QuestionAbout ComboBox Owner draw problem? Pin
starschen24-Jul-05 23:47
sussstarschen24-Jul-05 23:47 
AnswerRe: About ComboBox Owner draw problem? Pin
mark novak25-Jul-05 0:24
mark novak25-Jul-05 0:24 
GeneralRe: About ComboBox Owner draw problem? Pin
starschen25-Jul-05 15:28
sussstarschen25-Jul-05 15:28 
GeneralRe: About ComboBox Owner draw problem? Pin
mark novak25-Jul-05 15:40
mark novak25-Jul-05 15:40 
GeneralRe: About ComboBox Owner draw problem? Pin
starschen25-Jul-05 17:24
sussstarschen25-Jul-05 17:24 

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.