rifter1818
Well-known member
Object refrence not set to an instance..... So i click break (using vb.net) next popup says there is no source code available for the current location!?
Imports WindowsApplication3.Dx9
Public Module ModMain
Public D3d As New Direct3d
Public frmMain As New Form
Public WithEvents Tmr As Timer
Public Sub Main()
Dim Video As New Video("C:\1.asf")
Dim Audio As New Audio("C:\song_1.mid", True)
Tmr = New Timer
Tmr.Interval = 6000
AddHandler Tmr.Tick, AddressOf EXITGAME
frmMain.WindowState = FormWindowState.Maximized
frmMain.Show() error
Dim pp As New Microsoft.DirectX.Direct3D.PresentParameters
pp.Windowed = False
pp.BackBufferCount = 1
pp.BackBufferFormat = Microsoft.DirectX.Direct3D.Format.X8R8G8B8
pp.BackBufferHeight = 768
pp.BackBufferWidth = 1024
pp.SwapEffect = Microsoft.DirectX.Direct3D.SwapEffect.Copy
If Not D3d.Initialize(frmMain, pp, 0, Microsoft.DirectX.Direct3D.DeviceType.Hardware, Microsoft.DirectX.Direct3D.CreateFlags.SoftwareVertexProcessing) Then
Debug.WriteLine("Failed Once")
End If
Audio.Play()
AddHandler Video.Ending, AddressOf EXITGAME
D3d.PlayVideo(Video)
Tmr.Enabled = True
End Sub
Public Sub EXITGAME(ByVal sender As Object, ByVal e As EventArgs)
End
End Sub
End Module
Public FormMain as WindowsApplication3 (im assuming this is the name of your form because it says it at the top :-))