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. The Lounge
  3. MFC?

MFC?

Scheduled Pinned Locked Moved The Lounge
c++cssasp-netarchitecturequestion
23 Posts 15 Posters 3 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.
  • realJSOPR realJSOP

    Yeah, I meant MFC. I fixed it. :/

    ".45 ACP - because shooting twice is just silly" - JSOP, 2010
    -----
    You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
    -----
    When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

    J Offline
    J Offline
    Jochen Arndt
    wrote on last edited by
    #6

    You should fix it also in the post itself ;P Yes, I'm still using C++ and MFC. For platform independent C++ GUI applications I'm using Qt.

    1 Reply Last reply
    0
    • realJSOPR realJSOP

      I was kinda surprised to see that someone downloaded code for a MFC article I wrote in 2005 (blinking cells in Chris Maunder's grid control). Are people really still coding in C++/MVC?

      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
      -----
      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
      -----
      When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

      R Offline
      R Offline
      Ron Anders
      wrote on last edited by
      #7

      Me.

      1 Reply Last reply
      0
      • realJSOPR realJSOP

        I was kinda surprised to see that someone downloaded code for a MFC article I wrote in 2005 (blinking cells in Chris Maunder's grid control). Are people really still coding in C++/MVC?

        ".45 ACP - because shooting twice is just silly" - JSOP, 2010
        -----
        You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
        -----
        When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

        M Offline
        M Offline
        Maximilien
        wrote on last edited by
        #8

        Yep, doing most of our work in C++ and MFC. I'd like to switch to C# and some fancy UI toolkit, but the cost would be too great for no real advantages (at least right now).

        I'd rather be phishing!

        1 Reply Last reply
        0
        • realJSOPR realJSOP

          I was kinda surprised to see that someone downloaded code for a MFC article I wrote in 2005 (blinking cells in Chris Maunder's grid control). Are people really still coding in C++/MVC?

          ".45 ACP - because shooting twice is just silly" - JSOP, 2010
          -----
          You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
          -----
          When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

          D Offline
          D Offline
          den2k88
          wrote on last edited by
          #9

          VB6 and Win32 API (no ATL)...

          GCS d-- s-/++ a- C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- ++>+++ y+++*      Weapons extension: ma- k++ F+2 X

          K J 2 Replies Last reply
          0
          • D den2k88

            VB6 and Win32 API (no ATL)...

            GCS d-- s-/++ a- C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- ++>+++ y+++*      Weapons extension: ma- k++ F+2 X

            K Offline
            K Offline
            kmoorevs
            wrote on last edited by
            #10

            den2k88 wrote:

            VB6 and Win32 API

            You are not alone. I'm still maintaining a couple of VB6 applications (and around 80 or so add-on modules/utilities) that have been in use since 2K. Migration to .NET is an ongoing project starting with the smaller add-ons and tackling the main applications last. I figure I've got a few years at least before MS stops shipping the VB6 runtimes, then probably another couple more before my customers start adopting Windows XII...that will be about the time to retire! :) btw, I was the first hire in my company in 18 years ago and I've been the only programmer here (besides a couple of college students that really didn't contribute much) for the last 16 years so practically all of the old code is mine...at least I can understand it. :)

            "Go forth into the source" - Neal Morse

            1 Reply Last reply
            0
            • realJSOPR realJSOP

              I was kinda surprised to see that someone downloaded code for a MFC article I wrote in 2005 (blinking cells in Chris Maunder's grid control). Are people really still coding in C++/MVC?

              ".45 ACP - because shooting twice is just silly" - JSOP, 2010
              -----
              You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
              -----
              When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

              CPalliniC Offline
              CPalliniC Offline
              CPallini
              wrote on last edited by
              #11

              Quote:

              MFC?

              No, thanks.

              In testa che avete, signor di Ceprano?

              1 Reply Last reply
              0
              • realJSOPR realJSOP

                I was kinda surprised to see that someone downloaded code for a MFC article I wrote in 2005 (blinking cells in Chris Maunder's grid control). Are people really still coding in C++/MVC?

                ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                -----
                You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                -----
                When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                J Offline
                J Offline
                John M Drescher
                wrote on last edited by
                #12

                I switched to Qt in 2008 (mainly because of cross platform development). Although I do wish some of the stuff I had in MFC was available in Qt. At this point I probably have written an equal amount of code in both.

                John

                1 Reply Last reply
                0
                • realJSOPR realJSOP

                  I was kinda surprised to see that someone downloaded code for a MFC article I wrote in 2005 (blinking cells in Chris Maunder's grid control). Are people really still coding in C++/MVC?

                  ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                  -----
                  You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                  -----
                  When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                  E Offline
                  E Offline
                  Eytukan
                  wrote on last edited by
                  #13

                  There was a time, I thought my career would be just about Win32 MFC, COM/ATL. This got irrelevant, 5 years ago.

                  Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy Falcon.

                  M 1 Reply Last reply
                  0
                  • realJSOPR realJSOP

                    I was kinda surprised to see that someone downloaded code for a MFC article I wrote in 2005 (blinking cells in Chris Maunder's grid control). Are people really still coding in C++/MVC?

                    ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                    -----
                    You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                    -----
                    When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                    G Offline
                    G Offline
                    Gary Wheeler
                    wrote on last edited by
                    #14

                    John Simmons / outlaw programmer wrote:

                    Are people really still coding in C++/MFC?

                    While our recent UI's have been C#/WPF, all of our products contain some C++/MFC components, at least in the underlying Windows services that run our equipment. We also provide some interface DLL's written in C++ that present an old-school 'C' API for third-party applications. We also have an in-house tracing application that is a software Leatherman[^] for our products, also written in C++/MFC. Usually I'm all in favor of C#/WPF solutions, but I doubt this particular app could be written in C# and perform as well as it does. We have use cases where it runs in the background, recording data over days or weeks. It remains a good citizen (low memory consumption, unobtrusive CPU usage) for long periods.

                    Software Zen: delete this;

                    1 Reply Last reply
                    0
                    • E Eytukan

                      There was a time, I thought my career would be just about Win32 MFC, COM/ATL. This got irrelevant, 5 years ago.

                      Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy Falcon.

                      M Offline
                      M Offline
                      Munchies_Matt
                      wrote on last edited by
                      #15

                      Vunic wrote:

                      Win32 MFC, COM/ATL. This got irrelevant, 5 years ago.

                      Was COM ever relevant? I still use MFC for writing test apps, for control panel applets, to go with my drivers, that kind of crap. It is ideal really, so easy to use, so quick to throw together UIs. What do you use these days? Perhaps I should switch over to it.

                      J E 2 Replies Last reply
                      0
                      • realJSOPR realJSOP

                        I was kinda surprised to see that someone downloaded code for a MFC article I wrote in 2005 (blinking cells in Chris Maunder's grid control). Are people really still coding in C++/MVC?

                        ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                        -----
                        You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                        -----
                        When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                        D Offline
                        D Offline
                        Dan Neely
                        wrote on last edited by
                        #16

                        I did a maintenance pass on an MFC app (ported from C/Solaris in the mid 90s) 2 years ago. As a can I still think in pointers exercise it was interesting; but at the end of the day it was just putting a ribbon of lipstick on a pig (literally, half the work was replacing a mess of floating window not-toolbars with a ribbon, the other half preventing corrupted appstate if you switch tasks mid-workflow) because the govt entity we were working for had money that needed to be spent or else. :doh: I'm 99.9% sure our code/binary CDs were stuck in a filing cabinet and immediately forgotten about after the contract ended.

                        Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

                        1 Reply Last reply
                        0
                        • D den2k88

                          VB6 and Win32 API (no ATL)...

                          GCS d-- s-/++ a- C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- ++>+++ y+++*      Weapons extension: ma- k++ F+2 X

                          J Offline
                          J Offline
                          Jim_Snyder
                          wrote on last edited by
                          #17

                          Quote:

                          VB6 and Win32 API (no ATL)...

                          That is Charles Petzold territory... (WIN32 API)

                          1 Reply Last reply
                          0
                          • M Munchies_Matt

                            Vunic wrote:

                            Win32 MFC, COM/ATL. This got irrelevant, 5 years ago.

                            Was COM ever relevant? I still use MFC for writing test apps, for control panel applets, to go with my drivers, that kind of crap. It is ideal really, so easy to use, so quick to throw together UIs. What do you use these days? Perhaps I should switch over to it.

                            J Offline
                            J Offline
                            Jim_Snyder
                            wrote on last edited by
                            #18

                            Quote:

                            Was COM ever relevant?

                            It had it's 15 seconds of fame...

                            M 1 Reply Last reply
                            0
                            • J Jim_Snyder

                              Quote:

                              Was COM ever relevant?

                              It had it's 15 seconds of fame...

                              M Offline
                              M Offline
                              Munchies_Matt
                              wrote on last edited by
                              #19

                              It was a waste of time as far as I could see, it certainly didnt fix dll hell, it just created COM hell. :)

                              1 Reply Last reply
                              0
                              • M Munchies_Matt

                                Vunic wrote:

                                Win32 MFC, COM/ATL. This got irrelevant, 5 years ago.

                                Was COM ever relevant? I still use MFC for writing test apps, for control panel applets, to go with my drivers, that kind of crap. It is ideal really, so easy to use, so quick to throw together UIs. What do you use these days? Perhaps I should switch over to it.

                                E Offline
                                E Offline
                                Eytukan
                                wrote on last edited by
                                #20

                                COM was the only practical way to share modules between different applications, services. We write something in VC++ and share it with application clients that are made with VB, .net & even Web/JavaScript. It was doing a real good job on intranet applications from where you can control machines/hardwares. For any non technical folks, it was almost looking like a magic. Like, A web-page controlling hardwares? COM, ActiveX were all doing those magic. And still, COM is being used by Windows extensively. I guess WinRT does good use of COM underneath, if I'm right.

                                Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy Falcon.

                                M 1 Reply Last reply
                                0
                                • E Eytukan

                                  COM was the only practical way to share modules between different applications, services. We write something in VC++ and share it with application clients that are made with VB, .net & even Web/JavaScript. It was doing a real good job on intranet applications from where you can control machines/hardwares. For any non technical folks, it was almost looking like a magic. Like, A web-page controlling hardwares? COM, ActiveX were all doing those magic. And still, COM is being used by Windows extensively. I guess WinRT does good use of COM underneath, if I'm right.

                                  Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy Falcon.

                                  M Offline
                                  M Offline
                                  Munchies_Matt
                                  wrote on last edited by
                                  #21

                                  Vunic wrote:

                                  COM was the only practical way to share modules between different applications, services.

                                  dll's can also be shared. COM was designed to alleviate 'dll hell', where apps became dependant on a particular version of dll because later versions lost functions, or the interface to those functions changed, or the functions themselves changed behaviour. So instalers would often overwrite a newer dll with an older one. Of course if dlls are properly engineere this doesnt happen, and COM becomes irrelevant. Which is what has happened.

                                  Vunic wrote:

                                  We write something in VC++ and share it with application clients that are made with VB, .net & even Web/JavaScript

                                  But it id still a dll written in C, even if it has a different set of functions to access it. A COM module is (unless it is an out of proc server) a dll.

                                  E 1 Reply Last reply
                                  0
                                  • M Munchies_Matt

                                    Vunic wrote:

                                    COM was the only practical way to share modules between different applications, services.

                                    dll's can also be shared. COM was designed to alleviate 'dll hell', where apps became dependant on a particular version of dll because later versions lost functions, or the interface to those functions changed, or the functions themselves changed behaviour. So instalers would often overwrite a newer dll with an older one. Of course if dlls are properly engineere this doesnt happen, and COM becomes irrelevant. Which is what has happened.

                                    Vunic wrote:

                                    We write something in VC++ and share it with application clients that are made with VB, .net & even Web/JavaScript

                                    But it id still a dll written in C, even if it has a different set of functions to access it. A COM module is (unless it is an out of proc server) a dll.

                                    E Offline
                                    E Offline
                                    Eytukan
                                    wrote on last edited by
                                    #22

                                    I think COM components fit naturally into the development environments of different tools. Application developers never have to worry about the importing stuff, datatypes mapping & even the physical location of the Dll. it was just piece of cake for the component consumer. obviously it was a lot of clutter for the component developer. And Active-X controls(UI+Com) were working beautifully on the web pages. it was doing real great stuff for the intranet. I know people hated it for the internet though.

                                    Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy Falcon.

                                    M 1 Reply Last reply
                                    0
                                    • E Eytukan

                                      I think COM components fit naturally into the development environments of different tools. Application developers never have to worry about the importing stuff, datatypes mapping & even the physical location of the Dll. it was just piece of cake for the component consumer. obviously it was a lot of clutter for the component developer. And Active-X controls(UI+Com) were working beautifully on the web pages. it was doing real great stuff for the intranet. I know people hated it for the internet though.

                                      Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy Falcon.

                                      M Offline
                                      M Offline
                                      Munchies_Matt
                                      wrote on last edited by
                                      #23

                                      I only ever wrote in C / C++, so I guess it was no hassle to import a lib, either static or dynamic, it is just part of the life of a programmer.

                                      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