Click here to Skip to main content
15,868,019 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Accessing a method in the Dlg object from the App object. Pin
David Crow10-Mar-08 5:30
David Crow10-Mar-08 5:30 
GeneralRe: Accessing a method in the Dlg object from the App object. Pin
Maxwell Chen10-Mar-08 5:30
Maxwell Chen10-Mar-08 5:30 
GeneralRe: Accessing a method in the Dlg object from the App object. Pin
LCI10-Mar-08 5:37
LCI10-Mar-08 5:37 
GeneralRe: Accessing a method in the Dlg object from the App object. Pin
Maxwell Chen10-Mar-08 5:39
Maxwell Chen10-Mar-08 5:39 
GeneralRe: Accessing a method in the Dlg object from the App object. Pin
LCI10-Mar-08 5:47
LCI10-Mar-08 5:47 
GeneralRe: Accessing a method in the Dlg object from the App object. Pin
David Crow10-Mar-08 6:38
David Crow10-Mar-08 6:38 
GeneralRe: Accessing a method in the Dlg object from the App object. Pin
toxcct10-Mar-08 6:26
toxcct10-Mar-08 6:26 
GeneralRe: Accessing a method in the Dlg object from the App object. Pin
Nathan Holt at EMOM10-Mar-08 7:06
Nathan Holt at EMOM10-Mar-08 7:06 
LCI wrote:
I have an MFC Dlg Application. Say the project is called Test.
Visual Studio creates a TestDlg.cpp and a Test.cpp among others.
I am finding that some initialization that i need to do in the Test.cpp involves me having to have access to a variable in the TestDlg.cpp.

I cannot do a static cast of the TestDlg.cpp can I?


I would add a CTestDlg member variable to CTestApp and change InitInstance to use that instead of one local to InitInstance.

Nathan
GeneralPrintWindow Pin
Soumyadipta10-Mar-08 4:08
Soumyadipta10-Mar-08 4:08 
GeneralRe: PrintWindow Pin
Cranky10-Mar-08 4:29
Cranky10-Mar-08 4:29 
GeneralRe: PrintWindow Pin
Soumyadipta10-Mar-08 4:32
Soumyadipta10-Mar-08 4:32 
GeneralRe: PrintWindow Pin
Ernest Laurentin10-Mar-08 4:38
Ernest Laurentin10-Mar-08 4:38 
GeneralRe: PrintWindow Pin
Soumyadipta10-Mar-08 4:46
Soumyadipta10-Mar-08 4:46 
GeneralRe: PrintWindow Pin
Soumyadipta10-Mar-08 5:08
Soumyadipta10-Mar-08 5:08 
GeneralRe: PrintWindow Pin
Ernest Laurentin10-Mar-08 8:40
Ernest Laurentin10-Mar-08 8:40 
GeneralMy Dll Injector Code Does Not Work-, listing processes and injecting .dll- Help! Pin
Mike Yurgalavage10-Mar-08 4:05
Mike Yurgalavage10-Mar-08 4:05 
GeneralRe: My Dll Injector Code Does Not Work-, listing processes and injecting .dll- Help! Pin
Stephen Hewitt10-Mar-08 15:11
Stephen Hewitt10-Mar-08 15:11 
GeneralRe: My Dll Injector Code Does Not Work-, listing processes and injecting .dll- Help! Pin
Mike Yurgalavage10-Mar-08 15:49
Mike Yurgalavage10-Mar-08 15:49 
GeneralRe: My Dll Injector Code Does Not Work-, listing processes and injecting .dll- Help! Pin
Stephen Hewitt10-Mar-08 15:51
Stephen Hewitt10-Mar-08 15:51 
GeneralRe: My Dll Injector Code Does Not Work-, listing processes and injecting .dll- Help! Pin
Mike Yurgalavage10-Mar-08 16:43
Mike Yurgalavage10-Mar-08 16:43 
GeneralRe: My Dll Injector Code Does Not Work-, listing processes and injecting .dll- Help! Pin
Stephen Hewitt10-Mar-08 17:57
Stephen Hewitt10-Mar-08 17:57 
GeneralRe: My Dll Injector Code Does Not Work-, listing processes and injecting .dll- Help! Pin
Stephen Hewitt10-Mar-08 17:43
Stephen Hewitt10-Mar-08 17:43 
GeneralRe: My Dll Injector Code Does Not Work-, listing processes and injecting .dll- Help! Pin
Mike Yurgalavage11-Mar-08 3:41
Mike Yurgalavage11-Mar-08 3:41 
GeneralRe: My Dll Injector Code Does Not Work-, listing processes and injecting .dll- Help! Pin
Mike Yurgalavage12-Mar-08 6:29
Mike Yurgalavage12-Mar-08 6:29 
Generalcreate an toolbar,not in any window or dialog box.. Pin
preeti sharma10-Mar-08 2:29
preeti sharma10-Mar-08 2:29 

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.