Newbie to DirectX
Newbie to DirectX
Newbie to DirectX
Newbie to DirectX
Newbie to DirectX
Newbie to DirectX Newbie to DirectX Newbie to DirectX Newbie to DirectX Newbie to DirectX Newbie to DirectX Newbie to DirectX Newbie to DirectX
Newbie to DirectX Newbie to DirectX
Newbie to DirectX
Go Back  Xtreme Visual Basic Talk > > > Newbie to DirectX


Reply
 
Thread Tools Display Modes
  #1  
Old 06-02-2011, 09:44 PM
axle12693 axle12693 is offline
Freshman
 
Join Date: May 2009
Posts: 26
Default Newbie to DirectX


I just downloaded the DirectX SDK, and when I try to run my program, it shows me a form with a big red X.

Here's the tutorial I'm using:
http://www.riemers.net/eng/Tutorials...t_triangle.php
Reply With Quote
  #2  
Old 06-03-2011, 08:20 AM
AtmaWeapon's Avatar
AtmaWeaponNewbie to DirectX AtmaWeapon is offline
Fabulous Florist

Forum Leader
* Guru *
 
Join Date: Feb 2004
Location: Austin, TX
Posts: 9,500
Default

That means you have an error. You're going to have to use the debugger to figure out what the error is.

For the record, Managed DirectX is dead. It had a lot of issues (mostly random, unavoidable crashes) and Microsoft quit supporting it in 2008 or 2009. If you really want to write high-performance code with VB .NET, look to XNA or an OpenGL-based alternative.
__________________
.NET Resources
My FAQ threads | Tutor's Corner | Code Library
I would bet money 2/3 of .NET questions are already answered in one of these three places.
Reply With Quote
  #3  
Old 06-03-2011, 01:40 PM
axle12693 axle12693 is offline
Freshman
 
Join Date: May 2009
Posts: 26
Default

This is impossible... you tell me to stay away from DirectX, and use XNA.
I search google for XNA, and it takes me to Microsoft's XNA dev. center, which tells me DirectX is best for what I'm trying to do.

Problem?
Reply With Quote
  #4  
Old 06-03-2011, 06:29 PM
Qua's Avatar
QuaNewbie to DirectX Qua is offline
Impetuous & volatile

* Expert *
 
Join Date: Apr 2005
Posts: 2,177
Default

I'm gonna sum up a few concepts here:
  • DirectX: The core rendering technology created by Microsoft usually consumed with C or C++. Not natively consumable from .NET.
  • Managed DirectX (MDX): A .NET version of DirectX. This framework is no longer supported. It was built on top of DirectX.
  • XNA: A framework built on top of DirectX just like MDX was but it is currently being fully supported. XNA runs on Windows Phone 7, Xbox Live Arcade and Windows.

So in short Direct X is the (Microsoft) way to go if you want to render graphics to the screen. Learning MDX would be a waste at this point since it will be obsolete in the foreseeable future. Your time would be better spent learning DirectX, XNA or a whole other framework such as OpenGl.
__________________
Reading is the foundation for all knowledge - Unknown.
Reply With Quote
  #5  
Old 06-03-2011, 09:24 PM
axle12693 axle12693 is offline
Freshman
 
Join Date: May 2009
Posts: 26
Default

OK.... so I've gone here and downloaded the June 2010 SDK.
Is that right so far?

Also, I've been looking...and I can't really find a single tutorial for DirectX with VB.NET.
Reply With Quote
  #6  
Old 06-04-2011, 03:28 AM
PlausiblyDamp's Avatar
PlausiblyDampNewbie to DirectX PlausiblyDamp is offline
Ultimate Contributor

Forum Leader
* Expert *
 
Join Date: Nov 2003
Location: Newport, Wales
Posts: 2,058
Default

As both Atma and Qua said, Managed DirextX is dead - you really want to be looking at XNA (http://www.microsoft.com/downloads/e...2-ef6c8b1f478f) if you are considering .Net as a platform.
__________________
Intellectuals solve problems; geniuses prevent them.
-- Albert Einstein

Posting Guidelines Forum Rules Use the code tags
Reply With Quote
  #7  
Old 06-04-2011, 09:18 AM
AtmaWeapon's Avatar
AtmaWeaponNewbie to DirectX AtmaWeapon is offline
Fabulous Florist

Forum Leader
* Guru *
 
Join Date: Feb 2004
Location: Austin, TX
Posts: 9,500
Default

You cannot use DirectX directly with VB .NET. Let's go through it bit by bit.
  • DirectX is an unmanaged graphics library intended for use with C or C++.
  • Long, long ago, Microsoft tried to put a managed wrapper on DirectX and Managed DirectX was the result. It was awful, and most of the time answers to "I get this bug" were "try again, maybe it will go away". It was discontinued in 2008 or so.
  • XNA is a game-focused development suite. It is built on top of DirectX, but instead of a wrapper it's more of a facade. In short, it's easier than straight DirectX but you give up a few features.
So quit looking for DirectX. You want articles about XNA if you want to use VB .NET with something like DirectX.

The road is still treacherous. XNA has several versions, and people who write tutorials aren't always clear about which version they're using. Sometimes that matters. It's best to find a forum or other community of people who use XNA because they won't steer you wrong. I'm not sure how big an XNA community we've got here, but it's something I've wanted to dabble in.

As an aside comment, I find that most game development communities are a bit more insular than application development communities; there's a stronger sense of "do it yourself" and I find it's less accessible for newbies. Once you write a game or two that seems to go away. One thing that won't change: the world is quite biased against VB .NET and XNA has only supported it for a relatively brief time. Be ready to talk in terms of C#. In fact, I'm not sure if you'll find many books or tutorials that focus on VB .NET at all. C#'s easy to pick up if you know VB .NET though.
__________________
.NET Resources
My FAQ threads | Tutor's Corner | Code Library
I would bet money 2/3 of .NET questions are already answered in one of these three places.
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
Newbie to DirectX
Newbie to DirectX
Newbie to DirectX Newbie to DirectX
Newbie to DirectX
Newbie to DirectX
Newbie to DirectX Newbie to DirectX Newbie to DirectX Newbie to DirectX Newbie to DirectX Newbie to DirectX Newbie to DirectX
Newbie to DirectX
Newbie to DirectX
 
Newbie to DirectX
Newbie to DirectX
 
-->