Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Beginning MFC (Prosise) Part III - Now What? :: C++

Beginning MFC (Prosise) Part III - Now What? :: C++

Scheduled Pinned Locked Moved C / C++ / MFC
c++learningdesigntoolsarchitecture
32 Posts 7 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A alex barylski

    I would suggest reading up on the SDK API...without a firm understanding of they work, it'll be really hard to pick MFC. It took me about 3 years to consider using MFC and actually try it, before that it was a failed attempt at OWL. SDK is easy to follow...top to bottom...like a DOS program with messages. MFC hides so much crap from you, but once you understand it, app development is sooo much faster. Considering you don't get stuck on goofy problems. I've only been dickin around in MFC for about 1 year and a bit and I can accomplish anything I would want probably not the best MFC way!!! but when it's compiled it all looks and acts the same. Yup...definetly understand SDK then migrate into MFC, but it sounds like you've already started with MFC so maybe try and intergrate the two togather. Ciao! "An expert is someone who has made all the mistakes in his or her field" - Niels Bohr

    C Offline
    C Offline
    Christian Graus
    wrote on last edited by
    #8

    HockeyDude wrote: would suggest reading up on the SDK API...without a firm understanding of they work, it'll be really hard to pick MFC. Do you really think so ? To me, having done it in reverse, that's like learning C before C++, doing it the hard way before the easy way. Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little.

    P A 2 Replies Last reply
    0
    • C Christian Graus

      kuphryn wrote: However, I am wait for an epiphany on those missing pieces I mentioned. It's not coming, I promise :-) Seriously, what bits worry you ? kuphryn wrote: I do not feel the same confident with MFC as I did when I was learning C++. That's not surprising. C++ is a well designed language that is made to be non-restrictive, to leave the design to the programmer. MFC is a framework in which you need to do things the MFC way. You also inherit (pardon the pun) about five classes for an SDI application, so it can be hard just figuring out which bit does what. A dialog app is only two classes in size though. kuphryn wrote: You mentioned Prosise's book as being the best. Yes, it undoubtedly the best MFC reference. How about teaching MFC. It could be that you're not so well suited to learning from books. Personally I hate being taught by another person, it's just a preference thing. So I can't really comment, because it's subjective. kuphryn wrote: With MFC, not only do I have to determine the right tools, but I also have understand the tools since everything is part of the one huge MFC framework. It is overwhelming right now. Like I said, you don't need to completely understand them to use them, you only need to understand the part you are using. So what is troubling you ? Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little.

      V Offline
      V Offline
      valikac
      wrote on last edited by
      #9

      Okay. I will begin with one general issue. I am not exactly sure where to map command and command UI, but most important, messages in general. Mainframe and documents can only handle command/UI messages. I cannot decide where to map command/UI mainframe, view, or documents. I am very rusty on classifying different messages, but that is not a problem because I can always look them up in Promise's book. The last issue I am not certain of is all the painting tools. Promise discussed a lot of core materials in the first five chapters. I lost sight of all th painting tools along the way. Yes, I read everything very carefully. There were just too many new materials to remember without having any prior knowledge MFC to use each tool as Prosise present it. When I was learning C++, I was able to read the new material and immediately apply it in a real program. That is how I learn, and it is when I am at my best. With MFC, I learn that "k" is a letter, but that is it. I have no idea that "i" and "j" are before and after "k." I really enjoy reading about document/view because it is something I caught on quick. I understand that architecture. It is the tools around MFC classes that I do not understand. The two pages of classes and functions in the first two pages of Promise's book hurts my brain. Now, the program I am working on has to do with read data from a text file, analyze the data, and output the modified data back to the file. For example, the program will read "a" and output "Letter: A." I am not sure the exact CView I need (scroll, edit, etc.). I am not sure what message I need to consider and what to map them. In general, I am not ready to implement the win32 console program to windows using MFC. Thanks, Kuphryn

      C 1 Reply Last reply
      0
      • V valikac

        Okay. I will begin with one general issue. I am not exactly sure where to map command and command UI, but most important, messages in general. Mainframe and documents can only handle command/UI messages. I cannot decide where to map command/UI mainframe, view, or documents. I am very rusty on classifying different messages, but that is not a problem because I can always look them up in Promise's book. The last issue I am not certain of is all the painting tools. Promise discussed a lot of core materials in the first five chapters. I lost sight of all th painting tools along the way. Yes, I read everything very carefully. There were just too many new materials to remember without having any prior knowledge MFC to use each tool as Prosise present it. When I was learning C++, I was able to read the new material and immediately apply it in a real program. That is how I learn, and it is when I am at my best. With MFC, I learn that "k" is a letter, but that is it. I have no idea that "i" and "j" are before and after "k." I really enjoy reading about document/view because it is something I caught on quick. I understand that architecture. It is the tools around MFC classes that I do not understand. The two pages of classes and functions in the first two pages of Promise's book hurts my brain. Now, the program I am working on has to do with read data from a text file, analyze the data, and output the modified data back to the file. For example, the program will read "a" and output "Letter: A." I am not sure the exact CView I need (scroll, edit, etc.). I am not sure what message I need to consider and what to map them. In general, I am not ready to implement the win32 console program to windows using MFC. Thanks, Kuphryn

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #10

        kuphryn wrote: I will begin with one general issue. I am not exactly sure where to map command and command UI, but most important, messages in general. Mainframe and documents can only handle command/UI messages. I cannot decide where to map command/UI mainframe, view, or documents. Messages are generally mapped in the class that relates to them - in other words, map messages to do with loading and saving files in your document class, map paint messages in your view or dialog class. As far as internal messages go, it's a non-issue because the class wizard will only show you the messages you can use anyhow. Command/UI messages should be mapped in the mainframe, because it's always there to process them, a view or document may not be. kuphryn wrote: The last issue I am not certain of is all the painting tools. Promise discussed a lot of core materials in the first five chapters. I lost sight of all th painting tools along the way. Well, which paint tools do you need to know about ? Painting always occurs in OnEraseBackground, OnPaint, OnDraw, or OnPrepareDC, and I'd suggest all the different tools, such as ExtFloodFill, Polygon, etc. are stuff you can learn one by one as you need them. kuphryn wrote: Yes, I read everything very carefully. There were just too many new materials to remember without having any prior knowledge MFC to use each tool as Prosise present it. When I was learning C++, I was able to read the new material and immediately apply it in a real program. That is how I learn, and it is when I am at my best. With MFC, I learn that "k" is a letter, but that is it. I have no idea that "i" and "j" are before and after "k." As an example, once you know that OnPaint is where a dialog is drawn, why can't you create a vanilla dialog app, override OnPaint and experiment, even though you have no idea how the framework gets to the point of processing that message ? kuphryn wrote: Now, the program I am working on has to do with read data from a text file, analyze the data, and output the modified data back to the file. For example, the program will read "a" and output "Letter: A." I am not sure the exact CView I need (scroll, edit, etc.). I am not sure what message I need to consider and what to map them. In general, I am not ready to implement the win32 console program to windows using MFC. First of all I would still use std iostreams to read the file, and then I wo

        V 1 Reply Last reply
        0
        • C Christian Graus

          kuphryn wrote: I will begin with one general issue. I am not exactly sure where to map command and command UI, but most important, messages in general. Mainframe and documents can only handle command/UI messages. I cannot decide where to map command/UI mainframe, view, or documents. Messages are generally mapped in the class that relates to them - in other words, map messages to do with loading and saving files in your document class, map paint messages in your view or dialog class. As far as internal messages go, it's a non-issue because the class wizard will only show you the messages you can use anyhow. Command/UI messages should be mapped in the mainframe, because it's always there to process them, a view or document may not be. kuphryn wrote: The last issue I am not certain of is all the painting tools. Promise discussed a lot of core materials in the first five chapters. I lost sight of all th painting tools along the way. Well, which paint tools do you need to know about ? Painting always occurs in OnEraseBackground, OnPaint, OnDraw, or OnPrepareDC, and I'd suggest all the different tools, such as ExtFloodFill, Polygon, etc. are stuff you can learn one by one as you need them. kuphryn wrote: Yes, I read everything very carefully. There were just too many new materials to remember without having any prior knowledge MFC to use each tool as Prosise present it. When I was learning C++, I was able to read the new material and immediately apply it in a real program. That is how I learn, and it is when I am at my best. With MFC, I learn that "k" is a letter, but that is it. I have no idea that "i" and "j" are before and after "k." As an example, once you know that OnPaint is where a dialog is drawn, why can't you create a vanilla dialog app, override OnPaint and experiment, even though you have no idea how the framework gets to the point of processing that message ? kuphryn wrote: Now, the program I am working on has to do with read data from a text file, analyze the data, and output the modified data back to the file. For example, the program will read "a" and output "Letter: A." I am not sure the exact CView I need (scroll, edit, etc.). I am not sure what message I need to consider and what to map them. In general, I am not ready to implement the win32 console program to windows using MFC. First of all I would still use std iostreams to read the file, and then I wo

          V Offline
          V Offline
          valikac
          wrote on last edited by
          #11

          Thanks! You brought up something very important. You brought up the issue of not having to use CFILE and serialize. I thought all data read from and written to a file must be "serialized." How can I read a file using using CFILE? I agree TextOut is the way to go too. Kuphryn

          C N 2 Replies Last reply
          0
          • V valikac

            Thanks! You brought up something very important. You brought up the issue of not having to use CFILE and serialize. I thought all data read from and written to a file must be "serialized." How can I read a file using using CFILE? I agree TextOut is the way to go too. Kuphryn

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #12

            kuphryn wrote: How can I read a file using using CFILE? I only vaguely know, because iostream is not broken, and I prefer to use the standard library. I believe the mechanism is very similar. kuphryn wrote: I thought all data read from and written to a file must be "serialized." No, Prosise would present that only because it's part of MFC, but all the standard library is still there at your disposal. Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little.

            1 Reply Last reply
            0
            • V valikac

              Thanks! You brought up something very important. You brought up the issue of not having to use CFILE and serialize. I thought all data read from and written to a file must be "serialized." How can I read a file using using CFILE? I agree TextOut is the way to go too. Kuphryn

              N Offline
              N Offline
              Nish Nishant
              wrote on last edited by
              #13

              use CFile::Read and CFile::Write Nish It's seven o'clock On the dot I'm in my drop top Cruisin' the streets - Oh yeah I got a real pretty, pretty little thing that's waiting for me

              C 1 Reply Last reply
              0
              • N Nish Nishant

                use CFile::Read and CFile::Write Nish It's seven o'clock On the dot I'm in my drop top Cruisin' the streets - Oh yeah I got a real pretty, pretty little thing that's waiting for me

                C Offline
                C Offline
                Christian Graus
                wrote on last edited by
                #14

                Nish [BusterBoy] wrote: It's seven o'clock On the dot I'm in my drop top Cruisin' the streets - Oh yeah I got a real pretty, pretty little thing that's waiting for me I've asked before - who wrote the above ? Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little.

                N 2 Replies Last reply
                0
                • V valikac

                  Hi. I began study MFC programming from Prosise two months ago. I finished the first two part of the book and will begin Part III. To be honest, I still cannot design a program of *my own* and implement it using MFC. I read reviews about MFC books including Prosise, Jones, and Deitel. I see again and again that one of the most difficult part of teaching MFC is to *not* discuss AppWizard and ClassWizard. Prosise does it by chapter 4. Nonetheless, Prosise's book is an ideal MFC *reference*. Anyways, I learned quite a bit from reading the first two part. I really appreciate the document/view architecture. I want to start implementing my win32 console programs into MFC so bad. I can just *feel* it, but I cannot get it done. There are many missing pieces in this puzzle. I can picture the final results, but there are so many missing pieces (how?, why?, what?, when?). I have no idea how to gather all the missing pieces. I first began programming (ever) as well as programming using C++ last fall semester. C++ caught my interest quick. Learning MFC, for some reason, is not the same. I cannot apply the same formula of *diving in*, which was how I became so proficient with C++ in both design and implementation. I can solve most problems using C++ (except for big projects). One reason, I think, is because there are *too many tools* in MFC. I can say I have seen close to just about everything there is to see in C++. I tried again and again to get apply the same strategy to MFC, but it does not seem to work. So here I am, beginning Part III from Prosise's book and howing no is lost. What are my options? I can considering Jones' Introduction to MFC Programming with Visual C++. If nothing else works, I will most likely go a different direction (Jones) and then return to Promise. Kuphryn

                  I Offline
                  I Offline
                  Imran Farooqui
                  wrote on last edited by
                  #15

                  kuphryn wrote: Hi. I began study MFC programming from Prosise two months ago. I finished the first two part of the book and will begin Part III. To be honest, I still cannot design a program of *my own* and implement it using MFC. Don't worry, this is not a problem only with you. This is the same problem every newbie of MFC/VC++ encounters. And among many reasons of the popularity of JAVA this is also the one. There is absolutely no fault of the writers of books you named above. The main reason is the complexity of MFC and the absence of CodeDOM in VC++. Imran Farooqui

                  C N 2 Replies Last reply
                  0
                  • C Christian Graus

                    Nish [BusterBoy] wrote: It's seven o'clock On the dot I'm in my drop top Cruisin' the streets - Oh yeah I got a real pretty, pretty little thing that's waiting for me I've asked before - who wrote the above ? Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little.

                    N Offline
                    N Offline
                    Nish Nishant
                    wrote on last edited by
                    #16

                    It's a song by Usher called Nice and slow. http://display.lyrics.astraweb.com:2000/display.cgi?usher..my\_way..nice\_and\_slow Nish It's seven o'clock On the dot I'm in my drop top Cruisin' the streets - Oh yeah I got a real pretty, pretty little thing that's waiting for me

                    1 Reply Last reply
                    0
                    • C Christian Graus

                      Nish [BusterBoy] wrote: It's seven o'clock On the dot I'm in my drop top Cruisin' the streets - Oh yeah I got a real pretty, pretty little thing that's waiting for me I've asked before - who wrote the above ? Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little.

                      N Offline
                      N Offline
                      Nish Nishant
                      wrote on last edited by
                      #17

                      Christian Graus wrote: I've asked before - who wrote the above ? You didnt seriously think that I wrote those words, did you? Nish :omg: It's seven o'clock On the dot I'm in my drop top Cruisin' the streets - Oh yeah I got a real pretty, pretty little thing that's waiting for me

                      C 1 Reply Last reply
                      0
                      • N Nish Nishant

                        Christian Graus wrote: I've asked before - who wrote the above ? You didnt seriously think that I wrote those words, did you? Nish :omg: It's seven o'clock On the dot I'm in my drop top Cruisin' the streets - Oh yeah I got a real pretty, pretty little thing that's waiting for me

                        C Offline
                        C Offline
                        Christian Graus
                        wrote on last edited by
                        #18

                        Nish [BusterBoy] wrote: You didnt seriously think that I wrote those words, did you? No, I presumed it was a song, I just wondered which. Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little.

                        N 1 Reply Last reply
                        0
                        • I Imran Farooqui

                          kuphryn wrote: Hi. I began study MFC programming from Prosise two months ago. I finished the first two part of the book and will begin Part III. To be honest, I still cannot design a program of *my own* and implement it using MFC. Don't worry, this is not a problem only with you. This is the same problem every newbie of MFC/VC++ encounters. And among many reasons of the popularity of JAVA this is also the one. There is absolutely no fault of the writers of books you named above. The main reason is the complexity of MFC and the absence of CodeDOM in VC++. Imran Farooqui

                          C Offline
                          C Offline
                          Christian Graus
                          wrote on last edited by
                          #19

                          Imran Farooqui wrote: And among many reasons of the popularity of JAVA this is also the one. Did you say this with a straight face ? Popularity of Java amongst whom ? :laugh: Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little.

                          I 1 Reply Last reply
                          0
                          • C Christian Graus

                            Imran Farooqui wrote: And among many reasons of the popularity of JAVA this is also the one. Did you say this with a straight face ? Popularity of Java amongst whom ? :laugh: Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little.

                            I Offline
                            I Offline
                            Imran Farooqui
                            wrote on last edited by
                            #20

                            I mean that complexities involve in MFC and its HUGE learning curve are also some reason that many people looks towards JAVA. (Personally i dislike JAVA as I am a proud CPian). But if you ask one group of students to learn JAVA and other to learn MFC. Then after 6/7 months you give them a mini project. The group of people that learn Java will make this project much more quicker and easily than the people who are learning VC++. Imran Farooqui

                            N 1 Reply Last reply
                            0
                            • C Christian Graus

                              Nish [BusterBoy] wrote: You didnt seriously think that I wrote those words, did you? No, I presumed it was a song, I just wondered which. Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little.

                              N Offline
                              N Offline
                              Nish Nishant
                              wrote on last edited by
                              #21

                              Christian Graus wrote: No, I presumed it was a song, I just wondered which. Whew! I am glad of that :-) Nish p.s. I can't connect to sonork now! It's seven o'clock On the dot I'm in my drop top Cruisin' the streets - Oh yeah I got a real pretty, pretty little thing that's waiting for me

                              1 Reply Last reply
                              0
                              • I Imran Farooqui

                                kuphryn wrote: Hi. I began study MFC programming from Prosise two months ago. I finished the first two part of the book and will begin Part III. To be honest, I still cannot design a program of *my own* and implement it using MFC. Don't worry, this is not a problem only with you. This is the same problem every newbie of MFC/VC++ encounters. And among many reasons of the popularity of JAVA this is also the one. There is absolutely no fault of the writers of books you named above. The main reason is the complexity of MFC and the absence of CodeDOM in VC++. Imran Farooqui

                                N Offline
                                N Offline
                                Nish Nishant
                                wrote on last edited by
                                #22

                                Imran Farooqui wrote: And among many reasons of the popularity of JAVA this is also the one Imran Farooqui wrote: The main reason is the complexity of MFC and the absence of CodeDOM in VC++. :confused: :confused: Java has CodeDOM???? I thought the better java programmers used emacs and linux. It was always the poor ones who used VJ++. Nish It's seven o'clock On the dot I'm in my drop top Cruisin' the streets - Oh yeah I got a real pretty, pretty little thing that's waiting for me

                                1 Reply Last reply
                                0
                                • C Christian Graus

                                  HockeyDude wrote: would suggest reading up on the SDK API...without a firm understanding of they work, it'll be really hard to pick MFC. Do you really think so ? To me, having done it in reverse, that's like learning C before C++, doing it the hard way before the easy way. Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little.

                                  P Offline
                                  P Offline
                                  Paul M Watt
                                  wrote on last edited by
                                  #23

                                  I think the advantage to learning the WIN32 APIs through raw SDK programming is that you learn the purpose of each of the functions, messages and other pieces that make up a Windows application. With that said, MFC and WTL are structured around the SDK in an object-oriented way and are surely a superior way to develop Windows applications, but by knowing and thouroughly understanding the SDK, it can be understood what these two frameworks are trying to accomplish. Then when you want to try to implement something that the original designers of MFC and WTL had not anticipated, you can tackle the problem with your base knowledge. While I agree that SDK programming is the harder way to develop a Windows application, I think that the comparison of "C : C++ is like SDK : MFC" falls apart because going from C to object-oriented programming in C++ is a completely new way of thinking. MFC is simply an object-oriented wrapper around concepts and restraints that are created in the SDK. This is just my opinion though.

                                  C 1 Reply Last reply
                                  0
                                  • I Imran Farooqui

                                    I mean that complexities involve in MFC and its HUGE learning curve are also some reason that many people looks towards JAVA. (Personally i dislike JAVA as I am a proud CPian). But if you ask one group of students to learn JAVA and other to learn MFC. Then after 6/7 months you give them a mini project. The group of people that learn Java will make this project much more quicker and easily than the people who are learning VC++. Imran Farooqui

                                    N Offline
                                    N Offline
                                    Nish Nishant
                                    wrote on last edited by
                                    #24

                                    Imran Farooqui wrote: But if you ask one group of students to learn JAVA and other to learn MFC This is not a fair comparison. java is a programming language. MFC is a class library. Tell them to study java and c++, one for each group. or actually tell them all to study both. The ones who dont get good at C++ in 6 months would be bad anyway, so let them learn java :-) Let the others then start with MFC or ATL or whatever Nish It's seven o'clock On the dot I'm in my drop top Cruisin' the streets - Oh yeah I got a real pretty, pretty little thing that's waiting for me

                                    1 Reply Last reply
                                    0
                                    • P Paul M Watt

                                      I think the advantage to learning the WIN32 APIs through raw SDK programming is that you learn the purpose of each of the functions, messages and other pieces that make up a Windows application. With that said, MFC and WTL are structured around the SDK in an object-oriented way and are surely a superior way to develop Windows applications, but by knowing and thouroughly understanding the SDK, it can be understood what these two frameworks are trying to accomplish. Then when you want to try to implement something that the original designers of MFC and WTL had not anticipated, you can tackle the problem with your base knowledge. While I agree that SDK programming is the harder way to develop a Windows application, I think that the comparison of "C : C++ is like SDK : MFC" falls apart because going from C to object-oriented programming in C++ is a completely new way of thinking. MFC is simply an object-oriented wrapper around concepts and restraints that are created in the SDK. This is just my opinion though.

                                      C Offline
                                      C Offline
                                      Christian Graus
                                      wrote on last edited by
                                      #25

                                      kilowatt wrote: While I agree that SDK programming is the harder way to develop a Windows application, I think that the comparison of "C : C++ is like SDK : MFC" falls apart because going from C to object-oriented programming in C++ is a completely new way of thinking. MFC is simply an object-oriented wrapper around concepts and restraints that are created in the SDK. This is just my opinion though. You're right, of course, but the example is there, in both cases people suggest the harder alternative should be learned first. Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little.

                                      1 Reply Last reply
                                      0
                                      • C Christian Graus

                                        HockeyDude wrote: would suggest reading up on the SDK API...without a firm understanding of they work, it'll be really hard to pick MFC. Do you really think so ? To me, having done it in reverse, that's like learning C before C++, doing it the hard way before the easy way. Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little.

                                        A Offline
                                        A Offline
                                        alex barylski
                                        wrote on last edited by
                                        #26

                                        I made the initial transition from VB to Borland C++...OWL was chinese to me...I picked up the C++ lanuage constructs(??) quick cuz they're the same in most langs...the OWL really through me off though...The createWindow functions compared to VB's click and drag were very foriegn to me. I later bought (without really knowning what it was) Win 95 programming API bible, which was much easier to follow. The code samples taugh me all the in and outs of windows programming. Once I understood what the CreateWindow function actually did...and the parameters actually meant...MFC was much easier to learn then when I tried OWL withouth knowledge of the API... Everybody's different though...I don't imagine my experience in VB helped, cuz it really only made me think....god...programming is easy...which...is a totally different story in C++. Cheers! :) "An expert is someone who has made all the mistakes in his or her field" - Niels Bohr

                                        1 Reply Last reply
                                        0
                                        • V valikac

                                          Hi. I began study MFC programming from Prosise two months ago. I finished the first two part of the book and will begin Part III. To be honest, I still cannot design a program of *my own* and implement it using MFC. I read reviews about MFC books including Prosise, Jones, and Deitel. I see again and again that one of the most difficult part of teaching MFC is to *not* discuss AppWizard and ClassWizard. Prosise does it by chapter 4. Nonetheless, Prosise's book is an ideal MFC *reference*. Anyways, I learned quite a bit from reading the first two part. I really appreciate the document/view architecture. I want to start implementing my win32 console programs into MFC so bad. I can just *feel* it, but I cannot get it done. There are many missing pieces in this puzzle. I can picture the final results, but there are so many missing pieces (how?, why?, what?, when?). I have no idea how to gather all the missing pieces. I first began programming (ever) as well as programming using C++ last fall semester. C++ caught my interest quick. Learning MFC, for some reason, is not the same. I cannot apply the same formula of *diving in*, which was how I became so proficient with C++ in both design and implementation. I can solve most problems using C++ (except for big projects). One reason, I think, is because there are *too many tools* in MFC. I can say I have seen close to just about everything there is to see in C++. I tried again and again to get apply the same strategy to MFC, but it does not seem to work. So here I am, beginning Part III from Prosise's book and howing no is lost. What are my options? I can considering Jones' Introduction to MFC Programming with Visual C++. If nothing else works, I will most likely go a different direction (Jones) and then return to Promise. Kuphryn

                                          V Offline
                                          V Offline
                                          valikac
                                          wrote on last edited by
                                          #27

                                          Thanks guys. Christian Graus made a good point. He said, "C++ is a well designed language that is made to be non-restrictive, to leave the design to the programmer. MFC is a framework in which you need to do things the MFC way." Is API programming *similar* to C++? I thinking the best way for me to learn windows programming is to approach it from *low-level*. In other words, I think I would master it if I can just start coding everything from scratch instead of using classes from MFC. I believe one reason I cannot understand all MFC classes and functions is because I do not know what *they actually do* and how. I am used to designing and implementing my own classes. I prefer to design my own classes for later use, like a personal C++ library. With MFC, I have to not only learn a huge framework of classes, but I have to follow a rule that the design have set. That is very limiting. I do not have problems with the framework. It is the vast number of classes in MFC that makes it difficult for me to see everything that is going on. For example, I know class X handles a specific job. I can tell instantiate an object X or override class X, but I lack the knowledge of how things surrounding class X relate to it. Moreover, I do not know class X well enough to see its potential. Kuphryn P.S. I think I have to change track because I just cannot produce anything with MFC right now. Something has gone very wrong during the last two months of my studying from Prosise's. Part III of his book is about discusses topics beyond basics. So according to his agenda, I should be able to produce result by now. So that leaves two choice: Jones' or API. I will most likely try Jones' first. If that too leads me nowhere, then API will it is. Kuphryn

                                          R 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups