Click here to Skip to main content
14,333,124 members

C / C++ / MFC

 
GeneralRe: MFC VC++ Pin
Victor Nijegorodov17-Sep-19 21:43
memberVictor Nijegorodov17-Sep-19 21:43 
GeneralRe: MFC VC++ Pin
Member 1457555617-Sep-19 23:35
memberMember 1457555617-Sep-19 23:35 
GeneralRe: MFC VC++ Pin
Victor Nijegorodov18-Sep-19 0:24
memberVictor Nijegorodov18-Sep-19 0:24 
AnswerRe: MFC VC++ Pin
CPallini17-Sep-19 21:12
mveCPallini17-Sep-19 21:12 
GeneralRe: MFC VC++ Pin
Member 1457555617-Sep-19 21:22
memberMember 1457555617-Sep-19 21:22 
GeneralRe: MFC VC++ Pin
Victor Nijegorodov17-Sep-19 21:39
memberVictor Nijegorodov17-Sep-19 21:39 
GeneralRe: MFC VC++ Pin
CPallini17-Sep-19 21:55
mveCPallini17-Sep-19 21:55 
GeneralRe: MFC VC++ Pin
Member 1457555617-Sep-19 23:49
memberMember 1457555617-Sep-19 23:49 
First of all Thank you for the help. Smile | :)

Is this concept similar for CWinApp::InitInstance . Even when I commented this line my application still works. why?

BOOL CWindowApp::InitInstance()
{
   CWinApp::InitInstance();/* <--- this line */

   CMyDlg dlg;
   m_pMainWnd = &dlg;
   INT_PTR nResponse = dlg.DoModal();
   .......
   .......
   .......
}


I would like to ask one more question regarding m_pMainWnd. Sorry if this is a silly question. Why do we assign the address of the dialog to m_pMainWnd?

I know m_pMainWnd is a CWnd* m_pMainWnd.
GeneralRe: MFC VC++ Pin
CPallini18-Sep-19 0:39
mveCPallini18-Sep-19 0:39 
AnswerRe: MFC VC++ Pin
Victor Nijegorodov17-Sep-19 21:47
memberVictor Nijegorodov17-Sep-19 21:47 
GeneralRe: MFC VC++ Pin
Stefan_Lang17-Sep-19 22:40
memberStefan_Lang17-Sep-19 22:40 
QuestionUnresolved extern "dwTlsIndex" exported function in dll Pin
ForNow17-Sep-19 2:41
memberForNow17-Sep-19 2:41 
AnswerRe: Unresolved extern "dwTlsIndex" exported function in dll Pin
CPallini17-Sep-19 3:19
mveCPallini17-Sep-19 3:19 
GeneralRe: Unresolved extern "dwTlsIndex" exported function in dll Pin
ForNow17-Sep-19 3:42
memberForNow17-Sep-19 3:42 
GeneralRe: Unresolved extern "dwTlsIndex" exported function in dll Changed DLLMAIN.CPP to DLLMAIN.C clean link Pin
ForNow17-Sep-19 8:02
memberForNow17-Sep-19 8:02 
Questionmanual kerning with winAPI Pin
Alexander Kindel15-Sep-19 21:38
memberAlexander Kindel15-Sep-19 21:38 
Questiontypedef for a function for different platforms Pin
ForNow13-Sep-19 3:29
memberForNow13-Sep-19 3:29 
AnswerRe: typedef for a function for different platforms Pin
Stefan_Lang13-Sep-19 3:58
memberStefan_Lang13-Sep-19 3:58 
GeneralRe: typedef for a function for different platforms Pin
ForNow13-Sep-19 4:36
memberForNow13-Sep-19 4:36 
AnswerRe: typedef for a function for different platforms Pin
Richard MacCutchan13-Sep-19 3:59
protectorRichard MacCutchan13-Sep-19 3:59 
GeneralRe: typedef for a function for different platforms Pin
ForNow13-Sep-19 4:36
memberForNow13-Sep-19 4:36 
QuestionError 12029 WinHTTP Pin
Diprom12-Sep-19 22:36
memberDiprom12-Sep-19 22:36 
AnswerRe: Error 12029 WinHTTP Pin
Richard MacCutchan13-Sep-19 1:16
protectorRichard MacCutchan13-Sep-19 1:16 
AnswerRe: Error 12029 WinHTTP Pin
Victor Nijegorodov13-Sep-19 2:26
memberVictor Nijegorodov13-Sep-19 2:26 
GeneralRe: Error 12029 WinHTTP Pin
Diprom13-Sep-19 2:30
memberDiprom13-Sep-19 2:30 

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.