Solved

Hiding vc++ 5.0 executables

Posted on 1999-01-19
4
245 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
  • 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C++ standard library based binary archive format 6 104
Unresolved External Symbols 3 100
How to convert MFC::CString to UTF8 wchar_t* 10 275
Unable to start eclipse ? 17 152
Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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.

766 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