Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Question for all you VB.NET experts

Author
Message
Yodaman Jer
User Banned
Posted: 9th May 2011 23:29
I recently checked out a book (written by Jonathan S. Harbour) on game programming in VB.NET with DirectX. The book focuses on teaching the basics of game programming, and the supplied learning project is a 2D RPG called "Celtic Crusader". however, the book is from circa 2005 and focuses on Visual Basic 6.0...and I'm wondering if that's outdated code.

The main problem I'm having is that I can't find the DirectX libraries inside of VB at all (I'm using the latest version). I'm looking where the book is telling me to (under "Add Reference" and the ".NET" tab), but it's nowhere to be found. All I can find is "System.Drawing" and nothing else. Where the heck is DirectX? Do I have to download it somewhere (Google searches have yielded no results for me)?

If anyone can tell me where to find DirectX (specifically Direct3D) and all of that, I would GREATLY appreciate it!

AutoBot
15
Years of Service
User Offline
Joined: 25th Sep 2009
Location: Everywhere
Posted: 9th May 2011 23:53 Edited at: 9th May 2011 23:55
Found a tutorial that uses vb.net and DirectX, here's what it said about adding references:

Quote: "Create a new Visual Basic windows application project; add reference to Microsoft.DirectX and Microsoft.DirectX.Direct3D, by selecting the Project menu, and then Add reference. Make sure they have the same version."

(http://www.riemers.net/eng/Tutorials/DirectX/Visual_Basic/Series1/The_first_triangle.php)

Have you tried that? I don't have much .net experiance in general, but I do understand the load of getting all these obscure libraries linked up.


This sig can be yours, too!
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 9th May 2011 23:56 Edited at: 9th May 2011 23:57
<EDIT> My bad, thought you had VB 6 and the book was .net

Diggsey
19
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 10th May 2011 00:31 Edited at: 10th May 2011 00:33
You have to install the DirectX SDK to get the references to show up However, Managed DirectX is getting quite old so it might be a good idea to switch to XNA or SlimDX.

[b]
Yodaman Jer
User Banned
Posted: 10th May 2011 00:32 Edited at: 10th May 2011 01:12
@AutoBot: Still doesn't work. "DirectX" and "Direct3D" do not seem to be located inside the "Add Reference" window on my computer.

I tried adding "Imports Microsoft.DirectX", but it told me the library for that doesn't exist...so where do I find it? Do I need to download it from somewhere?

/edit

@Diggsey:
Ah! Okay. I thought I already had that installed, but it's no where to be found on my computer, so I must have uninstalled it for some not-logical reason. Thanks!

/edit2:

Reinstalling the SDK did nothing...the libraries STILL aren't showing up! I guess I'll just focus on XNA then...

budokaiman
FPSC Tool Maker
15
Years of Service
User Offline
Joined: 24th Jun 2009
Playing: Hard to get
Posted: 10th May 2011 01:44
Hopefully this will help you out some.
http://channel9.msdn.com/coding4fun/articles/Beginning-Game-Development-Part-I--Introduction


Math is like a toilet. They both go in the other direction in Australia.
Yodaman Jer
User Banned
Posted: 10th May 2011 02:19
Quote: "WARNING: Managed DirectX is no longer supported. If you want to do 3D graphics with the .NET Framework"


That explains it. I guess the book is quite outdated then. I have no choice but to learn XNA now. Oh well. Thanks for the info, guys!

Login to post a reply

Server time is: 2025-05-21 15:40:36
Your offset time is: 2025-05-21 15:40:36