Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Process Return Code Pin
Viorel.2-Aug-06 22:11
Viorel.2-Aug-06 22:11 
AnswerRe: Process Return Code Pin
Naveen2-Aug-06 22:13
Naveen2-Aug-06 22:13 
AnswerRe: Process Return Code Pin
Hamid_RT3-Aug-06 7:15
Hamid_RT3-Aug-06 7:15 
QuestionChanging output language Pin
gri2-Aug-06 21:47
gri2-Aug-06 21:47 
AnswerRe: Changing output language Pin
stancrm2-Aug-06 21:54
stancrm2-Aug-06 21:54 
AnswerRe: Changing output language Pin
Tim Paaschen2-Aug-06 23:27
Tim Paaschen2-Aug-06 23:27 
GeneralRe: Changing output language Pin
gri2-Aug-06 23:38
gri2-Aug-06 23:38 
Question_beginthread / process.h Pin
fx92002-Aug-06 21:38
fx92002-Aug-06 21:38 
hello,

i'am creating threads to run some listeners,

i have an error which i have not understanded

the compiler says that _beginthread is undeclared but i have included process.h ??

this is the code



#include <windows.h>
#include <process.h> /* _beginthread, _endthread */
#include <stddef.h>
#include <stdlib.h>


void main()
{

HANDLE hThread;
unsigned threadID;

// Create the second thread.
hThread = (HANDLE)_beginthread( NULL, 0, &SecondThreadFunc, NULL, 0, &threadID );

// Wait until second thread terminates. If you comment out the line
// below, Counter will not be correct because the thread has not
// terminated, and Counter most likely has not been incremented to
// 1000000 yet.
WaitForSingleObject( hThread, INFINITE );

// Destroy the thread object.
CloseHandle( hThread );

return 0;
}
AnswerRe: _beginthread / process.h Pin
Don Box2-Aug-06 21:45
Don Box2-Aug-06 21:45 
GeneralRe: _beginthread / process.h Pin
fx92002-Aug-06 21:49
fx92002-Aug-06 21:49 
AnswerRe: _beginthread / process.h Pin
Hamid_RT2-Aug-06 21:50
Hamid_RT2-Aug-06 21:50 
GeneralRe: _beginthread / process.h Pin
fx92002-Aug-06 21:55
fx92002-Aug-06 21:55 
GeneralRe: _beginthread / process.h Pin
Hamid_RT2-Aug-06 22:05
Hamid_RT2-Aug-06 22:05 
GeneralRe: _beginthread / process.h Pin
fx92002-Aug-06 22:11
fx92002-Aug-06 22:11 
QuestionRe: _beginthread / process.h Pin
Hamid_RT2-Aug-06 22:13
Hamid_RT2-Aug-06 22:13 
AnswerRe: _beginthread / process.h Pin
fx92002-Aug-06 22:18
fx92002-Aug-06 22:18 
GeneralRe: _beginthread / process.h Pin
Hamid_RT2-Aug-06 22:50
Hamid_RT2-Aug-06 22:50 
QuestionRe: _beginthread / process.h Pin
fx92002-Aug-06 22:53
fx92002-Aug-06 22:53 
AnswerRe: _beginthread / process.h Pin
Hamid_RT3-Aug-06 0:07
Hamid_RT3-Aug-06 0:07 
AnswerRe: _beginthread / process.h Pin
David Crow3-Aug-06 3:15
David Crow3-Aug-06 3:15 
QuestionBad pointer Pin
Stefan Spenz2-Aug-06 21:21
Stefan Spenz2-Aug-06 21:21 
AnswerRe: Bad pointer Pin
Sarath C2-Aug-06 21:25
Sarath C2-Aug-06 21:25 
AnswerRe: Bad pointer Pin
toxcct2-Aug-06 21:29
toxcct2-Aug-06 21:29 
AnswerRe: Bad pointer Pin
Hamid_RT2-Aug-06 21:32
Hamid_RT2-Aug-06 21:32 
AnswerRe: Bad pointer Pin
Gary R. Wheeler3-Aug-06 3:27
Gary R. Wheeler3-Aug-06 3:27 

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.