Click here to Skip to main content
15,909,051 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionBatch file Pin
john563223-Nov-09 3:02
john563223-Nov-09 3:02 
AnswerRe: Batch file Pin
Richard MacCutchan23-Nov-09 3:25
mveRichard MacCutchan23-Nov-09 3:25 
AnswerRe: Batch file Pin
T210223-Nov-09 3:46
T210223-Nov-09 3:46 
QuestionLinking Error Pin
john563223-Nov-09 2:24
john563223-Nov-09 2:24 
AnswerRe: Linking Error Pin
kikoso23-Nov-09 2:43
kikoso23-Nov-09 2:43 
GeneralRe: Linking Error Pin
john563223-Nov-09 3:01
john563223-Nov-09 3:01 
GeneralRe: Linking Error Pin
kikoso23-Nov-09 5:16
kikoso23-Nov-09 5:16 
QuestionProblem with Win32 Threads Pin
kikoso23-Nov-09 2:13
kikoso23-Nov-09 2:13 
Hello all,

I´m trying to multithread an application by using CreateThread function. So far I´ve done the following:

//Here I initialize the Thread
LPDWORD iID;
HANDLE hThread; // array of thread handles
hThread = CreateThread (
            0, // Security attributes
            0, // Stack size
            (LPTHREAD_START_ROUTINE)OpenCVWin32::Form1::Threadi,
            NULL,
            CREATE_SUSPENDED,
            iID);
}


//Called function
static DWORD WINAPI Threadi()
{
	System::Windows::Forms::MessageBox::Show("Hi there!");
	return 0;
}


When I launch the application, the thread is not created, as I cannot go inside the Threadi function. I´m right now using VC++ 2008. Does anyone has a suggestion on why this could be happening?

Thanks
AnswerRe: Problem with Win32 Threads Pin
HimanshuJoshi23-Nov-09 2:22
HimanshuJoshi23-Nov-09 2:22 
GeneralRe: Problem with Win32 Threads Pin
kikoso23-Nov-09 2:38
kikoso23-Nov-09 2:38 
AnswerRe: Problem with Win32 Threads Pin
Member 392263923-Nov-09 2:27
Member 392263923-Nov-09 2:27 
GeneralRe: Problem with Win32 Threads Pin
kikoso23-Nov-09 2:32
kikoso23-Nov-09 2:32 
AnswerRe: Problem with Win32 Threads Pin
Rajesh R Subramanian23-Nov-09 2:50
professionalRajesh R Subramanian23-Nov-09 2:50 
GeneralRe: Problem with Win32 Threads Pin
kikoso23-Nov-09 5:15
kikoso23-Nov-09 5:15 
QuestionSubscript requires array or pointer type Pin
deadlyabbas23-Nov-09 0:47
deadlyabbas23-Nov-09 0:47 
AnswerRe: Subscript requires array or pointer type Pin
Cedric Moonen23-Nov-09 1:03
Cedric Moonen23-Nov-09 1:03 
AnswerRe: Subscript requires array or pointer type Pin
T210223-Nov-09 1:29
T210223-Nov-09 1:29 
QuestionHow can i register a service using Visual Studio Setup .??? Pin
jain_MS22-Nov-09 23:53
jain_MS22-Nov-09 23:53 
QuestionLinking problem Pin
KASR122-Nov-09 23:50
KASR122-Nov-09 23:50 
AnswerRe: Linking problem Pin
Cedric Moonen22-Nov-09 23:56
Cedric Moonen22-Nov-09 23:56 
GeneralRe: Linking problem Pin
KASR122-Nov-09 23:59
KASR122-Nov-09 23:59 
GeneralRe: Linking problem Pin
Cedric Moonen23-Nov-09 0:10
Cedric Moonen23-Nov-09 0:10 
GeneralRe: Linking problem Pin
KASR123-Nov-09 0:13
KASR123-Nov-09 0:13 
GeneralRe: Linking problem Pin
KASR123-Nov-09 0:35
KASR123-Nov-09 0:35 
AnswerRe: Linking problem Pin
Richard MacCutchan23-Nov-09 0:02
mveRichard MacCutchan23-Nov-09 0:02 

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.