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. Using MFC with a Console Application

Using MFC with a Console Application

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++
3 Posts 2 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.
  • R Offline
    R Offline
    Richard Bywater
    wrote on last edited by
    #1

    Hi All, I've been splitting one of my MFC apps into two parts recently (Service & Visual). I've written the Service as a NT Console type application but wanted to use such things as CStrings & also the COleDispatch object. To do this I've included afxwin.h, afxext.h, and afxdisp.h. My question is: is there any reason I shouldn't be doing this or should I be looking at using something such as the CNTService class on this site? (Hopefully there is no reason as otherwise I'll have to rewrite my code :omg: ) Richard.

    J 1 Reply Last reply
    0
    • R Richard Bywater

      Hi All, I've been splitting one of my MFC apps into two parts recently (Service & Visual). I've written the Service as a NT Console type application but wanted to use such things as CStrings & also the COleDispatch object. To do this I've included afxwin.h, afxext.h, and afxdisp.h. My question is: is there any reason I shouldn't be doing this or should I be looking at using something such as the CNTService class on this site? (Hopefully there is no reason as otherwise I'll have to rewrite my code :omg: ) Richard.

      J Offline
      J Offline
      Jonathan Craig
      wrote on last edited by
      #2

      If you are using Visual C++ 6.0, you can create a console application that supports MFC. I would create a test application and see the differences between yours and the new. Hope this helps.

      R 1 Reply Last reply
      0
      • J Jonathan Craig

        If you are using Visual C++ 6.0, you can create a console application that supports MFC. I would create a test application and see the differences between yours and the new. Hope this helps.

        R Offline
        R Offline
        Richard Bywater
        wrote on last edited by
        #3

        Thanks Jonathan - have created many a console app and never noticed that option! :) Richard.

        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