Solved

Hiding vc++ 5.0 executables

Posted on 1999-01-19
4
246 Views
Last Modified: 2010-04-02
How do I hide a program in vc++ 5.0 from showing up in the task list or taskbar? I need the program to hide itself when it first starts.
0
Comment
Question by:naallen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 10

Expert Comment

by:viktornet
ID: 1184559
Create a window that should have a dialog style and it will not show up in the task bar,,,
0
 
LVL 22

Accepted Solution

by:
nietod earned 10 total points
ID: 1184560
The only way to remove it from the task manager's list is to make it a service.  Look up "Services Overview"  or "Service Control Manager" in VC.  Note that Windows 95/98 have a different way of handling services than windows NT.  This makes this a bit awkward to do.
0
 
LVL 1

Expert Comment

by:shrif
ID: 1184561
nietod, are you sure about that?  Under Windows NT, if you look at the second tab of the task manager, you'll see services as well as normal executables.  If you look at the first tab, you only see the items that are on your task bar.  The things that are on your task bar are all top-level (non-popup) windows that are visible.  And if you're crazy enough to be running Program Manager instead of Explorer, you'll see this same list in the "task list".

Now, the list in the task bar are obviously not tasks.  One task, such as Navigator or Outlook can have multiple entries in the task bar.  And other programs don't have windows in the task bar at all.  I believe the person asking this question is asking about this second type program.

Seems to me that if you don't want your window to show in the Windows task bar, then don't create a top level window, or make your top level window hidden.
0
 
LVL 22

Expert Comment

by:nietod
ID: 1184562
Appears to be true.  It does hide them under windows 95 though, so it seems that registering as a service is at least a step in the right direction.  I don't think you can do much better.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question