Click here to Skip to main content
15,796,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionUsing activex controls Pin
Rhett860616-Oct-08 11:45
Rhett860616-Oct-08 11:45 
Question_beginthread vs _beginthreadex -- FYI Pin
bulg16-Oct-08 11:34
bulg16-Oct-08 11:34 
AnswerRe: _beginthread vs _beginthreadex -- FYI Pin
Mark Salsbery16-Oct-08 11:44
Mark Salsbery16-Oct-08 11:44 
QuestionA Very Simple MFC Application Pin
BobInNJ16-Oct-08 8:57
BobInNJ16-Oct-08 8:57 
AnswerRe: A Very Simple MFC Application Pin
led mike16-Oct-08 9:08
led mike16-Oct-08 9:08 
GeneralRe: A Very Simple MFC Application Pin
BobInNJ16-Oct-08 10:54
BobInNJ16-Oct-08 10:54 
AnswerRe: A Very Simple MFC Application Pin
Mark Salsbery16-Oct-08 9:30
Mark Salsbery16-Oct-08 9:30 
GeneralRe: A Very Simple MFC Application Pin
BobInNJ16-Oct-08 11:06
BobInNJ16-Oct-08 11:06 
Mark,

Thanks for the response. First, the program never reaches the statement:
m_pMainWnd->DragAcceptedFiles();
Therefore, I do not think that me not setting m_pMainWnd is the problem. Second, my program
is based upon the program in Chapter 8 for Jeff Prosise book, "Programming Windows 95 with MFC" the first edition. In his program, which I could not get to work either, he did not set m_pMainWnd. It is my understanding (which might be all wrong) that when I call the constructor (via new) of CSingleDocTemplate then the window is created automatically and the pointer m_pMainWnd is set. Am I wrong about this?

Also, please look at my last post to see a more detailed explanation on how my program bombs out.

Thanks
Bob
GeneralRe: A Very Simple MFC Application Pin
Mark Salsbery16-Oct-08 11:19
Mark Salsbery16-Oct-08 11:19 
GeneralRe: A Very Simple MFC Application Pin
BobInNJ16-Oct-08 11:38
BobInNJ16-Oct-08 11:38 
GeneralRe: A Very Simple MFC Application Pin
Mark Salsbery16-Oct-08 11:42
Mark Salsbery16-Oct-08 11:42 
GeneralRe: A Very Simple MFC Application Pin
BobInNJ16-Oct-08 11:47
BobInNJ16-Oct-08 11:47 
GeneralRe: A Very Simple MFC Application Pin
Mark Salsbery16-Oct-08 11:53
Mark Salsbery16-Oct-08 11:53 
GeneralRe: A Very Simple MFC Application Pin
Mark Salsbery16-Oct-08 11:58
Mark Salsbery16-Oct-08 11:58 
GeneralRe: A Very Simple MFC Application Pin
led mike16-Oct-08 12:24
led mike16-Oct-08 12:24 
GeneralRe: A Very Simple MFC Application Pin
Mark Salsbery16-Oct-08 12:48
Mark Salsbery16-Oct-08 12:48 
GeneralRe: A Very Simple MFC Application Pin
BobInNJ16-Oct-08 12:26
BobInNJ16-Oct-08 12:26 
QuestionRe: A Very Simple MFC Application Pin
David Crow16-Oct-08 11:35
David Crow16-Oct-08 11:35 
AnswerRe: A Very Simple MFC Application Pin
BobInNJ16-Oct-08 11:42
BobInNJ16-Oct-08 11:42 
QuestionRe: A Very Simple MFC Application Pin
David Crow16-Oct-08 11:45
David Crow16-Oct-08 11:45 
AnswerRe: A Very Simple MFC Application Pin
BobInNJ16-Oct-08 11:48
BobInNJ16-Oct-08 11:48 
GeneralRe: A Very Simple MFC Application Pin
David Crow16-Oct-08 11:52
David Crow16-Oct-08 11:52 
GeneralRe: A Very Simple MFC Application Pin
BobInNJ16-Oct-08 12:20
BobInNJ16-Oct-08 12:20 
GeneralRe: A Very Simple MFC Application Pin
Mark Salsbery16-Oct-08 11:47
Mark Salsbery16-Oct-08 11:47 
AnswerRe: A Very Simple MFC Application Pin
BobInNJ16-Oct-08 13:41
BobInNJ16-Oct-08 13: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.