Click here to Skip to main content
15,886,769 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: maze in c Pin
CPallini14-May-10 10:19
mveCPallini14-May-10 10:19 
AnswerRe: maze in c Pin
Maximilien14-May-10 2:29
Maximilien14-May-10 2:29 
AnswerRe: maze in c Pin
Iain Clarke, Warrior Programmer14-May-10 4:50
Iain Clarke, Warrior Programmer14-May-10 4:50 
QuestionRe: maze in c Pin
David Crow14-May-10 8:00
David Crow14-May-10 8:00 
QuestionData communication between MFC and JavaScript for a Google Maps application Pin
ursular14-May-10 1:59
ursular14-May-10 1:59 
Questionpng button Pin
AbhiHcl14-May-10 0:23
AbhiHcl14-May-10 0:23 
AnswerRe: png button Pin
CPallini14-May-10 0:57
mveCPallini14-May-10 0:57 
QuestionThread local variables Pin
SelvaKr13-May-10 23:54
SelvaKr13-May-10 23:54 
Hi,

I am working on a project, where i see a declaration of a thread local variable as below.
__declspec(thread) long g_nLock[2] = {0, 0};
And this variable is accessed with InterlockedXXX functions.

My doubt is, this variable will have the global memory local to every thread.
In that case, is it required to use InterlockedXXX functions to access the variable?

If i change the allocation and access method of this variable using TLS APIs,
do i have to take care of locking?

Thanks in advance.
Selva

AnswerRe: Thread local variables Pin
KellyR14-May-10 3:54
KellyR14-May-10 3:54 
AnswerRe: Thread local variables Pin
cmk14-May-10 12:35
cmk14-May-10 12:35 
GeneralRe: Thread local variables Pin
SelvaKr19-May-10 21:32
SelvaKr19-May-10 21:32 
QuestionSystem date and time c++ Pin
Member 365375113-May-10 21:55
Member 365375113-May-10 21:55 
AnswerRe: System date and time c++ Pin
Stephen Hewitt13-May-10 22:01
Stephen Hewitt13-May-10 22:01 
AnswerRe: System date and time c++ Pin
Richard MacCutchan13-May-10 22:58
mveRichard MacCutchan13-May-10 22:58 
Question#pragma warning(disable:4786) Pin
mesajflaviu13-May-10 20:37
mesajflaviu13-May-10 20:37 
AnswerRe: #pragma warning(disable:4786) Pin
mesajflaviu13-May-10 20:47
mesajflaviu13-May-10 20:47 
AnswerRe: #pragma warning(disable:4786) Pin
Nuri Ismail13-May-10 20:57
Nuri Ismail13-May-10 20:57 
GeneralRe: #pragma warning(disable:4786) Pin
mesajflaviu13-May-10 21:34
mesajflaviu13-May-10 21:34 
GeneralRe: #pragma warning(disable:4786) Pin
Stephen Hewitt13-May-10 21:55
Stephen Hewitt13-May-10 21:55 
GeneralRe: #pragma warning(disable:4786) Pin
Nuri Ismail13-May-10 21:58
Nuri Ismail13-May-10 21:58 
QuestionLoad PNG image on button Pin
AbhiHcl13-May-10 20:35
AbhiHcl13-May-10 20:35 
AnswerRe: Load PNG image on button Pin
Richard MacCutchan13-May-10 23:03
mveRichard MacCutchan13-May-10 23:03 
QuestionButton with PNG image Pin
AbhiHcl13-May-10 19:34
AbhiHcl13-May-10 19:34 
AnswerRe: Button with PNG image Pin
Richard MacCutchan13-May-10 23:03
mveRichard MacCutchan13-May-10 23:03 
Questionunhandled exception in test.exe (SECUR32.dll): 0xC0000005 Access Violation Pin
Le@rner13-May-10 19:14
Le@rner13-May-10 19:14 

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.