Jump to content
Xtreme .Net Talk

rifter1818

Avatar/Signature
  • Posts

    257
  • Joined

  • Last visited

Everything posted by rifter1818

  1. Why doesnt this work? all the variables are set to default however ive tried adjusting the windowed variable neither work can anyone please help me... using managed dx public class dx9 Imports Microsoft.DirectX Imports Microsoft.DirectX.Direct3D Imports System.Windows.Forms public d3ddevice as device Private TargetForm As Form Private sWidth As Long Private sHeight As Long Public Sub Initialize(Optional ByVal windowed As Boolean = False, Optional ByVal ScreenWidth As Long = 1280, Optional ByVal ScreenHeight As Long = 1024, Optional ByVal ColorFormat As Long = 33) Dim d3dpp As New PresentParameters TargetForm = New Form TargetForm.Show() TargetForm.Focus() d3dpp.Windowed = windowed sWidth = ScreenWidth sHeight = ScreenHeight d3dpp.BackBufferCount = 1 d3dpp.BackBufferFormat = ColorFormat d3dpp.BackBufferHeight = ScreenHeight d3dpp.BackBufferWidth = ScreenWidth d3dpp.SwapEffect = SwapEffect.Copy D3DDevice = New Device(0, DeviceType.Hardware, TargetForm, CreateFlags.SoftwareVertexProcessing, d3dpp) End Sub end class note that when it errors is allways the last line = new device ..... with the following error: An unhandled exception of type 'Microsoft.DirectX.Direct3D.InvalidCallException' occurred in microsoft.directx.direct3d.dll Additional information: Error in the application.
  2. Hmm,... Doesnt seem to for me, could be my keyboard, sorry to bother you all with such simple questions but thanks very much for your help as i find VB.net harder to learn than 6 was,... much much much harder. Thanks very much
  3. Thanks,... But is there any way to do it while running as im not really sure where i want to pause it?
  4. I cant use the pause break to determine whats going wrong in my newly aquired infinint loop (created allong with 30 odd errors converting from vb 6 to .net) i cant pause because i dont know how! in vb 6 a simple Ctrl + Pause Break worked, it doesnt in .net what do i do?????? help me please
  5. How dyou print directly onto a form in vb.net, in vb6 the code would be me.show print "What a complicated process eh?" now ive tryed using the built in converter but that doesnt do it....... help?!
×
×
  • Create New...