Post

 Resources 

Console

Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VBGamer
 VBGamer
 Problem with the DX4VB tutorial...

Note: You must be registered in order to post a reply.

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List Spell Checker
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   Insert an File
Check here to include your profile signature.
Check here to subscribe to this topic.
    

T O P I C    R E V I E W
Trooper Posted - Jul 03 2004 : 12:00:21 AM
I"m reading the DirectDraw tutorial on fullscreen.

In the first code he gives us...

  
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...

  
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?
3   L A T E S T    R E P L I E S    (Newest First)
Eric Coleman Posted - Jul 03 2004 : 01:35:19 AM
Are you getting some error message or something? The article won't list all of the code needed to make the program function properly. Only specific things are highlighted in the article, so you should probably look at the sample application to what you are missing. You should convert the sample application and not the article.
Trooper Posted - Jul 03 2004 : 12:49:59 AM
yes, i did
Sr. Guapo Posted - Jul 03 2004 : 12:22:45 AM
Have you added a reference to the directX7 for Visual Basic Library? You must do this in VB.NET (those tutorials are in VB6).

VBGamer © Go To Top Of Page
This page was generated in 0.08 seconds. Snitz Forums 2000

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.