Click here to Skip to main content
15,913,773 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Re Discovering DLLs Functions and Parameters Pin
Anonymous14-Jan-03 3:55
Anonymous14-Jan-03 3:55 
QuestionAny ideas? Pin
Joshua Nussbaum12-Jan-03 19:21
Joshua Nussbaum12-Jan-03 19:21 
AnswerRe: Any ideas? Pin
Moak12-Jan-03 19:37
Moak12-Jan-03 19:37 
AnswerRe: Any ideas? Pin
Nitron13-Jan-03 3:38
Nitron13-Jan-03 3:38 
GeneralWants to develop Intrusion Detection System(IDS) Pin
summo12-Jan-03 19:05
summo12-Jan-03 19:05 
GeneralRe: Wants to develop Intrusion Detection System(IDS) Pin
geo_m13-Jan-03 0:21
geo_m13-Jan-03 0:21 
GeneralRe: Wants to develop Intrusion Detection System(IDS) Pin
Dana Epp15-Jan-03 9:09
Dana Epp15-Jan-03 9:09 
GeneralTemporal position of pMainFrame->LoadFrame & DialogBar Control Updates... Pin
JennyP12-Jan-03 18:52
JennyP12-Jan-03 18:52 
Hello,

This is a continuation of my earlier question. I've reposted because I have more information and my previous post was a bit misleading. I found that my application crashes during the "LoadFrame" statement below located in MyApp.cpp.

// create main MDI Frame window
CMainFrame* pMainFrame = new CMainFrame;
if (!pMainFrame->LoadFrame(IDR_MAINFRAME))
return FALSE;
m_pMainWnd = pMainFrame;

It seems that my DialogBar's controls are updating themselves before LoadFrame returns and the next statement executes (m_pMainWnd = pMainFrame). When these controls update, I'm trying to get information from the (MDI) Document to fill them, and the program crashes upon the execution of the following CDialogBar code (because m_pMainWnd is null at the time):

CGoalsDoc* pDoc = (CGoalsDoc*)((CMainFrame *)AfxGetApp()->m_pMainWnd)->GetActiveFrame()->GetActiveDocument();

Why are my controls trying to update (e.g., OnKillFocusEditBox1) before the main frame has been created and "m_pMainWnd" has a value? Is there an easy way around this? I don't think I monkeyed with the MFC Wizard too much, but I may have changed something small, yet important.

Thanks!

JennyP
GeneralRe: Temporal position of pMainFrame->LoadFrame & DialogBar Control Updates... Pin
jhwurmbach12-Jan-03 22:52
jhwurmbach12-Jan-03 22:52 
GeneralRe: Temporal position of pMainFrame->LoadFrame & DialogBar Control Updates... Pin
JennyP13-Jan-03 5:56
JennyP13-Jan-03 5:56 
QuestionButton message - half clicked? Pin
Moak12-Jan-03 18:37
Moak12-Jan-03 18:37 
AnswerRe: Button message - half clicked? Pin
JennyP12-Jan-03 18:59
JennyP12-Jan-03 18:59 
GeneralRe: Button message - half clicked (or button without focus)? Pin
Moak12-Jan-03 19:18
Moak12-Jan-03 19:18 
Generalprecise delay--real time controller Pin
Sean111_Yang12-Jan-03 15:55
sussSean111_Yang12-Jan-03 15:55 
GeneralRe: precise delay--real time controller Pin
Taka Muraoka12-Jan-03 16:13
Taka Muraoka12-Jan-03 16:13 
GeneralRe: precise delay--real time controller Pin
Anonymous12-Jan-03 21:58
Anonymous12-Jan-03 21:58 
GeneralRe: precise delay--real time controller Pin
Nitron13-Jan-03 3:41
Nitron13-Jan-03 3:41 
GeneralNeed help calling fortran dll from VC Pin
Pecan20412-Jan-03 14:45
Pecan20412-Jan-03 14:45 
GeneralRe: Need help calling fortran dll from VC Pin
Joaquín M López Muñoz12-Jan-03 20:16
Joaquín M López Muñoz12-Jan-03 20:16 
GeneralRe: Need help calling fortran dll from VC Pin
Pecan20413-Jan-03 2:39
Pecan20413-Jan-03 2:39 
QuestionDocument not created yet??? Pin
JennyP12-Jan-03 13:02
JennyP12-Jan-03 13:02 
AnswerRe: Document not created yet??? Pin
JennyP12-Jan-03 15:27
JennyP12-Jan-03 15:27 
GeneralRe: Document not created yet??? Pin
xxhimanshu12-Jan-03 17:58
xxhimanshu12-Jan-03 17:58 
AnswerRe: Document not created yet??? Pin
Steve Mayfield12-Jan-03 19:09
Steve Mayfield12-Jan-03 19:09 
GeneralOwner draw combo box headaches Pin
Aaron Schaefer12-Jan-03 12:13
Aaron Schaefer12-Jan-03 12:13 

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.