Click here to Skip to main content
15,886,963 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow can i query application start ? Pin
Developer61122-Dec-07 18:10
Developer61122-Dec-07 18:10 
AnswerRe: How can i query application start ? Pin
Hamid_RT22-Dec-07 18:25
Hamid_RT22-Dec-07 18:25 
GeneralRe: How can i query application start ? Pin
Developer61122-Dec-07 19:26
Developer61122-Dec-07 19:26 
GeneralRe: How can i query application start ? Pin
Hamid_RT22-Dec-07 19:48
Hamid_RT22-Dec-07 19:48 
GeneralRe: How can i query application start ? Pin
Developer61122-Dec-07 20:56
Developer61122-Dec-07 20:56 
GeneralRe: How can i query application start ? Pin
Lim Bio Liong22-Dec-07 23:06
Lim Bio Liong22-Dec-07 23:06 
GeneralRe: How can i query application start ? Pin
Mark Salsbery23-Dec-07 8:22
Mark Salsbery23-Dec-07 8:22 
QuestionCDialog - make control invisible at run time asserts Pin
Vaclav_22-Dec-07 10:22
Vaclav_22-Dec-07 10:22 
Could someone please help me to find out why the following code asserts:

CDialog dlg = new CDialog();

// hide edit control in dialog
CEdit *pEdit = (CEdit*)dlg.GetDlgItem(IDC_EDIT1);
pEdit->dlg.ShowWindow(SW_HIDE);

This line should read derefferenced pointer to pEdit but I cannot write it correctly here!! pEdit "points to" dlg.ShowWindow(SW_HIDE);

pEdit->dlg.ShowWindow(SW_HIDE);

dlg.DoModal();


This asserts in

CWnd* CWnd::GetDlgItem(int nID) const
{
ASSERT(::IsWindow(m_hWnd));


Thanks for reading
Vaclav
GeneralRe: CDialog - make control invisible at run time asserts Pin
Hamid_RT22-Dec-07 18:34
Hamid_RT22-Dec-07 18:34 
QuestionRe: CDialog - make control invisible at run time asserts Pin
David Crow23-Dec-07 3:02
David Crow23-Dec-07 3:02 
GeneralRe: CDialog - make control invisible at run time asserts Pin
Vaclav_23-Dec-07 4:33
Vaclav_23-Dec-07 4:33 
GeneralRe: CDialog - make control invisible at run time asserts Pin
Mark Salsbery23-Dec-07 7:28
Mark Salsbery23-Dec-07 7:28 
GeneralRe: CDialog - make control invisible at run time asserts Pin
Vaclav_23-Dec-07 12:01
Vaclav_23-Dec-07 12:01 
QuestionCInternetSession Assertion Failure Pin
İsmail Durmaz22-Dec-07 7:37
İsmail Durmaz22-Dec-07 7:37 
GeneralRe: CInternetSession Assertion Failure Pin
Mark Salsbery22-Dec-07 8:22
Mark Salsbery22-Dec-07 8:22 
QuestionRe: CInternetSession Assertion Failure Pin
İsmail Durmaz22-Dec-07 9:26
İsmail Durmaz22-Dec-07 9:26 
GeneralRe: CInternetSession Assertion Failure Pin
David Crow23-Dec-07 3:04
David Crow23-Dec-07 3:04 
GeneralRe: CInternetSession Assertion Failure Pin
Mark Salsbery23-Dec-07 6:40
Mark Salsbery23-Dec-07 6:40 
GeneralWhen opening a file, the window becomes smaller [modified] Pin
followait22-Dec-07 6:22
followait22-Dec-07 6:22 
GeneralDeclaring a constant or variable in a windows form Pin
Manfr3d22-Dec-07 4:42
Manfr3d22-Dec-07 4:42 
GeneralRe: Declaring a constant or variable in a windows form Pin
CPallini22-Dec-07 5:26
mveCPallini22-Dec-07 5:26 
QuestionDeploying an application with Private assemblies Pin
ComplexLifeForm22-Dec-07 2:59
ComplexLifeForm22-Dec-07 2:59 
GeneralChanging colors of edit control Pin
HenriH22-Dec-07 1:07
HenriH22-Dec-07 1:07 
GeneralRe: Changing colors of edit control Pin
Hamid_RT22-Dec-07 1:17
Hamid_RT22-Dec-07 1:17 
GeneralRe: Changing colors of edit control Pin
HenriH22-Dec-07 1:49
HenriH22-Dec-07 1:49 

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.