Click here to Skip to main content
15,924,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: stop if NAN ! Pin
Randor 13-May-08 13:22
professional Randor 13-May-08 13:22 
GeneralRe: stop if NAN ! Pin
Niklas L14-May-08 1:50
Niklas L14-May-08 1:50 
GeneralRe: stop if NAN ! Pin
Randor 14-May-08 3:48
professional Randor 14-May-08 3:48 
Questionhow to disable close(x) button for sidebar window Pin
customize13-May-08 8:40
customize13-May-08 8:40 
QuestionA better understanding of Thread Local Storage Pin
ForNow13-May-08 6:12
ForNow13-May-08 6:12 
AnswerRe: A better understanding of Thread Local Storage Pin
Mark Salsbery13-May-08 9:18
Mark Salsbery13-May-08 9:18 
GeneralRe: A better understanding of Thread Local Storage Pin
ForNow13-May-08 12:30
ForNow13-May-08 12:30 
GeneralRe: A better understanding of Thread Local Storage Pin
Mark Salsbery14-May-08 6:18
Mark Salsbery14-May-08 6:18 
ForNow wrote:
I would like to inform The DLL_THREAD_ATTACH message the nature of the thread like Set pointer via TlSsetValue


I don't think this will work. To set a value in the thread's local storage, you need to
be running in the context of that thread, in which case the DLL_THREAD_ATTACH notification
in the DLL entry point will have already been executed.

Can you just handle all this stuff in the thread proc itself?
Do you really need to do this in the DLL entry point?

You could initialize the thread's local storage at the beginning of the thread proc
then call a function in the DLL instead (your own "DLL_THREAD_ATTACH" message Smile | :) ).

Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: A better understanding of Thread Local Storage Pin
ForNow14-May-08 14:00
ForNow14-May-08 14:00 
GeneralRe: A better understanding of Thread Local Storage Pin
ForNow13-May-08 14:56
ForNow13-May-08 14:56 
QuestionClosing AfxMessageBox Pin
Sunil P V13-May-08 4:59
Sunil P V13-May-08 4:59 
AnswerRe: Closing AfxMessageBox Pin
Iain Clarke, Warrior Programmer13-May-08 5:11
Iain Clarke, Warrior Programmer13-May-08 5:11 
AnswerRe: Closing AfxMessageBox Pin
Mark Salsbery13-May-08 5:12
Mark Salsbery13-May-08 5:12 
GeneralRe: Closing AfxMessageBox Pin
Sunil P V13-May-08 20:19
Sunil P V13-May-08 20:19 
GeneralRe: Closing AfxMessageBox Pin
Mark Salsbery14-May-08 5:34
Mark Salsbery14-May-08 5:34 
QuestionTCHAR porting issues while porting from VC6 to VC8 Pin
Rajesh_Parameswaran13-May-08 3:52
Rajesh_Parameswaran13-May-08 3:52 
AnswerRe: TCHAR porting issues while porting from VC6 to VC8 Pin
Iain Clarke, Warrior Programmer13-May-08 4:00
Iain Clarke, Warrior Programmer13-May-08 4:00 
GeneralPlz sir slow down Pin
CPallini13-May-08 4:08
mveCPallini13-May-08 4:08 
GeneralRe: Plz sir slow down Pin
Iain Clarke, Warrior Programmer13-May-08 4:13
Iain Clarke, Warrior Programmer13-May-08 4:13 
GeneralRe: Plz sir slow down Pin
Cedric Moonen13-May-08 4:25
Cedric Moonen13-May-08 4:25 
GeneralRe: Plz sir slow down Pin
CPallini13-May-08 4:26
mveCPallini13-May-08 4:26 
GeneralRe: Plz sir slow down Pin
Cedric Moonen13-May-08 4:28
Cedric Moonen13-May-08 4:28 
GeneralRe: Plz sir slow down Pin
Rajesh_Parameswaran13-May-08 4:36
Rajesh_Parameswaran13-May-08 4:36 
QuestionRe: Plz sir slow down Pin
Rajkumar R13-May-08 4:45
Rajkumar R13-May-08 4:45 
AnswerRe: Plz sir slow down Pin
Rajesh_Parameswaran13-May-08 4:52
Rajesh_Parameswaran13-May-08 4:52 

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.