Click here to Skip to main content
15,796,456 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
PinnedThe C++ / CLI is for managed and mixed-mode C++ programming only Pin
Chris Maunder9-Jan-06 10:36
cofounderChris Maunder9-Jan-06 10:36 
QuestionTreelistView c++/cli Pin
Temblor22-Aug-23 0:05
Temblor22-Aug-23 0:05 
AnswerRe: TreelistView c++/cli Pin
Richard MacCutchan22-Aug-23 1:09
mveRichard MacCutchan22-Aug-23 1:09 
GeneralRe: TreelistView c++/cli Pin
Temblor22-Aug-23 4:57
Temblor22-Aug-23 4:57 
GeneralRe: TreelistView c++/cli Pin
Richard MacCutchan22-Aug-23 5:03
mveRichard MacCutchan22-Aug-23 5:03 
AnswerRe: TreelistView c++/cli Pin
jschell22-Aug-23 7:41
jschell22-Aug-23 7:41 
GeneralRe: TreelistView c++/cli Pin
Peter_in_278022-Aug-23 18:20
professionalPeter_in_278022-Aug-23 18:20 
GeneralRe: TreelistView c++/cli Pin
Temblor22-Aug-23 21:54
Temblor22-Aug-23 21:54 
GeneralRe: TreelistView c++/cli Pin
Richard MacCutchan22-Aug-23 22:48
mveRichard MacCutchan22-Aug-23 22:48 
GeneralRe: TreelistView c++/cli Pin
jschell23-Aug-23 7:47
jschell23-Aug-23 7:47 
AnswerRe: TreelistView c++/cli Pin
Gerry Schmitz23-Aug-23 6:49
mveGerry Schmitz23-Aug-23 6:49 
AnswerRe: TreelistView c++/cli Pin
Temblor23-Sep-23 4:54
Temblor23-Sep-23 4:54 
QuestionHeap Corruption in richedit Pin
ForNow15-Jan-23 13:49
ForNow15-Jan-23 13:49 
AnswerRe: Heap Corruption in richedit Pin
Victor Nijegorodov15-Jan-23 21:26
Victor Nijegorodov15-Jan-23 21:26 
GeneralRe: Heap Corruption in richedit Pin
ForNow16-Jan-23 1:10
ForNow16-Jan-23 1:10 
Questiontrying to understand DLL and Thread local storage Pin
ForNow4-Dec-22 9:52
ForNow4-Dec-22 9:52 
AnswerRe: trying to understand DLL and Thread local storage Pin
Richard Deeming4-Dec-22 22:42
mveRichard Deeming4-Dec-22 22:42 
GeneralRe: trying to understand DLL and Thread local storage Pin
ForNow5-Dec-22 3:40
ForNow5-Dec-22 3:40 
GeneralRe: trying to understand DLL and Thread local storage Pin
Richard Deeming5-Dec-22 5:29
mveRichard Deeming5-Dec-22 5:29 
GeneralRe: trying to understand DLL and Thread local storage Pin
ForNow5-Dec-22 5:41
ForNow5-Dec-22 5:41 
GeneralRe: trying to understand DLL and Thread local storage Pin
Richard Deeming5-Dec-22 7:01
mveRichard Deeming5-Dec-22 7:01 
ForNow wrote:
the next thread that comes by can change its value
Well yes, if you do it wrong you can shoot yourself in the foot.

As far as I can see, the example you're looking at is not doing it wrong. The global variable is initialized once, in the place where the documentation says it should be initialized.

This seems to be a case of "if I stick a fork in my toaster whilst it's switched on, I can get an electric shock; therefore, all toasters are dangerous and should be banned". Smile | :)



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: trying to understand DLL and Thread local storage Pin
ForNow5-Dec-22 8:39
ForNow5-Dec-22 8:39 
AnswerRe: trying to understand DLL and Thread local storage Pin
Richard MacCutchan5-Dec-22 6:56
mveRichard MacCutchan5-Dec-22 6:56 
GeneralRe: trying to understand DLL and Thread local storage Pin
ForNow5-Dec-22 8:33
ForNow5-Dec-22 8:33 
GeneralRe: trying to understand DLL and Thread local storage Pin
Richard MacCutchan5-Dec-22 8:54
mveRichard MacCutchan5-Dec-22 8:54 

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.