Click here to Skip to main content
15,566,064 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 
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 
Hi

I have been looking at the examples off dll and TLS

First thing I noticed that
C++
DWORD g_dwThreadIndex;
is in global storage

It would be nice as in the IBM manuals would have registers on at entry to DllMain

I mean is the SP (register) that of the calling application

regardless if the index returned from tlsalloc lets say is 5

and then before the current thread access the storage set by tlssetvalue

another thread does a tlsallloc g_dwThreadindex becomes 6

then the first thread then does tlsgetvalue it would be using 6 instead of 5 obviously I am not understanding something

I mean if gw_dwThreadindex would be defined in the callers stack I would get it

more so is the anyway of knowing the identity of the caller I mean maybe process id or thread guess I could do a call to Startupinfo
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 
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 
GeneralRe: trying to understand DLL and Thread local storage Pin
ForNow5-Dec-22 9:00
ForNow5-Dec-22 9:00 
AnswerRe: trying to understand DLL and Thread local storage Pin
jschell5-Dec-22 7:06
jschell5-Dec-22 7:06 
GeneralRe: trying to understand DLL and Thread local storage Pin
ForNow5-Dec-22 8:37
ForNow5-Dec-22 8:37 
GeneralRe: trying to understand DLL and Thread local storage Pin
jschell12-Dec-22 11:21
jschell12-Dec-22 11:21 
NewsGood news, /clr builds will soon add C++ 20 support! Pin
John Schroedl15-Nov-22 6:49
professionalJohn Schroedl15-Nov-22 6:49 
Questionrekursif Pin
Achmad Roihan28-Oct-22 3:31
Achmad Roihan28-Oct-22 3:31 
AnswerRe: rekursif Pin
OriginalGriff28-Oct-22 3:38
mvaOriginalGriff28-Oct-22 3:38 
Questionrekursif program (Recursive Program) Pin
Achmad Roihan26-Oct-22 20:51
Achmad Roihan26-Oct-22 20:51 
AnswerRe: rekursif program (Recursive Program) Pin
OriginalGriff26-Oct-22 21:02
mvaOriginalGriff26-Oct-22 21:02 
QuestionHow to close & clear the oledbconnection on form2()_load? Pin
Paramu19739-Oct-22 15:10
Paramu19739-Oct-22 15:10 
AnswerRe: How to close & clear the oledbconnection on form2()_load? Pin
Gerry Schmitz9-Oct-22 20:32
mveGerry Schmitz9-Oct-22 20:32 

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.