Thread: HELP ME PLEASE! mfc and C++

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    6

    HELP ME PLEASE! mfc and C++

    i have a complex C++ program written to take various inputs from a user in a black screen: using the basic cout, cin thing. And it pops up a window to render a 3d image of the situation using opengl.

    The only problem is that this is for show, and i need to make it user friendly, in other words use a form/dialog of some sort. I don't know anything about mfc, so i looked at a couple manuals, is there a way to just have a bunch of boxes for the users to input the 6 things i need, and then another set of to output various things on account of the C++ program's calculations.

    Any help is appreciated, even if you know a simple way of just getting the user inputs from the mfc dialog to be read by the C++ applet, but don't know how you would output them back on the MFC thing. thanks for your time

  2. #2
    Registered User
    Join Date
    Dec 2001
    Posts
    6
    anybody?

  3. #3
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    You can attach a member variable to each editbox on a dialog using the class wizard. When you want to obtain the values inputted from a user call UpdateData(TRUE), and if you want to update the values in an editbox to the values stored in the member variables you can call UpdateData(FALSE).
    zen

  4. #4
    Registered User
    Join Date
    Dec 2001
    Posts
    6
    thanks, although i have to read up on what you said

Popular pages Recent additions subscribe to a feed