Thread: Help on learning GUI fast.

  1. #1
    Registered User
    Join Date
    Nov 2005
    Posts
    9

    Help on learning GUI fast.

    Hi,

    I need to create a window that i can use to display image.
    Sometimes, i need another window to display 2 images simultaneously.

    I tried looking for MFC tutorials but couldnt find a good one.
    Anyone know where i can find a 24 hr tutorial to mastering MFC?
    if possible, where can i find such a MFC program that does what i need.


    Thanks in advance!

  2. #2
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Anyone know where i can find a 24 hr tutorial to mastering MFC?
    Anyone know where I can find a 24 hour tutorial to master anything? I have no idea what your current knowledge is of programming, but unless it's at the point where you're extremely good at MFC... I don't think you'll be mastering it 24 hours from now.

    There are programs that do what you're asking already, try googling it. If you can't find anything, I'm sure there is someone here that knows of one off the top of their head.

    Edit: Yes, I did originally put "know idea"... I'm weird like that.
    Last edited by SlyMaelstrom; 02-26-2006 at 06:55 AM.
    Sent from my iPadŽ

  3. #3
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Anyone know where I can find a 24 hour tutorial to master anything?
    Mastering tic-tac-toe shouldnt take more than 24 minutes, or even 2.4 minutes
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  4. #4
    Registered User motarded's Avatar
    Join Date
    Feb 2006
    Location
    Djibouti, Africa
    Posts
    14
    MFC = ?

    On the topic of learning about GUI's....does anyone have a link to a good tutorial? Unfortunately, the book option isn't an option in Africa. I'm not looking for a 24 hour fix or anything like that...but I would like to learn how to do more with windows applications, as opposed to DOS based programs.

  5. #5
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >I tried looking for MFC tutorials but couldnt find a good one.
    When your expectations are completely unrealistic, it's impossible to find good help.

    >Anyone know where i can find a 24 hr tutorial to mastering MFC?
    The time and effort it takes to master MFC is probably equivalent to the time and effort it takes to master a large portion of C++. In other words, several years at the very least. Anyone who tries to sell you a 24 hour plan for learning something so complex is a liar. Which means you can probably find a book or two that says something to the effect of "Learn MFC in 24 hours!".

    >MFC = ?
    Microsoft Foundation Classes. It's a C++ wrapper around the Win32 API.
    My best code is written with the delete key.

  6. #6
    Registered User
    Join Date
    Nov 2005
    Posts
    9
    yeah..MFC is the one found in visual basic C++.

    I have experience in java gui programming. do u think it will help me master MFC quickly?

  7. #7
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    I have experience in java gui programming. do u think it will help me master MFC quickly?
    The logic, not the syntax. Yes, it will make the learning process quicker, and you could probably write your code while you're simply looking up the function syntax, but regardless, 24 hours is unrealistic.
    Sent from my iPadŽ

  8. #8
    Software engineer
    Join Date
    Aug 2005
    Location
    Oregon
    Posts
    283
    You could just learn the C++/CLI which has drag/drop form support. It adds an extra runtime to your application, but C++ has a new runtime as well.

  9. #9
    Registered User
    Join Date
    Apr 2003
    Posts
    2,663
    I have experience in java gui programming. do u think it will help me master MFC quickly?
    No. You need to know C++ very well before you will be able to master MFC, especially pointers, inheritance, and polymorphism. Moving from Java to C++ is difficult.

    MFC = ?
    Windows GUI programming was originally written in C. MFC is the Microsoft's C++ version of windows GUI programming.

  10. #10
    semi-colon generator ChaosEngine's Avatar
    Join Date
    Sep 2005
    Location
    Chch, NZ
    Posts
    597
    Quote Originally Posted by dxfoo
    You could just learn the C++/CLI which has drag/drop form support. It adds an extra runtime to your application, but C++ has a new runtime as well.
    C++ does not have a "new runtime". C++/CLI is a .Net language. Standard C++ hasn't changed.

    If you want a quick GUI, use C# or java. you won't learn MFC programming in 24 hrs
    "I saw a sign that said 'Drink Canada Dry', so I started"
    -- Brendan Behan

    Free Compiler: Visual C++ 2005 Express
    If you program in C++, you need Boost. You should also know how to use the Standard Library (STL). Want to make games? After reading this, I don't like WxWidgets anymore. Want to add some scripting to your App?

  11. #11
    Registered User
    Join Date
    Aug 2003
    Posts
    470
    I need to create a window that i can use to display image.
    Sometimes, i need another window to display 2 images simultaneously.

    I tried looking for MFC tutorials but couldnt find a good one.
    Anyone know where i can find a 24 hr tutorial to mastering MFC?
    if possible, where can i find such a MFC program that does what i need.
    Either display the image by overriding the OnDraw(CDC* pDC) of a CView subclass or, if the image doesn't change, you could place the image onto a form view or dialog. Lookup CView, CBitmap, CDC, CDialog, and CFormView in your documentation for MFC. (The documentation also has a genera library overview that you'd want to read first).

  12. #12
    chococoder
    Join Date
    Nov 2004
    Posts
    515
    Quote Originally Posted by itachi
    yeah..MFC is the one found in visual basic C++.
    Never heard of that product

    I have experience in java gui programming. do u think it will help me master MFC quickly?
    I don't know what "u" thinks, but I don't think so.
    Swing is very different from MFC even at a conceptual level, let alone an implementation level.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. win32 GUI components
    By abraham2119 in forum Windows Programming
    Replies: 5
    Last Post: 06-18-2009, 10:18 AM
  2. Machine Learning with Lego Mindstorms
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 01-30-2009, 02:34 PM
  3. Is learning C/C++ worth it?
    By C/C++ Learner in forum A Brief History of Cprogramming.com
    Replies: 44
    Last Post: 11-05-2008, 03:55 PM
  4. Fun Learning a New Language
    By UnregdRegd in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 09-30-2003, 10:03 PM
  5. learning to code
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 10-30-2001, 08:49 AM