Problem with DirectX4VB DX7 tutorial...
Problem with DirectX4VB DX7 tutorial...
Problem with DirectX4VB DX7 tutorial...
Problem with DirectX4VB DX7 tutorial...
Problem with DirectX4VB DX7 tutorial...
Problem with DirectX4VB DX7 tutorial... Problem with DirectX4VB DX7 tutorial... Problem with DirectX4VB DX7 tutorial... Problem with DirectX4VB DX7 tutorial... Problem with DirectX4VB DX7 tutorial... Problem with DirectX4VB DX7 tutorial... Problem with DirectX4VB DX7 tutorial... Problem with DirectX4VB DX7 tutorial...
Problem with DirectX4VB DX7 tutorial... Problem with DirectX4VB DX7 tutorial...
Problem with DirectX4VB DX7 tutorial...
Go Back  Xtreme Visual Basic Talk > > > > Problem with DirectX4VB DX7 tutorial...


Reply
 
Thread Tools Display Modes
  #1  
Old 07-02-2004, 11:01 PM
Cirdan Cirdan is offline
Freshman
 
Join Date: May 2004
Posts: 34
Default Problem with DirectX4VB DX7 tutorial...


I"m reading the DirectDraw tutorial on fullscreen.

In the first code he gives us...

Code:
Option Explicit 'DirectX likes all it's variables to be predefined

Dim binit As Boolean 'A simple flag (true/false) that states whether we've initialised or not. If the initialisation is successful 'this changes to true, the program also checks before doing any drawing if this flag is true. If the initialisation failed and we 'try and draw things we'll get lots of errors...

Dim dx As New DirectX7 'This is the root object. DirectDraw is created from this
Dim dd As DirectDraw7 'This is DirectDraw, all things DirectDraw come from here
Dim Mainsurf As DirectDrawSurface7 'This holds our bitmap
Dim primary As DirectDrawSurface7 'This surface represents the screen - see earlier in the tutorial
Dim backbuffer As DirectDrawSurface7 'This was mentioned earlier on...
Dim ddsd1 As DDSURFACEDESC2 'this describes the primary surface
Dim ddsd2 As DDSURFACEDESC2 'this describes the bitmap that we load
Dim ddsd3 As DDSURFACEDESC2 'this describes the size of the screen

Dim brunning As Boolean 'this is another flag that states whether or not the main game loop is running.
Dim CurModeActiveStatus As Boolean 'This checks that we still have the correct display mode
Dim bRestore As Boolean 'If we don't have the correct display mode then this flag states that we need to restore the display mode
The part I"m having trouble with is the...

Code:
Dim ddsd1 As DDSURFACEDESC2 'this describes the primary surface
Dim ddsd2 As DDSURFACEDESC2 'this describes the bitmap that we load
Dim ddsd3 As DDSURFACEDESC2 'this describes the size of the screen
I"m using DirectX7, but with VisualBasic.net 2003 Standard. Anyideas on how to accomplish this with .net? The reason why I"m using DX7 is because I want to make a 2D game.
Reply With Quote
  #2  
Old 07-03-2004, 10:51 AM
scorpin's Avatar
scorpin scorpin is offline
Centurion
 
Join Date: Jun 2003
Location: Sacramento California
Posts: 164
Default

what error do you get?
Reply With Quote
  #3  
Old 07-03-2004, 07:22 PM
Iceplug's Avatar
IceplugProblem with DirectX4VB DX7 tutorial... Iceplug is offline
MetaCenturion

Retired Moderator
* Guru *
 
Join Date: Aug 2001
Location: Iowa, USA
Posts: 16,583
Default

I wouldn't use DirectX7 with .NET (I've heard some bad things about it), but you are going to have Import the DXVBLib in order to access DDSURFACEDESC2 directly... or you can do DXVBLib.DDSURFACEDESC2
__________________

Iceplug, USN
Quadrill 1 Quadrill 2 (full) Quadrill 3 JumpCross .NET Website is ALIVE! - DL Platform Tour for VB.NET! Posting Guidelines Hint: Specify your location in your user cp profile if you want compassion!
Reply With Quote
  #4  
Old 07-04-2004, 07:02 PM
sgt_pinky's Avatar
sgt_pinky sgt_pinky is offline
Contributor
 
Join Date: Feb 2004
Location: Melbourne, Australia
Posts: 633
Default

I wouldn't use DX 7.0 either mate. You can make a 2D game in DX 9.0 no probs, even more easily than Dx 7.0
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Problem with DirectX4VB DX7 tutorial...
Problem with DirectX4VB DX7 tutorial...
Problem with DirectX4VB DX7 tutorial... Problem with DirectX4VB DX7 tutorial...
Problem with DirectX4VB DX7 tutorial...
Problem with DirectX4VB DX7 tutorial...
Problem with DirectX4VB DX7 tutorial... Problem with DirectX4VB DX7 tutorial... Problem with DirectX4VB DX7 tutorial... Problem with DirectX4VB DX7 tutorial... Problem with DirectX4VB DX7 tutorial... Problem with DirectX4VB DX7 tutorial... Problem with DirectX4VB DX7 tutorial...
Problem with DirectX4VB DX7 tutorial...
Problem with DirectX4VB DX7 tutorial...
 
Problem with DirectX4VB DX7 tutorial...
Problem with DirectX4VB DX7 tutorial...
 
-->