[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference pamsrc::objectbroker_suggestions

Title:ObjectBroker Suggestions
Moderator:RECV::GUMBEL
Created:Fri Apr 19 1996
Last Modified:Tue Jun 03 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:136
Total number of notes:194

117.0. "Allow choice of MS-DOS box display on W95 autostart" by LEMAN::DONALDSON (Froggisattva! Froggisattva!) Wed Aug 28 1996 11:32

T.RTitleUserPersonal
Name
DateLines
117.1Here is the original requestRECV::whocrz.zko.dec.com::GumbelDick GumbelWed Aug 28 1996 13:3221
117.2for yuksVAXCPU::michaudJeff Michaud - ObjectBrokerWed Mar 26 1997 20:0229
Notefile: Send::ObjectBroker_Development
Note: 2305.2
Author: VAXCPU::michaud "Jeff Michaud - ObjectBroker"
Topic: W95 Windows 95 and Server startup (autostart)
Title: for yuks
Date: 26-MAR-1997 20:01
Lines: 21

> When I 'autostart' a server in W95 it pops open a MSDOS window
> and outputs to it.
> 
> Is there any way to change this behaviour?

	While this can't solve the problem of a [MS-DOS] console window
	being created in the first place, for yuks you may want to
	try calling FreeConsole().  In theory this should make the
	console window go away once your server's main program starts
	running.

	Also I'm guessing that your server is written as a "console"
	application (ie. has a function named "main")?  It appears
	Windows 95 ignores the meaning of the DETACHED_PROCESS flag to
	CreateProcess, and by default console apps have a console window
	created for them if their parent doesn't have one.  You may
	want to consider making your application a windows application
	instead of a console one.  Then as long as you don't call
	ShowWindow() your "window" will never be visible.  At least
	in theory, I personally haven't tried making an ObjectBroker
	server a windows app, so no promises...