Click here to Skip to main content
15,894,410 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Determining length of Switch compare Pin
ForNow19-Sep-19 5:11
ForNow19-Sep-19 5:11 
GeneralRe: Determining length of Switch compare Pin
leon de boer28-Sep-19 14:57
leon de boer28-Sep-19 14:57 
QuestionC++ string assignment to struct Pin
Fotsing18-Sep-19 11:54
Fotsing18-Sep-19 11:54 
AnswerRe: C++ string assignment to struct Pin
Richard MacCutchan18-Sep-19 20:26
mveRichard MacCutchan18-Sep-19 20:26 
GeneralRe: C++ string assignment to struct Pin
Fotsing18-Sep-19 22:33
Fotsing18-Sep-19 22:33 
GeneralRe: C++ string assignment to struct Pin
Stefan_Lang19-Sep-19 2:12
Stefan_Lang19-Sep-19 2:12 
GeneralRe: C++ string assignment to struct Pin
Fotsing19-Sep-19 13:06
Fotsing19-Sep-19 13:06 
AnswerRe: C++ string assignment to struct Pin
Victor Nijegorodov18-Sep-19 20:30
Victor Nijegorodov18-Sep-19 20:30 
GeneralRe: C++ string assignment to struct Pin
Fotsing18-Sep-19 22:28
Fotsing18-Sep-19 22:28 
AnswerRe: C++ string assignment to struct Pin
CPallini18-Sep-19 21:01
mveCPallini18-Sep-19 21:01 
QuestionMFC VC++ Pin
Member 1457555617-Sep-19 20:42
Member 1457555617-Sep-19 20:42 
AnswerRe: MFC VC++ Pin
Victor Nijegorodov17-Sep-19 20:59
Victor Nijegorodov17-Sep-19 20:59 
GeneralRe: MFC VC++ Pin
Member 1457555617-Sep-19 21:06
Member 1457555617-Sep-19 21:06 
GeneralRe: MFC VC++ Pin
Victor Nijegorodov17-Sep-19 21:43
Victor Nijegorodov17-Sep-19 21:43 
GeneralRe: MFC VC++ Pin
Member 1457555617-Sep-19 23:35
Member 1457555617-Sep-19 23:35 
GeneralRe: MFC VC++ Pin
Victor Nijegorodov18-Sep-19 0:24
Victor 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
Member 1457555617-Sep-19 21:22 
GeneralRe: MFC VC++ Pin
Victor Nijegorodov17-Sep-19 21:39
Victor 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
Member 1457555617-Sep-19 23:49 
GeneralRe: MFC VC++ Pin
CPallini18-Sep-19 0:39
mveCPallini18-Sep-19 0:39 
Quote:
Is this concept similar for CWinApp::InitInstance . Even when I commented this line my application still works. why?

There are two alternative explanations:
  1. The CWinApp::InitInstance does nothing, so it is safe to discard its call.
  2. InitInstance does perform some initialization that now is missing in your application. Your application may run fine, at the moment, (for instance because it doesn't need such initializations) but this is definitely not a safe scenario.

Bottom line: if they (Microsoft) do invoke CWinApp::InitInstance in their code samples (and in generated code) then I would do the same.

Quote:
hy do we assign the address of the dialog to m_pMainWnd?

I know m_pMainWnd is a CWnd* m_pMainWnd.
Possibly because the dialog it is the application main window.
AnswerRe: MFC VC++ Pin
Victor Nijegorodov17-Sep-19 21:47
Victor Nijegorodov17-Sep-19 21:47 
GeneralRe: MFC VC++ Pin
Stefan_Lang17-Sep-19 22:40
Stefan_Lang17-Sep-19 22:40 
QuestionUnresolved extern "dwTlsIndex" exported function in dll Pin
ForNow17-Sep-19 2:41
ForNow17-Sep-19 2:41 

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.