Click here to Skip to main content
15,917,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSetLayeredWindowAttributes and bitmaps Pin
dj440022-Jan-09 1:20
dj440022-Jan-09 1:20 
AnswerRe: SetLayeredWindowAttributes and bitmaps Pin
Nishad S22-Jan-09 1:30
Nishad S22-Jan-09 1:30 
GeneralRe: SetLayeredWindowAttributes and bitmaps Pin
dj440025-Jan-09 21:44
dj440025-Jan-09 21:44 
AnswerRe: SetLayeredWindowAttributes and bitmaps Pin
Naveen22-Jan-09 1:33
Naveen22-Jan-09 1:33 
Question.mak file generating Pin
kir_MFC21-Jan-09 23:49
kir_MFC21-Jan-09 23:49 
QuestionRe: .mak file generating Pin
Maximilien22-Jan-09 1:30
Maximilien22-Jan-09 1:30 
Questionthreads [modified] Pin
hrishiS21-Jan-09 23:47
hrishiS21-Jan-09 23:47 
AnswerRe: threads [modified] Pin
Cedric Moonen22-Jan-09 0:02
Cedric Moonen22-Jan-09 0:02 
Member 4250705 wrote:
Its creting new threads , but its overwriting the parameter value ie it is shared by all the created threads....


Well, yes, that's the standard behavior. When you start a new thread, you only create the thread, not duplicate any global value. You will need to make the variable local to your thread function in order to have multiple different variables.

Wait, I misunderstood your question. What are you passing to your thread function ? Could you post the code where you call CreateThread ?

Cédric Moonen
Software developer

Charting control [v1.5]
OpenGL game tutorial in C++

modified on Thursday, January 22, 2009 6:08 AM

GeneralRe: threads Pin
hrishiS22-Jan-09 0:10
hrishiS22-Jan-09 0:10 
AnswerRe: threads Pin
Jonathan Davies22-Jan-09 0:03
Jonathan Davies22-Jan-09 0:03 
AnswerRe: threads Pin
Code-o-mat22-Jan-09 0:23
Code-o-mat22-Jan-09 0:23 
AnswerRe: threads [modified] Pin
CPallini22-Jan-09 0:48
mveCPallini22-Jan-09 0:48 
GeneralRe: threads Pin
Stephen Hewitt22-Jan-09 1:07
Stephen Hewitt22-Jan-09 1:07 
GeneralRe: threads Pin
CPallini22-Jan-09 2:07
mveCPallini22-Jan-09 2:07 
QuestionSelecting class at runtime Pin
hhhakan21-Jan-09 23:27
hhhakan21-Jan-09 23:27 
AnswerRe: Selecting class at runtime Pin
Code-o-mat21-Jan-09 23:52
Code-o-mat21-Jan-09 23:52 
GeneralRe: Selecting class at runtime Pin
hhhakan22-Jan-09 0:17
hhhakan22-Jan-09 0:17 
GeneralRe: Selecting class at runtime Pin
Code-o-mat22-Jan-09 0:30
Code-o-mat22-Jan-09 0:30 
GeneralRe: Selecting class at runtime Pin
hhhakan22-Jan-09 0:31
hhhakan22-Jan-09 0:31 
GeneralRe: Selecting class at runtime Pin
«_Superman_»22-Jan-09 0:57
professional«_Superman_»22-Jan-09 0:57 
GeneralRe: Selecting class at runtime Pin
hhhakan22-Jan-09 1:08
hhhakan22-Jan-09 1:08 
GeneralRe: Selecting class at runtime Pin
«_Superman_»22-Jan-09 1:35
professional«_Superman_»22-Jan-09 1:35 
GeneralRe: Selecting class at runtime Pin
hhhakan22-Jan-09 1:44
hhhakan22-Jan-09 1:44 
GeneralRe: Selecting class at runtime Pin
Code-o-mat22-Jan-09 2:18
Code-o-mat22-Jan-09 2:18 
GeneralRe: Selecting class at runtime Pin
enhzflep22-Jan-09 0:58
enhzflep22-Jan-09 0:58 

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.