Click here to Skip to main content
15,116,813 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: maze in c Pin
Iain Clarke, Warrior Programmer14-May-10 5:50
MemberIain Clarke, Warrior Programmer14-May-10 5:50 
QuestionRe: maze in c Pin
David Crow14-May-10 9:00
MemberDavid Crow14-May-10 9:00 
QuestionData communication between MFC and JavaScript for a Google Maps application Pin
ursular14-May-10 2:59
Memberursular14-May-10 2:59 
Questionpng button Pin
AbhiHcl14-May-10 1:23
MemberAbhiHcl14-May-10 1:23 
AnswerRe: png button Pin
CPallini14-May-10 1:57
mveCPallini14-May-10 1:57 
QuestionThread local variables Pin
SelvaKr14-May-10 0:54
MemberSelvaKr14-May-10 0:54 
AnswerRe: Thread local variables Pin
KellyR14-May-10 4:54
MemberKellyR14-May-10 4:54 
AnswerRe: Thread local variables Pin
cmk14-May-10 13:35
Membercmk14-May-10 13: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 22:32
MemberSelvaKr19-May-10 22:32 
QuestionSystem date and time c++ Pin
Member 365375113-May-10 22:55
MemberMember 365375113-May-10 22:55 
AnswerRe: System date and time c++ Pin
Stephen Hewitt13-May-10 23:01
MemberStephen Hewitt13-May-10 23:01 
AnswerRe: System date and time c++ Pin
Richard MacCutchan13-May-10 23:58
mveRichard MacCutchan13-May-10 23:58 
Question#pragma warning(disable:4786) Pin
mesajflaviu13-May-10 21:37
Membermesajflaviu13-May-10 21:37 
AnswerRe: #pragma warning(disable:4786) Pin
mesajflaviu13-May-10 21:47
Membermesajflaviu13-May-10 21:47 
AnswerRe: #pragma warning(disable:4786) Pin
Nuri Ismail13-May-10 21:57
MemberNuri Ismail13-May-10 21:57 
GeneralRe: #pragma warning(disable:4786) Pin
mesajflaviu13-May-10 22:34
Membermesajflaviu13-May-10 22:34 
GeneralRe: #pragma warning(disable:4786) Pin
Stephen Hewitt13-May-10 22:55
MemberStephen Hewitt13-May-10 22:55 
GeneralRe: #pragma warning(disable:4786) Pin
Nuri Ismail13-May-10 22:58
MemberNuri Ismail13-May-10 22:58 
QuestionLoad PNG image on button Pin
AbhiHcl13-May-10 21:35
MemberAbhiHcl13-May-10 21:35 
AnswerRe: Load PNG image on button Pin
Richard MacCutchan14-May-10 0:03
mveRichard MacCutchan14-May-10 0:03 
QuestionButton with PNG image Pin
AbhiHcl13-May-10 20:34
MemberAbhiHcl13-May-10 20:34 
AnswerRe: Button with PNG image Pin
Richard MacCutchan14-May-10 0:03
mveRichard MacCutchan14-May-10 0:03 
Questionunhandled exception in test.exe (SECUR32.dll): 0xC0000005 Access Violation Pin
Le@rner13-May-10 20:14
MemberLe@rner13-May-10 20:14 
AnswerRe: unhandled exception in test.exe (SECUR32.dll): 0xC0000005 Access Violation Pin
Madhu Nair13-May-10 21:06
MemberMadhu Nair13-May-10 21:06 
AnswerRe: unhandled exception in test.exe (SECUR32.dll): 0xC0000005 Access Violation Pin
Stephen Hewitt13-May-10 21:08
MemberStephen Hewitt13-May-10 21: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.