Click here to Skip to main content
15,885,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Changing the look and feel of a MFC dialog box Pin
«_Superman_»16-Oct-09 13:24
professional«_Superman_»16-Oct-09 13:24 
GeneralRe: Changing the look and feel of a MFC dialog box Pin
burslem200116-Oct-09 18:06
burslem200116-Oct-09 18:06 
GeneralRe: Changing the look and feel of a MFC dialog box Pin
wangningyu16-Oct-09 20:32
wangningyu16-Oct-09 20:32 
GeneralRe: Changing the look and feel of a MFC dialog box Pin
burslem200119-Oct-09 1:28
burslem200119-Oct-09 1:28 
Questionmultithreading class [modified] Pin
es196816-Oct-09 11:25
es196816-Oct-09 11:25 
AnswerRe: multithreading class Pin
Moak17-Oct-09 1:27
Moak17-Oct-09 1:27 
GeneralRe: multithreading class Pin
es196817-Oct-09 2:04
es196817-Oct-09 2:04 
AnswerRe: multithreading class Pin
cmk17-Oct-09 4:22
cmk17-Oct-09 4:22 
There are many ways to do this, depending on if you want to enforce a preference for readers or writers or neither.

The easy way would be to assume the target system is Vista or greater and use the new SRWLOCK[^] variable. Smile | :)

However, I expect the spirit of the question was to write the logic yourself. Check the following links:

http://blogs.msdn.com/vancem/archive/2006/03/28/563180.aspx[^]
http://blogs.msdn.com/vancem/attachment/563180.ashx[^]
http://www.bluebytesoftware.com/blog/2009/01/30/ASinglewordReaderwriterSpinLock.aspx[^]

If you have a question about a specific implimentation then post the code you having troubles with.

...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: multithreading class Pin
es196817-Oct-09 6:16
es196817-Oct-09 6:16 
QuestionI just don't understand HWND Pin
GLGunblade16-Oct-09 8:24
GLGunblade16-Oct-09 8:24 
AnswerRe: I just don't understand HWND Pin
«_Superman_»16-Oct-09 8:44
professional«_Superman_»16-Oct-09 8:44 
GeneralRe: I just don't understand HWND Pin
GLGunblade16-Oct-09 8:52
GLGunblade16-Oct-09 8:52 
GeneralRe: I just don't understand HWND Pin
Richard MacCutchan16-Oct-09 9:05
mveRichard MacCutchan16-Oct-09 9:05 
GeneralRe: I just don't understand HWND Pin
GLGunblade16-Oct-09 9:11
GLGunblade16-Oct-09 9:11 
QuestionRe: I just don't understand HWND Pin
CPallini16-Oct-09 10:52
mveCPallini16-Oct-09 10:52 
AnswerRe: I just don't understand HWND Pin
GLGunblade16-Oct-09 17:39
GLGunblade16-Oct-09 17:39 
GeneralRe: I just don't understand HWND Pin
Richard MacCutchan16-Oct-09 22:19
mveRichard MacCutchan16-Oct-09 22:19 
GeneralRe: I just don't understand HWND Pin
GLGunblade17-Oct-09 15:10
GLGunblade17-Oct-09 15:10 
QuestionDDX_CONTROL VS. Create for the RichEditClass Pin
ForNow16-Oct-09 6:33
ForNow16-Oct-09 6:33 
AnswerRe: DDX_CONTROL VS. Create for the RichEditClass Pin
Iain Clarke, Warrior Programmer16-Oct-09 22:06
Iain Clarke, Warrior Programmer16-Oct-09 22:06 
GeneralRe: DDX_CONTROL VS. Create for the RichEditClass Pin
ForNow17-Oct-09 14:22
ForNow17-Oct-09 14:22 
GeneralRe: DDX_CONTROL VS. Create for the RichEditClass Pin
ForNow17-Oct-09 17:41
ForNow17-Oct-09 17:41 
Questionhow to work out "type redefinition" problem Pin
yugiant16-Oct-09 4:57
yugiant16-Oct-09 4:57 
AnswerRe: how to work out "type redefinition" problem Pin
«_Superman_»16-Oct-09 5:05
professional«_Superman_»16-Oct-09 5:05 
GeneralRe: how to work out "type redefinition" problem Pin
yugiant16-Oct-09 5:51
yugiant16-Oct-09 5:51 

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.