Click here to Skip to main content
15,891,513 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How get the CPU information ? Pin
bzsolt9112-Aug-09 13:15
bzsolt9112-Aug-09 13:15 
AnswerRe: How get the CPU information ? Pin
Rajesh R Subramanian12-Aug-09 2:42
professionalRajesh R Subramanian12-Aug-09 2:42 
QuestionCSocket Problem on Windows Mobile with WLAN Pin
Member 224636612-Aug-09 1:58
Member 224636612-Aug-09 1:58 
QuestionDoubleclick on MDI Frame Pin
baerten12-Aug-09 1:34
baerten12-Aug-09 1:34 
AnswerRe: Doubleclick on MDI Frame Pin
Stuart Dootson12-Aug-09 6:32
professionalStuart Dootson12-Aug-09 6:32 
QuestionInstalling a driver and Registry settings!! Pin
kapardhi12-Aug-09 0:56
kapardhi12-Aug-09 0:56 
AnswerRe: Installing a driver and Registry settings!! Pin
Randor 12-Aug-09 9:08
professional Randor 12-Aug-09 9:08 
QuestionThread Pin
susanne111-Aug-09 23:46
susanne111-Aug-09 23:46 
Hallo,
I have the following problem with the Thread:

I create the Thread first as SUSPENDED, but it does not start at the expectetd time.

First the Program calls this function:

ThreadStart();

///////////////////////////////

ThreadStart()
{
if (m_pSelThread != NULL)
{
if (::WaitForSingleObject(m_pSelThread->m_hThread, 0) != WAIT_OBJECT_0)
return;

delete m_pSelThread;
m_pSelThread = NULL;
}

::WaitForSingleObject(m_SEl_Start_Event, 0);

m_SEl_Start_Event.SetEvent (); // CEvent Object

CWinThread* m_pSelThread = AfxBeginThread(ThreadFunktion, this, THREAD_PRIORITY_NORMAL, 0, CREATE_SUSPENDED);

m_pSelThread->m_bAutoDelete = FALSE;

m_pSelThread->ResumeThread();
}

UINT ThreadFunktion
(
LPVOID param
)

{
if (param == NULL)
return -1;

DoSomeThing();

return 0;
}

The Thread does not come to the UINT ThreadFunktion(LPVOID param).

Any help would be appriciated.
AnswerRe: Thread Pin
CPallini12-Aug-09 0:07
mveCPallini12-Aug-09 0:07 
GeneralRe: Thread Pin
susanne112-Aug-09 0:09
susanne112-Aug-09 0:09 
AnswerRe: Thread Pin
CPallini12-Aug-09 0:13
mveCPallini12-Aug-09 0:13 
GeneralRe: Thread Pin
susanne112-Aug-09 0:15
susanne112-Aug-09 0:15 
GeneralRe: Thread Pin
CPallini12-Aug-09 0:56
mveCPallini12-Aug-09 0:56 
AnswerRe: Thread Pin
Rajesh R Subramanian12-Aug-09 0:25
professionalRajesh R Subramanian12-Aug-09 0:25 
GeneralRe: Thread Pin
susanne112-Aug-09 0:27
susanne112-Aug-09 0:27 
GeneralRe: Thread Pin
Rajesh R Subramanian12-Aug-09 1:23
professionalRajesh R Subramanian12-Aug-09 1:23 
GeneralRe: Thread Pin
CPallini12-Aug-09 1:51
mveCPallini12-Aug-09 1:51 
GeneralRe: Thread Pin
Rajesh R Subramanian12-Aug-09 2:08
professionalRajesh R Subramanian12-Aug-09 2:08 
GeneralRe: Thread Pin
CPallini12-Aug-09 2:38
mveCPallini12-Aug-09 2:38 
GeneralRe: Thread Pin
Rajesh R Subramanian12-Aug-09 2:45
professionalRajesh R Subramanian12-Aug-09 2:45 
GeneralRe: Thread Pin
CPallini12-Aug-09 3:28
mveCPallini12-Aug-09 3:28 
QuestionCWebBrowser - OnWindowClosingBrowser Method.. Pin
Member 383463011-Aug-09 23:44
Member 383463011-Aug-09 23:44 
AnswerRe: CWebBrowser - OnWindowClosingBrowser Method.. Pin
Bacon Ultimate Cheeseburger12-Aug-09 20:10
Bacon Ultimate Cheeseburger12-Aug-09 20:10 
GeneralRe: CWebBrowser - OnWindowClosingBrowser Method.. Pin
Member 383463012-Aug-09 22:29
Member 383463012-Aug-09 22:29 
GeneralRe: CWebBrowser - OnWindowClosingBrowser Method.. Pin
Bacon Ultimate Cheeseburger12-Aug-09 23:03
Bacon Ultimate Cheeseburger12-Aug-09 23:03 

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.