Click here to Skip to main content
16,004,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralOOP Question - Passing Data Between Objects Pin
AJ12320-Oct-01 13:35
AJ12320-Oct-01 13:35 
GeneralRe: OOP Question - Passing Data Between Objects Pin
Ben Burnett21-Oct-01 6:15
Ben Burnett21-Oct-01 6:15 
GeneralRe: OOP Question - Passing Data Between Objects Pin
Andrew Peace21-Oct-01 11:05
Andrew Peace21-Oct-01 11:05 
QuestionTaskbar? Pin
MaTrIX2k220-Oct-01 9:58
MaTrIX2k220-Oct-01 9:58 
AnswerRe: Taskbar? Pin
Michael P Butler20-Oct-01 11:13
Michael P Butler20-Oct-01 11:13 
GeneralRe: Taskbar? Pin
MaTrIX2k220-Oct-01 11:46
MaTrIX2k220-Oct-01 11:46 
GeneralVariables under different class Pin
Kuniva20-Oct-01 6:52
Kuniva20-Oct-01 6:52 
GeneralRe: Variables under different class Pin
Michael P Butler20-Oct-01 11:17
Michael P Butler20-Oct-01 11:17 
The easiest way is to declare the variables as public members of the class and then access them in the usual c++ way,

void CDialog1::Test()
{
    CDialog2 dlg;
     
    // set flag
    dlg.m_bTestFlag = TRUE;
    int nRet = dlg.DoModal();

    if(nRet == IDOK)
    {
       // get new state
       BOOL bTest = dlg.m_bTestFlag;
    }
}

GeneralFind a string in a file Pin
Maer72720-Oct-01 3:02
Maer72720-Oct-01 3:02 
GeneralRe: Find a string in a file Pin
NormDroid20-Oct-01 3:28
professionalNormDroid20-Oct-01 3:28 
GeneralRe: Find a string in a file Pin
Maer72720-Oct-01 3:58
Maer72720-Oct-01 3:58 
GeneralRe: Find a string in a file Pin
NormDroid20-Oct-01 4:02
professionalNormDroid20-Oct-01 4:02 
GeneralRe: Find a string in a file Pin
Maer72720-Oct-01 19:12
Maer72720-Oct-01 19:12 
GeneralPassing Pointers To Function In C++ Pin
AJ12320-Oct-01 2:26
AJ12320-Oct-01 2:26 
GeneralRe: Passing Pointers To Function In C++ Pin
Tim Deveaux20-Oct-01 5:04
Tim Deveaux20-Oct-01 5:04 
General*** Multiple Client Socket in MFC *** Pin
Salman Ahmad Khan20-Oct-01 0:24
Salman Ahmad Khan20-Oct-01 0:24 
GeneralRe: *** Multiple Client Socket in MFC *** Pin
NormDroid20-Oct-01 0:35
professionalNormDroid20-Oct-01 0:35 
GeneralRe: *** Multiple Client Socket in MFC *** Pin
Salman Ahmad Khan20-Oct-01 1:10
Salman Ahmad Khan20-Oct-01 1:10 
GeneralRe:First, learn TCP/IP! Pin
Masaaki Onishi20-Oct-01 11:51
Masaaki Onishi20-Oct-01 11:51 
GeneralRe: *** Multiple Client Socket in MFC *** Pin
20-Oct-01 12:38
suss20-Oct-01 12:38 
QuestionFor learning c++, which one will be you choice? Pin
flying20-Oct-01 0:05
flying20-Oct-01 0:05 
AnswerRe: For learning c++, which one will be you choice? Pin
NormDroid20-Oct-01 0:37
professionalNormDroid20-Oct-01 0:37 
GeneralLooking support for c++ in Linux Pin
Gaurav Lambole20-Oct-01 0:01
Gaurav Lambole20-Oct-01 0:01 
GeneralRe: Looking support for c++ in Linux Pin
markkuk21-Oct-01 19:47
markkuk21-Oct-01 19:47 
QuestionHow to destroy Array of Controls Pin
19-Oct-01 21:24
suss19-Oct-01 21:24 

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.