First MFC app - Not listed in Task Manager Applications

This is a discussion on First MFC app - Not listed in Task Manager Applications within the Windows Programming forums, part of the Platform Specific Boards category; I've written my first MFC app (hello world) and I have experimented with omitting the ShowWindow() and UpdateWindow() calls. Omitting ...

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

    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
    Mac and Windows cross platform programmer. Ruby lover.

    Quote of the Day
    12/20: Mario F.:I never was, am not, and never will be, one to shut up in the face of something I think is fundamentally wrong.

    Amen brother!

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,892
    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
    Katy, Texas
    Posts
    2,309
    Shore enough!! Thanks CornedBee.

    BTW - what's "CornedBee"? I always read it as "Corned Beef".
    Mac and Windows cross platform programmer. Ruby lover.

    Quote of the Day
    12/20: Mario F.:I never was, am not, and never will be, one to shut up in the face of something I think is fundamentally wrong.

    Amen brother!

  4. #4
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,892
    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, 09:19 AM
  5. Distributing MFC Applications
    By WiKiDJeFF in forum Windows Programming
    Replies: 4
    Last Post: 05-01-2003, 05:39 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21