Click here to Skip to main content
15,867,990 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
You are correct, each thread will have its own copy of g_nLock that no other thread can see or modify. As such, it doesn't make sense to modify it with an Interlocked*() function.

The same would be true for any blob you associate with a TLS index via TlsSetValue().

Note: Be carefull using __declspec(thread) in dll's, read the MS docs (this may no longer be an issue in VS2010 ?).
...cmk

The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying.
- John Carmack

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 
AnswerRe: unhandled exception in test.exe (SECUR32.dll): 0xC0000005 Access Violation Pin
Madhu Nair13-May-10 20:06
Madhu Nair13-May-10 20:06 
AnswerRe: unhandled exception in test.exe (SECUR32.dll): 0xC0000005 Access Violation Pin
Stephen Hewitt13-May-10 20:08
Stephen Hewitt13-May-10 20:08 

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.