473,472 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

CreateNoWindow with windows 98/ME

is/will this be fixed? Or is it just a 'make Windows 98 as
unattractive as possible' feature we have to deal with? (just kiddin)

In case you don't know this bug:

when you try to create a console process with CreateNoWindows= true it
will work fine on windows NT/2k/xp but on windows 9x/ME the console
window will pop up anyway.

One might do fancy workarounds for this, enumerating all windows
searching for the console and hiding it, but be real, this is a ugly
nuisance!

Maybe anyone is knowing if .net 1.2/2.0 fixes this?

Sam
Nov 16 '05 #1
3 1723
Quote from MSDN (Article "Process creation flags")

CREATE_NO_WINDOW:
The process is a console application that is run without a console window.
This flag is valid only when starting a console application.
This flag cannot be used with MS-DOS-based applications.
Windows Me/98/95: This value is not supported.

I don't think this "bug" will be fixed.
This flag simply isn't supported by Win95/98/Me.

Niki

"Sam Jost" <sa*****@web.de> wrote in
news:66**************************@posting.google.c om...
is/will this be fixed? Or is it just a 'make Windows 98 as
unattractive as possible' feature we have to deal with? (just kiddin)

In case you don't know this bug:

when you try to create a console process with CreateNoWindows= true it
will work fine on windows NT/2k/xp but on windows 9x/ME the console
window will pop up anyway.

One might do fancy workarounds for this, enumerating all windows
searching for the console and hiding it, but be real, this is a ugly
nuisance!

Maybe anyone is knowing if .net 1.2/2.0 fixes this?

Sam

Nov 16 '05 #2
PS: I didn't try this on Win95/98/Me,but it works fine on my XP box:

[DllImport("USER32.DLL", SetLastError=true)]
private static extern bool ShowWindow(IntPtr hWnd, int cmdShow );
private const int SW_HIDE = 0x0000;

public static void Main()
{
Process p = Process.Start("cmd");
ShowWindow(p.MainWindowHandle, SW_HIDE);
}

Niki

"Niki Estner" <ni*********@cube.net> wrote in
news:OL**************@TK2MSFTNGP09.phx.gbl...
Quote from MSDN (Article "Process creation flags")

CREATE_NO_WINDOW:
The process is a console application that is run without a console window.
This flag is valid only when starting a console application.
This flag cannot be used with MS-DOS-based applications.
Windows Me/98/95: This value is not supported.

I don't think this "bug" will be fixed.
This flag simply isn't supported by Win95/98/Me.

Niki

"Sam Jost" <sa*****@web.de> wrote in
news:66**************************@posting.google.c om...
is/will this be fixed? Or is it just a 'make Windows 98 as
unattractive as possible' feature we have to deal with? (just kiddin)

In case you don't know this bug:

when you try to create a console process with CreateNoWindows= true it
will work fine on windows NT/2k/xp but on windows 9x/ME the console
window will pop up anyway.

One might do fancy workarounds for this, enumerating all windows
searching for the console and hiding it, but be real, this is a ugly
nuisance!

Maybe anyone is knowing if .net 1.2/2.0 fixes this?

Sam


Nov 16 '05 #3
Dang.
I'll be so so so very happy the day I won't have to support any W9x no
more. *sigh*

thanks, I thought it was just a minor glitch since it seems to work
from win32-api somehow.
Sam

"Niki Estner" <ni*********@cube.net> wrote:
Quote from MSDN (Article "Process creation flags")

CREATE_NO_WINDOW:
The process is a console application that is run without a console window.
This flag is valid only when starting a console application.
This flag cannot be used with MS-DOS-based applications.
Windows Me/98/95: This value is not supported.

I don't think this "bug" will be fixed.
This flag simply isn't supported by Win95/98/Me.

Niki

"Sam Jost" <sa*****@web.de> wrote in
news:66**************************@posting.google.c om...
is/will this be fixed? Or is it just a 'make Windows 98 as
unattractive as possible' feature we have to deal with? (just kiddin)

In case you don't know this bug:

when you try to create a console process with CreateNoWindows= true it
will work fine on windows NT/2k/xp but on windows 9x/ME the console
window will pop up anyway.

One might do fancy workarounds for this, enumerating all windows
searching for the console and hiding it, but be real, this is a ugly
nuisance!

Maybe anyone is knowing if .net 1.2/2.0 fixes this?

Sam

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ken Lindner | last post by:
I have a need to become familiar with SQL Server 2000 for work. Needless to say I am new to SQL Server any version, but not IT in general. My employer has provided me with the SQL Server 2000...
3
by: William Stacey [MVP] | last post by:
Is this a bug in fx2? I expect they did not carry forward all the StartInfo properties to api used with Username/Password. When you remove UserName/password, the window does not show as expected....
1
by: spamproof2005 | last post by:
I have the following code: Dim BrowserLauncher As New ProcessStartInfo BrowserLauncher.FileName = URL BrowserLauncher.CreateNoWindow = False BrowserLauncher.UseShellExecute = True...
1
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. I'm having trouble getting the code that I've written to work, can anyone shed some light as to where I'm...
0
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. The program I'm trying to develop needs to be able to do the following: - Select remote server -...
4
by: Rod Gill | last post by:
Hi, I have a form that when opened in the designer appears of the screen. The form selector can't be dragged (or resized) and if I scroll right and down to centralise it the form simply jumps...
2
by: sambo251 | last post by:
After running a few updates I get this very annoying "Windows Installer" error #1706 that will ne go away! It keeps saying that it cannot find the file "instantsharedevices.msi", that it is on...
1
by: mfunkmann | last post by:
Hi, I recently got an error and I don't know how to fix it: Error 1 'System.Data.DataColumn' does not contain a definition for 'Windows' C:\c#\CsharpPRO\Form1.Designer.cs 304 77 CsharpPRO I...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.