Click here to Skip to main content
15,916,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: RGB (for Christian) Pin
24-Oct-01 10:59
suss24-Oct-01 10:59 
GeneralRe: RGB (for Christian) Pin
24-Oct-01 11:01
suss24-Oct-01 11:01 
GeneralMenu in a tree control Pin
24-Oct-01 2:55
suss24-Oct-01 2:55 
GeneralRe: Menu in a tree control Pin
Tomasz Sowinski24-Oct-01 3:29
Tomasz Sowinski24-Oct-01 3:29 
Generalabout LoadLibrary Pin
Maer72724-Oct-01 2:31
Maer72724-Oct-01 2:31 
GeneralRe: about LoadLibrary Pin
Tomasz Sowinski24-Oct-01 3:40
Tomasz Sowinski24-Oct-01 3:40 
Generala simple problem about Dll Pin
Maer72724-Oct-01 2:27
Maer72724-Oct-01 2:27 
GeneralRe: a simple problem about Dll Pin
Steen Krogsgaard24-Oct-01 4:36
Steen Krogsgaard24-Oct-01 4:36 
Well, the thread is doing the initialization of it's TLS. And it is doing it by executing the code contained in the DLL. Remember, the code in the DLL (or in any other place in your program, for that matter) can be executed by any thread in your program - you cannot say that any code belongs to any specific thread. The key term here is that the code is executed in the context of a thread. The same code can be executed in the context of different threads - it can even be executed simultaneously, leading to multithreading issues if you don't protect your data structures. And using TLS is one way of separating thread-specific data from the rest.

Cheers
Steen.

"To claim that computer games influence children is rediculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
Generaljust a test. don't bother.... Pin
Gilbert Jeiziner24-Oct-01 2:02
Gilbert Jeiziner24-Oct-01 2:02 
GeneralWhy do not use SetTimer() in CMyView:CListView Pin
24-Oct-01 0:42
suss24-Oct-01 0:42 
GeneralRe: Why do not use SetTimer() in CMyView:CListView Pin
Masaaki Onishi24-Oct-01 4:31
Masaaki Onishi24-Oct-01 4:31 
GeneralRe: Why do not use SetTimer() in CMyView:CListView Pin
Steen Krogsgaard24-Oct-01 4:42
Steen Krogsgaard24-Oct-01 4:42 
GeneralRe: Why do not use SetTimer() in CMyView:CListView Pin
Tomasz Sowinski24-Oct-01 6:26
Tomasz Sowinski24-Oct-01 6:26 
QuestionMul64 function, how to include? Pin
24-Oct-01 0:37
suss24-Oct-01 0:37 
AnswerRe: Mul64 function, how to include? Pin
Tomasz Sowinski24-Oct-01 0:42
Tomasz Sowinski24-Oct-01 0:42 
GeneralRe: Mul64 function, how to include? Pin
24-Oct-01 23:22
suss24-Oct-01 23:22 
GeneralRe: Mul64 function, how to include? Pin
Alvaro Mendez26-Oct-01 11:53
Alvaro Mendez26-Oct-01 11:53 
GeneralDistributing Fonts Pin
David Lantsman24-Oct-01 0:05
David Lantsman24-Oct-01 0:05 
GeneralRe: Distributing Fonts Pin
#realJSOP24-Oct-01 0:55
professional#realJSOP24-Oct-01 0:55 
GeneralRe: Distributing Fonts Pin
markkuk24-Oct-01 1:19
markkuk24-Oct-01 1:19 
GeneralProvide ATL/DLL to Delphi programmer Pin
mimi23-Oct-01 23:51
mimi23-Oct-01 23:51 
GeneralLoading Icons Pin
Drawil23-Oct-01 22:56
Drawil23-Oct-01 22:56 
GeneralRe: Loading Icons Pin
Eugene Pustovoyt24-Oct-01 0:01
Eugene Pustovoyt24-Oct-01 0:01 
GeneralRe: Loading Icons Pin
Drawil24-Oct-01 9:41
Drawil24-Oct-01 9:41 
GeneralC DLL Wraper Pin
Biggy23-Oct-01 22:45
Biggy23-Oct-01 22:45 

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.