Thread: First MFC app - Not listed in Task Manager Applications

  1. #1
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332

    First MFC app - Not listed in Task Manager Applications

    I've written my first MFC app (hello world) and I have experimented with omitting the ShowWindow() and UpdateWindow() calls.

    Omitting just the UpdateWindow() call from my InitInstance doesn't seem to make a difference - the OnPaint() is still called and everything seems to work just fine.

    However, omitting the ShowWindow() calls does not show the window (no surprise there), but I got another side affect I did not expect.

    Task Manager did not show my hello.exe in the list of Applications. It only showed hello.exe in the list of processes. Why doesn't it show up in the Applications? Must an application register itself somehow to become an application?

    Thanks, Todd
    Mainframe assembler programmer by trade. C coder when I can.

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    A window that is not shown is not in the task bar or the list of applications. Simple as that.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332
    Shore enough!! Thanks CornedBee.

    BTW - what's "CornedBee"? I always read it as "Corned Beef".
    Mainframe assembler programmer by trade. C coder when I can.

  4. #4
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    but that would be boring
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Task Manager: Applications vs Processes
    By Shwick in forum Windows Programming
    Replies: 3
    Last Post: 08-14-2008, 06:47 AM
  2. A question about windows programming
    By Hussain Hani in forum Windows Programming
    Replies: 16
    Last Post: 05-23-2007, 07:38 AM
  3. Preprocessor Directives in MFC Applications
    By Caldus in forum Windows Programming
    Replies: 1
    Last Post: 07-17-2006, 12:33 PM
  4. MFC App Closing
    By UnclePunker in forum Windows Programming
    Replies: 2
    Last Post: 01-05-2006, 10:19 AM
  5. Distributing MFC Applications
    By WiKiDJeFF in forum Windows Programming
    Replies: 4
    Last Post: 05-01-2003, 05:39 PM