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

C / C++ / MFC

 
GeneralRe: Lowest Level of Graphics on Windows Pin
Captain Price26-Feb-13 23:26
professionalCaptain Price26-Feb-13 23:26 
AnswerRe: Lowest Level of Graphics on Windows Pin
Albert Holguin27-Feb-13 4:44
professionalAlbert Holguin27-Feb-13 4:44 
GeneralRe: Lowest Level of Graphics on Windows Pin
Captain Price27-Feb-13 5:00
professionalCaptain Price27-Feb-13 5:00 
AnswerRe: Lowest Level of Graphics on Windows Pin
Albert Holguin27-Feb-13 6:44
professionalAlbert Holguin27-Feb-13 6:44 
GeneralRe: Lowest Level of Graphics on Windows Pin
Captain Price27-Feb-13 17:21
professionalCaptain Price27-Feb-13 17:21 
GeneralRe: Lowest Level of Graphics on Windows Pin
Orjan Westin28-Feb-13 3:28
professionalOrjan Westin28-Feb-13 3:28 
AnswerRe: Lowest Level of Graphics on Windows Pin
Shaheed Legion27-Feb-13 5:38
Shaheed Legion27-Feb-13 5:38 
QuestionReading Compressed AVI Video file Pin
ashwath197925-Feb-13 19:48
ashwath197925-Feb-13 19:48 
AnswerRe: Reading Compressed AVI Video file Pin
_Flaviu25-Feb-13 20:42
_Flaviu25-Feb-13 20:42 
GeneralRe: Reading Compressed AVI Video file Pin
ashwath197926-Feb-13 1:26
ashwath197926-Feb-13 1:26 
AnswerRe: Reading Compressed AVI Video file Pin
Shaheed Legion26-Feb-13 5:02
Shaheed Legion26-Feb-13 5:02 
GeneralRe: Reading Compressed AVI Video file Pin
ashwath197926-Feb-13 21:56
ashwath197926-Feb-13 21:56 
AnswerRe: Reading Compressed AVI Video file Pin
Shaheed Legion26-Feb-13 23:50
Shaheed Legion26-Feb-13 23:50 
GeneralRe: Reading Compressed AVI Video file Pin
ashwath197927-Feb-13 2:07
ashwath197927-Feb-13 2:07 
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 

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.