Click here to Skip to main content
15,944,166 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reading Compressed AVI Video file Pin
ashwath197927-Feb-13 20:04
ashwath197927-Feb-13 20:04 
AnswerRe: Reading Compressed AVI Video file Pin
Shaheed Legion27-Feb-13 23:02
Shaheed Legion27-Feb-13 23:02 
GeneralRe: Reading Compressed AVI Video file Pin
ashwath19791-Mar-13 1:28
ashwath19791-Mar-13 1:28 
AnswerRe: Reading Compressed AVI Video file Pin
Shaheed Legion27-Mar-13 0:40
Shaheed Legion27-Mar-13 0:40 
QuestionInitInstance() Problem Pin
Anu_Bala25-Feb-13 19:19
Anu_Bala25-Feb-13 19:19 
AnswerRe: InitInstance() Problem Pin
Richard MacCutchan25-Feb-13 21:52
mveRichard MacCutchan25-Feb-13 21:52 
AnswerRe: InitInstance() Problem Pin
Shaheed Legion26-Feb-13 5:44
Shaheed Legion26-Feb-13 5:44 
AnswerRe: InitInstance() Problem Pin
«_Superman_»26-Feb-13 15:20
professional«_Superman_»26-Feb-13 15:20 
Normally, the CMainFrame object is constructed in the InitInstance method using the call -
VB
pDocTemplate = new CSingleDocTemplate(
    IDR_MAINFRAME,
    RUNTIME_CLASS(CSDIDoc),
    RUNTIME_CLASS(CMainFrame),       // main SDI frame window
    RUNTIME_CLASS(CSDIView));

Do you see this call in InitInstance?

If you don't see this, it means that the construction is being done elsewhere; your app class constructor perhaps.
If you do see the above code and you still have the behavior you mentioned, it could mean that some other CMainFrame instance is being constructed.
Whatever the case, it is not the correct way to do it.
«_Superman 
I love work. It gives me something to do between weekends.


Microsoft MVP (Visual C++) (October 2009 - September 2013)

Polymorphism in C

QuestionRe: InitInstance() Problem Pin
CPallini26-Feb-13 21:08
mveCPallini26-Feb-13 21:08 
AnswerRe: InitInstance() Problem Pin
Albert Holguin27-Feb-13 4:45
professionalAlbert Holguin27-Feb-13 4:45 
QuestionHandling WinHttp Redirects Pin
endemoniada25-Feb-13 15:57
endemoniada25-Feb-13 15:57 
SuggestionFix: Ribbon text displays inactive after migrating to VS2012 Pin
DataFlask25-Feb-13 13:48
DataFlask25-Feb-13 13:48 
QuestionRe: Fix: Ribbon text displays inactive after migrating to VS2012 Pin
Richard MacCutchan25-Feb-13 21:49
mveRichard MacCutchan25-Feb-13 21:49 
QuestionMemory leak Pin
a_matseevsky25-Feb-13 9:19
a_matseevsky25-Feb-13 9:19 
AnswerRe: Memory leak Pin
Richard Andrew x6425-Feb-13 10:11
professionalRichard Andrew x6425-Feb-13 10:11 
GeneralRe: Memory leak Pin
a_matseevsky25-Feb-13 16:07
a_matseevsky25-Feb-13 16:07 
GeneralRe: Memory leak Pin
Stephen Hewitt25-Feb-13 16:43
Stephen Hewitt25-Feb-13 16:43 
GeneralRe: Memory leak Pin
Richard Andrew x6426-Feb-13 9:11
professionalRichard Andrew x6426-Feb-13 9:11 
AnswerRe: Memory leak Pin
David Crow25-Feb-13 13:24
David Crow25-Feb-13 13:24 
AnswerRe: Memory leak Pin
Stefan_Lang26-Feb-13 4:04
Stefan_Lang26-Feb-13 4:04 
GeneralRe: Memory leak Pin
a_matseevsky26-Feb-13 10:59
a_matseevsky26-Feb-13 10:59 
GeneralRe: Memory leak Pin
Stefan_Lang26-Feb-13 22:44
Stefan_Lang26-Feb-13 22:44 
GeneralRe: Memory leak Pin
a_matseevsky27-Feb-13 2:09
a_matseevsky27-Feb-13 2:09 
GeneralRe: Memory leak Pin
Stefan_Lang27-Feb-13 2:52
Stefan_Lang27-Feb-13 2:52 
GeneralRe: Memory leak Pin
a_matseevsky27-Feb-13 11:44
a_matseevsky27-Feb-13 11:44 

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.