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. C++ vs MFC

C++ vs MFC

Scheduled Pinned Locked Moved C / C++ / MFC
c++visual-studiocomalgorithmstutorial
3 Posts 3 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.
  • S Offline
    S Offline
    Sivaraman Dhamodharan
    wrote on last edited by
    #1

    While I have library function from C, C++ and MFC, which one I should use. Say for Example, fOpen like APIs from C, IoStream like supplied function from C++ or MFC's CFile supplied one. Which one is best choice when want to to a heavy text processing [Searching for some tags in a 2-3 MB file, preparing a report].

    Programming Article

    J CPalliniC 2 Replies Last reply
    0
    • S Sivaraman Dhamodharan

      While I have library function from C, C++ and MFC, which one I should use. Say for Example, fOpen like APIs from C, IoStream like supplied function from C++ or MFC's CFile supplied one. Which one is best choice when want to to a heavy text processing [Searching for some tags in a 2-3 MB file, preparing a report].

      Programming Article

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

      With file sizes of a few MB you can load the complete file into memory for parsing. Then you will not have significant differences in load time using different methods. I general the high level file interfaces will call the low level functions internally. So using the low level functions may be faster. But the overhead of the high level functions does not care much because the disk access usually consumes much more time than the execution of some more code.

      1 Reply Last reply
      0
      • S Sivaraman Dhamodharan

        While I have library function from C, C++ and MFC, which one I should use. Say for Example, fOpen like APIs from C, IoStream like supplied function from C++ or MFC's CFile supplied one. Which one is best choice when want to to a heavy text processing [Searching for some tags in a 2-3 MB file, preparing a report].

        Programming Article

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

        The right tool for the right job, of course. For instance: if you are developing a MFC application the it make sense using MFC supplied objects (with several caveats, e.g. C++ STL containers are much better than MFC ones). On the other hand, if portability is a concern then you better use C functions or C++ objects. Even personal taste, matters. I often choose C-like (stdio) functions instead of C++ (iostream) objects.

        Veni, vidi, vici.

        In testa che avete, signor di Ceprano?

        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