Click here to Skip to main content
15,900,907 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Images to Treectrl Pin
Nibu babu thomas31-Aug-08 22:12
Nibu babu thomas31-Aug-08 22:12 
QuestionClass constructor question Pin
monsieur_jj31-Aug-08 21:19
monsieur_jj31-Aug-08 21:19 
AnswerRe: Class constructor question Pin
Mckay.Lai31-Aug-08 21:29
Mckay.Lai31-Aug-08 21:29 
GeneralRe: Class constructor question Pin
monsieur_jj31-Aug-08 21:36
monsieur_jj31-Aug-08 21:36 
GeneralRe: Class constructor question Pin
Cedric Moonen31-Aug-08 21:47
Cedric Moonen31-Aug-08 21:47 
GeneralRe: Class constructor question Pin
monsieur_jj31-Aug-08 21:52
monsieur_jj31-Aug-08 21:52 
GeneralRe: Class constructor question Pin
Mckay.Lai31-Aug-08 22:04
Mckay.Lai31-Aug-08 22:04 
News[OT] Re: Class constructor question Pin
Roger Stoltz31-Aug-08 22:47
Roger Stoltz31-Aug-08 22:47 
monsieur_jj wrote:
CUpdateServiceModule::CUpdateServiceModule()
{
m_status.dwControlsAccepted |= SERVICE_ACCEPT_PAUSE_CONTINUE;
m_bIsRunning = FALSE;
m_bIsPaused = FALSE;
MessageBox(NULL, L"Contructor",NULL, NULL);
}


Be careful with the m_status.dwControlsAccepted.
The way the statement is written it will most likely contain garbage data when you build for release, unless it's initialized in some base class of CUpdateServiceModule.
Consider changing to
m_status.dwControlsAccepted = SERVICE_ACCEPT_PAUSE_CONTINUE;



"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown


Questionhow to overcome/solve warnings such as " warning C4996: 'strcat' was declared deprecated " ? Pin
kapardhi31-Aug-08 20:37
kapardhi31-Aug-08 20:37 
AnswerRe: how to overcome/solve warnings such as " warning C4996: 'strcat' was declared deprecated " ? Pin
Cedric Moonen31-Aug-08 20:40
Cedric Moonen31-Aug-08 20:40 
GeneralRe: how to overcome/solve warnings such as " warning C4996: 'strcat' was declared deprecated " ? Pin
Rane31-Aug-08 21:02
Rane31-Aug-08 21:02 
QuestionRead and Write to TextFile With Visual c++ 6.0 MFC Pin
mikobi31-Aug-08 20:03
mikobi31-Aug-08 20:03 
AnswerRe: Read and Write to TextFile With Visual c++ 6.0 MFC Pin
Rane31-Aug-08 20:32
Rane31-Aug-08 20:32 
AnswerRe: Read and Write to TextFile With Visual c++ 6.0 MFC Pin
SandipG 31-Aug-08 20:40
SandipG 31-Aug-08 20:40 
AnswerRe: Read and Write to TextFile With Visual c++ 6.0 MFC Pin
Rajesh R Subramanian31-Aug-08 20:45
professionalRajesh R Subramanian31-Aug-08 20:45 
QuestionMDI to Dailog Application [modified] Pin
MsmVc31-Aug-08 19:27
MsmVc31-Aug-08 19:27 
AnswerRe: MDI to Dailog Application Pin
Cedric Moonen31-Aug-08 20:07
Cedric Moonen31-Aug-08 20:07 
GeneralRe: MDI to Dailog Application Pin
MsmVc31-Aug-08 20:11
MsmVc31-Aug-08 20:11 
GeneralRe: MDI to Dailog Application Pin
Cedric Moonen31-Aug-08 20:18
Cedric Moonen31-Aug-08 20:18 
GeneralRe: MDI to Dailog Application Pin
MsmVc31-Aug-08 20:24
MsmVc31-Aug-08 20:24 
GeneralRe: MDI to Dailog Application Pin
Cedric Moonen31-Aug-08 20:29
Cedric Moonen31-Aug-08 20:29 
GeneralRe: MDI to Dailog Application Pin
MsmVc31-Aug-08 20:37
MsmVc31-Aug-08 20:37 
GeneralRe: MDI to Dailog Application Pin
Cedric Moonen31-Aug-08 20:42
Cedric Moonen31-Aug-08 20:42 
GeneralRe: MDI to Dailog Application Pin
MsmVc31-Aug-08 20:45
MsmVc31-Aug-08 20:45 
GeneralRe: MDI to Dailog Application Pin
Cedric Moonen31-Aug-08 20:54
Cedric Moonen31-Aug-08 20:54 

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.