Post

 Resources 

Console

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

 All Forums
 VBGamer
 VBGamer
 VB.net

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 02 2004 : 7:17:50 PM
Hello, I am using MS VB.net stand. Ed. 2003

I"m having trouble with DirectX7 in vb.net. I only want to do 2D stuff, thats why I"m using 7.I put in


dim dx as DirectX7

and it says DirectX not defined. Could anyone help? Thanks.
1   L A T E S T    R E P L I E S    (Newest First)
Sr. Guapo Posted - Jul 02 2004 : 7:38:03 PM
Don't know if it is possible in .NET, but this should work...

You must reference the DirectX7 dll. Goto Project->"Add Reference..." click the COM tab and scroll down to the DirectX 7 for Visual Basic Type Library. Then, in all the classes/modules/forms that require DX7, add the line: "imports DxVBLib". That should let you use DX7...

A better option may to use DirectX7 through DirectX9. DX9 provides a new interface for DX7, and would work much better with .NET...

An even better option is to use DirectGraphics9 to do 2D rendering. It is very easy, possibly easier than DirectDraw (not sure, never used it...). There are many tutorials on doing this, includind the DX9 tutorial on DirectX4VB.com... The managed DX interface plays much nicer with .NET than COM, so you will have less problems in the long run. Also, It provides a nice foundation to learn Direct3D later on.

Hope that helps a little...

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

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