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.
Hide CMD?
-
- Posts: 45
- Joined: Fri Mar 09, 2007 8:06 pm
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
Remove all that..... get rid of it
Scroll down below until you find this line
and replace it with
and that will load Direct3d 9.0c....
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
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)
Code: Select all
device = New IrrlichtDevice(DriverType.DIRECT3D9, New core.Dimension2D(c.ClientRectangle.Width, c.ClientRectangle.Height), 32, False, False, False, _
True, c.Handle)
-
- Posts: 45
- Joined: Fri Mar 09, 2007 8:06 pm