Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating Non Visual Windows App

Status
Not open for further replies.

REALEYES3

Programmer
Joined
Jan 15, 2002
Messages
1
Location
CA
I want to create a Windows application but don't want to display anything visually. I've thought about creating a window and simply making it invisible but it seems that fewer resources would be required to create a non visual object instead. Can anyone enlighten me on how to do this? Is there a way to create a non visual windows application with C++?

Why would anyone want to create a non visual windows app? This app is actually a utility that will be called from a PowerBuilder application. We want to create a windows app as opposed to a command line app because we don't want to the user to see the DOS box.


Dennis
 
If you create a project to be dialog based (via MFC AppWizard) and then remove references to the main dialog in InitInstance()
i.e.
Cxxx dlg
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
etc.
you will have an app that doesn't create a window.
 
Another way is to just use the Win32 API - write a WinMain function that doesn't create a window.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top