Hide CMD?

Irrlicht.Net is no longer developed or supported, Irrlicht.Net Cross Platform is a much more complete wrapper. Please ask your C# related questions on their forums first.
Locked
combine
Posts: 4
Joined: Thu Mar 15, 2007 6:23 pm

Hide CMD?

Post by combine »

Hi @All.
I use Irrlicht with VB.NET (Visual Basic 2005 Standart Edition)
Can everyone say me how i can hide the CMD Window?

Thanks for help. :)
JDHunter
Posts: 17
Joined: Tue Jun 20, 2006 6:15 am
Location: Germany
Contact:

Post by JDHunter »

Hey,

i hope i translate it right (i have German .Net)

Go to Project-Propertys (right click on project)
Then go on Tab Application...
On this there is a ComboBox Output-Typ?
Change the Item from "Classtyp" to Windows-Application...

i Hope it helps
temaz
Posts: 6
Joined: Sat Mar 31, 2007 1:28 pm

Post by temaz »

You want to hide window where you select video mode?

Just do some coding and break the case operator.
Using IrrLicht with C#
NicholasMag
Posts: 45
Joined: Fri Mar 09, 2007 8:06 pm

Post by NicholasMag »

Hrm, i used Visual C# 2005 and i would assume they are the same, not sure.

but when you right click on the project, click properties. After that it brings you up to the Application properties. There is a section Output Type: with a dropdown box. There is Consol Appliocation, change it to Windows Application, thta should do it.

Heres some of the code you have to change to force the user to play under a certain 3d driver.

Now theres the selection you have to remove that asks the user to select the driver they want, but i have never looke dor worked with VB before so i will leave that part up to you.

But this stuff below i tell you to do is self explanitory, should work

Code: Select all

Private Function PickDriver() As video.DriverType
			If rbD3D9.Checked Then
				Return Irrlicht.Video.DriverType.DIRECT3D9
			End If
			If rbD3D8.Checked Then
				Return Irrlicht.Video.DriverType.DIRECT3D8
			End If
			If rbOGL.Checked Then
				Return Irrlicht.Video.DriverType.OPENGL
			End If
			If rbSoft1.Checked Then
				Return Irrlicht.Video.DriverType.SOFTWARE
			End If
			If rbSoft2.Checked Then
				Return Irrlicht.Video.DriverType.SOFTWARE2
			End If
			Return Irrlicht.Video.DriverType.NULL_DRIVER
		End Function

Remove all that..... get rid of it

Scroll down below until you find this line

Code: Select all

device = New IrrlichtDevice(driverType, New core.Dimension2D(c.ClientRectangle.Width, c.ClientRectangle.Height), 32, False, False, False, _ 
				True, c.Handle)
and replace it with

Code: Select all

device = New IrrlichtDevice(DriverType.DIRECT3D9, New core.Dimension2D(c.ClientRectangle.Width, c.ClientRectangle.Height), 32, False, False, False, _ 
				True, c.Handle)
and that will load Direct3d 9.0c....
NicholasMag
Posts: 45
Joined: Fri Mar 09, 2007 8:06 pm

Post by NicholasMag »

just checking to see if this worked or not, if so i would like to kno in case this problem arises again.
Locked