Click here to Skip to main content
15,913,722 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VC++ Pin
SandipG 8-Aug-08 1:00
SandipG 8-Aug-08 1:00 
GeneralRe: VC++ Pin
toxcct8-Aug-08 1:14
toxcct8-Aug-08 1:14 
AnswerRe: VC++ Pin
David Crow8-Aug-08 3:33
David Crow8-Aug-08 3:33 
AnswerRe: VC++ Pin
vikas amin8-Aug-08 10:04
vikas amin8-Aug-08 10:04 
QuestionSetting Debug Info option Pin
Super Hornet7-Aug-08 22:53
Super Hornet7-Aug-08 22:53 
AnswerRe: Setting Debug Info option Pin
Mark Salsbery8-Aug-08 8:42
Mark Salsbery8-Aug-08 8:42 
GeneralRe: Setting Debug Info option Pin
Super Hornet8-Aug-08 20:46
Super Hornet8-Aug-08 20:46 
QuestionCreating control Pin
itaymaor7-Aug-08 22:43
itaymaor7-Aug-08 22:43 
Hi there,
I want to create a button at run-time.
I have a dialog, derived from CDialog, of course.
I can add a CButton data member to my dialog class, for exmaple:
CMyDlg : CDialog
{
CButton btn;
}
and then
CMyDlg::OnInitDialog()
{
btn.Create (.....);
}
this will work.

My question is why can't I declare my CButton inside OnInitDialog (with no pointers) and have it work.
like:
CMyDlg::OnInitDialog()
{
CButton btn;
btn.Create (.....);
}

why? what is the difference? as a data member, CButton is not constructed either, so why is that?

Thanks a lot!
AnswerRe: Creating control Pin
Naveen7-Aug-08 23:02
Naveen7-Aug-08 23:02 
AnswerRe: Creating control Pin
Hamid_RT7-Aug-08 23:13
Hamid_RT7-Aug-08 23:13 
AnswerRe: Creating control Pin
Mark Salsbery8-Aug-08 8:44
Mark Salsbery8-Aug-08 8:44 
QuestionUsing waitableTimmer to keep the UI active,fails Pin
ptr_Electron7-Aug-08 21:56
ptr_Electron7-Aug-08 21:56 
AnswerRe: Using waitableTimmer to keep the UI active,fails Pin
Stephen Hewitt7-Aug-08 22:25
Stephen Hewitt7-Aug-08 22:25 
Questiontranslucent rectangle Pin
tctan7-Aug-08 21:31
tctan7-Aug-08 21:31 
AnswerRe: translucent rectangle Pin
Hamid_RT7-Aug-08 23:18
Hamid_RT7-Aug-08 23:18 
AnswerRe: translucent rectangle Pin
Mark Salsbery8-Aug-08 8:47
Mark Salsbery8-Aug-08 8:47 
QuestionHelp me on Rich Edit Control Pin
ganesa moorthy7-Aug-08 21:18
ganesa moorthy7-Aug-08 21:18 
Questioncalling webservice problem? Pin
ritz12347-Aug-08 20:34
ritz12347-Aug-08 20:34 
QuestionUnexpected #endif with stdafx.h Pin
Chesnokov Yuriy7-Aug-08 20:16
professionalChesnokov Yuriy7-Aug-08 20:16 
AnswerRe: Unexpected #endif with stdafx.h Pin
toxcct7-Aug-08 21:13
toxcct7-Aug-08 21:13 
AnswerRe: Unexpected #endif with stdafx.h Pin
Chesnokov Yuriy7-Aug-08 22:22
professionalChesnokov Yuriy7-Aug-08 22:22 
GeneralRe: Unexpected #endif with stdafx.h Pin
toxcct7-Aug-08 22:27
toxcct7-Aug-08 22:27 
AnswerRe: Unexpected #endif with stdafx.h Pin
Chesnokov Yuriy7-Aug-08 22:29
professionalChesnokov Yuriy7-Aug-08 22:29 
GeneralRe: Unexpected #endif with stdafx.h Pin
toxcct7-Aug-08 22:32
toxcct7-Aug-08 22:32 
AnswerRe: Unexpected #endif with stdafx.h Pin
Mark Salsbery8-Aug-08 8:55
Mark Salsbery8-Aug-08 8:55 

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.