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

Conference pamsrc::objectbroker_development

Title:ObjectBroker Development - BEA Systems' CORBA
Notice:See note 2 for kit locations; note 4 for training
Moderator:RECV::GUMBELd
Created:Thu Dec 27 1990
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2482
Total number of notes:13057

2305.0. "W95 Windows 95 and Server startup (autostart)" by LEMAN::DONALDSON (Froggisattva! Froggisattva!) Fri Aug 23 1996 11:36

T.RTitleUserPersonal
Name
DateLines
2305.1Not currently...SEND::PEREZThe InFAMous EightTue Aug 27 1996 17:0612
2305.2for yuksVAXCPU::michaudJeff Michaud - ObjectBrokerWed Mar 26 1997 20:0121
> 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...