Click here to Skip to main content
15,910,471 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: About wWinMainCRTStartup. Can anybody tell me what it exactly is? How does it work? Pin
frankgt4012-Aug-11 16:56
frankgt4012-Aug-11 16:56 
AnswerRe: About wWinMainCRTStartup. Can anybody tell me what it exactly is? How does it work? Pin
MicroVirus12-Aug-11 8:25
MicroVirus12-Aug-11 8:25 
GeneralRe: About wWinMainCRTStartup. Can anybody tell me what it exactly is? How does it work? Pin
frankgt4013-Aug-11 5:17
frankgt4013-Aug-11 5:17 
AnswerRe: About wWinMainCRTStartup. Can anybody tell me what it exactly is? How does it work? Pin
Emilio Garavaglia13-Aug-11 5:07
Emilio Garavaglia13-Aug-11 5:07 
GeneralRe: About wWinMainCRTStartup. Can anybody tell me what it exactly is? How does it work? Pin
frankgt4013-Aug-11 5:26
frankgt4013-Aug-11 5:26 
GeneralRe: About wWinMainCRTStartup. Can anybody tell me what it exactly is? How does it work? [modified] Pin
Emilio Garavaglia13-Aug-11 9:46
Emilio Garavaglia13-Aug-11 9:46 
QuestionInsert new row in Excel using MFC VC++ Pin
spalanivel11-Aug-11 23:58
spalanivel11-Aug-11 23:58 
QuestionRe: Insert new row in Excel using MFC VC++ Pin
David Crow12-Aug-11 4:14
David Crow12-Aug-11 4:14 
AnswerRe: Insert new row in Excel using MFC VC++ Pin
spalanivel15-Aug-11 2:09
spalanivel15-Aug-11 2:09 
GeneralRe: Insert new row in Excel using MFC VC++ Pin
David Crow15-Aug-11 3:31
David Crow15-Aug-11 3:31 
GeneralRe: Insert new row in Excel using MFC VC++ Pin
spalanivel15-Aug-11 19:47
spalanivel15-Aug-11 19:47 
QuestionRe: Insert new row in Excel using MFC VC++ Pin
David Crow16-Aug-11 3:40
David Crow16-Aug-11 3:40 
QuestionHiding DialogBar of Mainframe [Solved] Pin
Anu_Bala11-Aug-11 20:43
Anu_Bala11-Aug-11 20:43 
AnswerRe: Hiding DialogBar of Mainframe Pin
వేంకటనారాయణ(venkatmakam)11-Aug-11 21:23
వేంకటనారాయణ(venkatmakam)11-Aug-11 21:23 
GeneralRe: Hiding DialogBar of Mainframe Pin
Anu_Bala11-Aug-11 23:29
Anu_Bala11-Aug-11 23:29 
QuestionThread safe in VC++ Pin
pix_programmer11-Aug-11 18:12
pix_programmer11-Aug-11 18:12 
AnswerRe: Thread safe in VC++ Pin
Peter_in_278011-Aug-11 19:03
professionalPeter_in_278011-Aug-11 19:03 
AnswerRe: Thread safe in VC++ Pin
Bernhard Hiller11-Aug-11 22:50
Bernhard Hiller11-Aug-11 22:50 
GeneralRe: Thread safe in VC++ Pin
pix_programmer11-Aug-11 23:52
pix_programmer11-Aug-11 23:52 
GeneralRe: Thread safe in VC++ Pin
Chris Losinger12-Aug-11 10:20
professionalChris Losinger12-Aug-11 10:20 
you should use that around any code which should not be used by two threads at once. this includes any code that modifies the internal state of the singleton.

for example, if you have a list of items in your singleton that callers can modify via function calls, you should put a critical section guard around code which can modify the list, to ensure that two threads don't try to modify the list at the same time (which could mess up the internal state of the list).

C++
void CMySingleton::AddToList(int newData)
{
  EnterCriticalSection(...);
  list.push_back(newData);
  LeaveCriticalSection(...);
}


QuestionHow to Clear this Error Pin
Member 808896211-Aug-11 18:08
Member 808896211-Aug-11 18:08 
AnswerRe: How to Clear this Error Pin
T.RATHA KRISHNAN11-Aug-11 18:35
T.RATHA KRISHNAN11-Aug-11 18:35 
QuestionHow to open a document file ? Pin
_Flaviu11-Aug-11 7:08
_Flaviu11-Aug-11 7:08 
QuestionRe: How to open a document file ? Pin
David Crow11-Aug-11 7:16
David Crow11-Aug-11 7:16 
AnswerRe: How to open a document file ? Pin
_Flaviu11-Aug-11 7:43
_Flaviu11-Aug-11 7:43 

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.