Click here to Skip to main content
15,921,793 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CString Pin
Mark Salsbery25-Nov-06 5:56
Mark Salsbery25-Nov-06 5:56 
QuestionDeferWindowPos Pin
Waldermort24-Nov-06 20:04
Waldermort24-Nov-06 20:04 
AnswerRe: DeferWindowPos Pin
PJ Arends24-Nov-06 23:22
professionalPJ Arends24-Nov-06 23:22 
GeneralRe: DeferWindowPos Pin
Waldermort25-Nov-06 3:07
Waldermort25-Nov-06 3:07 
GeneralRe: DeferWindowPos Pin
Mark Salsbery25-Nov-06 5:59
Mark Salsbery25-Nov-06 5:59 
GeneralRe: DeferWindowPos Pin
PJ Arends25-Nov-06 6:42
professionalPJ Arends25-Nov-06 6:42 
QuestionHelp Regarding DDK Pin
ram krishna pattnayak24-Nov-06 19:46
ram krishna pattnayak24-Nov-06 19:46 
Questionwhen deconstructor function is called and some other dummy questions Pin
cy163@hotmail.com24-Nov-06 19:26
cy163@hotmail.com24-Nov-06 19:26 
Question 1:

For a class Class_A, it has a constructor function Class_A::Class_A() and a deconstructor function Class_A::~Class_A().

My question is when the two functions will be called.

For constructor function, I think it will be called in two cases:

case 1: when declare a Class_A type pointer variable: Class_A * ptrClass_A = new Class_A();
case 2: when declare a Class_A type variable : Class_A objClass_A;

my question arises with deconstructor function,

corresponding to the above case 1: deconstructor function is called when using ' delete ptrClass_A '

I am confused with the second case. It seems to me that deconstructor function will never be called for the above case 2, since there is no a counterpart in case 2 to ' delete ' in case 1.

Question 2

How to dynamically create a control, say a CEdit control.
Should I place a CEdit control (IDC_EDIT0) on the form first, then add a variable (m_EditBox_0) for the control.
In the *.cpp file, I should create a object of CEdit type
CEdit * objCEdit = new CEDit();

finally, associate objCEdit with m_EditBox_0 in some way.


I am not sure if the above steps are correct or not.





Question 3:

My project (Test) is a SDI framework. Somehow the CTestView node in the "Workspace | ClassView" in the Visuatl C++ Ver. 6.0 (SP6) IDE disappearred. However, TestDoc, TestApp and some other nodes are still there.
Also, the files CTestView.h and CTestView.cpp can be opened successfully. Why this could happen. How can I get it back.




Question 4:

I wonder if there is shortcur keys to let prgrammers to go to next/previous breakpoint from current line or current breakpoint.



AnswerRe: when deconstructor function is called and some other dummy questions Pin
prasad_som24-Nov-06 19:56
prasad_som24-Nov-06 19:56 
GeneralRe: when deconstructor function is called and some other dummy questions Pin
cy163@hotmail.com24-Nov-06 20:21
cy163@hotmail.com24-Nov-06 20:21 
QuestionHow to add VC++ Build paths from Installer? Pin
uusheikh24-Nov-06 17:58
uusheikh24-Nov-06 17:58 
AnswerRe: How to add VC++ Build paths from Installer? Pin
Michael Dunn24-Nov-06 18:30
sitebuilderMichael Dunn24-Nov-06 18:30 
GeneralRe: How to add VC++ Build paths from Installer? Pin
uusheikh26-Nov-06 18:43
uusheikh26-Nov-06 18:43 
QuestionDifference b/w MFC in VC++ 6.0 & VC++.net 2003 Pin
ksandy4524-Nov-06 17:57
ksandy4524-Nov-06 17:57 
AnswerRe: Difference b/w MFC in VC++ 6.0 & VC++.net 2003 Pin
prasad_som24-Nov-06 20:04
prasad_som24-Nov-06 20:04 
GeneralRe: Difference b/w MFC in VC++ 6.0 & VC++.net 2003 Pin
ksandy4524-Nov-06 20:49
ksandy4524-Nov-06 20:49 
GeneralRe: Difference b/w MFC in VC++ 6.0 & VC++.net 2003 Pin
_tasleem25-Nov-06 2:17
_tasleem25-Nov-06 2:17 
GeneralRe: Difference b/w MFC in VC++ 6.0 & VC++.net 2003 Pin
ksandy4527-Nov-06 18:06
ksandy4527-Nov-06 18:06 
GeneralRe: Difference b/w MFC in VC++ 6.0 & VC++.net 2003 Pin
_tasleem27-Nov-06 22:14
_tasleem27-Nov-06 22:14 
GeneralRe: Difference b/w MFC in VC++ 6.0 & VC++.net 2003 Pin
ksandy4528-Nov-06 17:26
ksandy4528-Nov-06 17:26 
GeneralRe: Difference b/w MFC in VC++ 6.0 & VC++.net 2003 Pin
_tasleem30-Nov-06 0:06
_tasleem30-Nov-06 0:06 
QuestionMultilingual Support - MessageBox Problem Pin
dungpapai24-Nov-06 16:05
dungpapai24-Nov-06 16:05 
AnswerRe: Multilingual Support - MessageBox Problem Pin
Waldermort24-Nov-06 17:23
Waldermort24-Nov-06 17:23 
GeneralRe: Multilingual Support - MessageBox Problem Pin
dungpapai26-Nov-06 15:38
dungpapai26-Nov-06 15:38 
AnswerRe: Multilingual Support - MessageBox Problem Pin
CPallini24-Nov-06 22:46
mveCPallini24-Nov-06 22:46 

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.