Can't reference DirectX 9
Can't reference DirectX 9
Can't reference DirectX 9
Can't reference DirectX 9
Can't reference DirectX 9
Can't reference DirectX 9 Can't reference DirectX 9 Can't reference DirectX 9 Can't reference DirectX 9 Can't reference DirectX 9 Can't reference DirectX 9 Can't reference DirectX 9 Can't reference DirectX 9
Can't reference DirectX 9 Can't reference DirectX 9
Can't reference DirectX 9
Go Back  Xtreme Visual Basic Talk > > > > Can't reference DirectX 9


Reply
 
Thread Tools Display Modes
  #1  
Old 02-17-2008, 09:28 AM
Guitarmonster Guitarmonster is offline
Privileges Suspended
 
Join Date: Feb 2006
Posts: 36
Default Can't reference DirectX 9


I am currently using Visual Studio 2008, programming in vb.net. I downloaded and installed the DirectX 9 SDK. DirectX is not showing up in the add reference dialog box, can anyone direct me what to do, can I browse to the files manually (where are they located)?
Reply With Quote
  #2  
Old 02-17-2008, 09:32 AM
the master's Avatar
the master the master is offline
Tachikoma
 
Join Date: Mar 2003
Location: Mansfield, UK
Posts: 4,596
Default

The files are located in "C:\WINDOWS\Microsoft.NET\DirectX for Managed Code" or at least they are on my PC
__________________
"That which seems simple is often overlooked" ~ me
Halloween 2014 Yard Haunt
Halloween Special FX
Reply With Quote
  #3  
Old 02-17-2008, 09:34 AM
Guitarmonster Guitarmonster is offline
Privileges Suspended
 
Join Date: Feb 2006
Posts: 36
Default

when I open the add reference dialog, and then go to browse. I browsed to "c:\windows\Microsoft.NET\Managed DirectX\v4.09.00.0900". But there are not files that vs allows me to add, I have a feeling that something did not go right in the sdk installation, or maybe im just not on the right path.

I navigated there in explorer, it is full of xml files. Is there a dll that I need to find. I was under the impression that I could just use the following code

Imports Microsoft.DirectX
Reply With Quote
  #4  
Old 02-17-2008, 09:37 AM
the master's Avatar
the master the master is offline
Tachikoma
 
Join Date: Mar 2003
Location: Mansfield, UK
Posts: 4,596
Default

I installed an SDK for DX9 the other day but the one i installed shows up as V1.

Did you check the full list? Here it shows up as "Microsoft.DirectX" and not just "DirectX" so it will be further down the list
__________________
"That which seems simple is often overlooked" ~ me
Halloween 2014 Yard Haunt
Halloween Special FX
Reply With Quote
  #5  
Old 02-17-2008, 09:39 AM
Guitarmonster Guitarmonster is offline
Privileges Suspended
 
Join Date: Feb 2006
Posts: 36
Default

If you looking under add reference, .net tab its not there. Looked at the entire list.
Reply With Quote
  #6  
Old 02-17-2008, 09:41 AM
the master's Avatar
the master the master is offline
Tachikoma
 
Join Date: Mar 2003
Location: Mansfield, UK
Posts: 4,596
Default

The whole tab is missing? I dont know what would cause that and i dont think you can add a reference in any other way. I dont think DX9 is available as a COM object
__________________
"That which seems simple is often overlooked" ~ me
Halloween 2014 Yard Haunt
Halloween Special FX
Reply With Quote
  #7  
Old 02-17-2008, 09:42 AM
Guitarmonster Guitarmonster is offline
Privileges Suspended
 
Join Date: Feb 2006
Posts: 36
Default

No the tab is there, I mean directx is nowhere in the list, not Microsoft.DirectX, not anything.
Reply With Quote
  #8  
Old 02-17-2008, 09:49 AM
Guitarmonster Guitarmonster is offline
Privileges Suspended
 
Join Date: Feb 2006
Posts: 36
Default

im reinstalling dx sdk now just to be safe
Reply With Quote
  #9  
Old 02-17-2008, 10:03 AM
Guitarmonster Guitarmonster is offline
Privileges Suspended
 
Join Date: Feb 2006
Posts: 36
Default

Ok, I reinstalled, then restarted my computer and it still doesn't show up. When I install i get no errors of any kind, and it says it installed successfully
Reply With Quote
  #10  
Old 02-17-2008, 10:10 AM
Guitarmonster Guitarmonster is offline
Privileges Suspended
 
Join Date: Feb 2006
Posts: 36
Default

I guess I won't be doing any directx programming. No matter what I try I get nothing, no errors, no indication of where to begin. I love it when Microsoft does this, just completely leave you in the dark with not even a candle of what the problem is or where to go. Wish I could figure out where the dll's are or something, then maybe I could browse to them manually
Reply With Quote
  #11  
Old 02-17-2008, 10:13 AM
the master's Avatar
the master the master is offline
Tachikoma
 
Join Date: Mar 2003
Location: Mansfield, UK
Posts: 4,596
Default

Usually the do give you a candle but to light it they give you a bucket of water

You do have directX 9 installed dont you? And should that SDK work for your version of VB?
__________________
"That which seems simple is often overlooked" ~ me
Halloween 2014 Yard Haunt
Halloween Special FX
Reply With Quote
  #12  
Old 02-17-2008, 10:17 AM
Guitarmonster Guitarmonster is offline
Privileges Suspended
 
Join Date: Feb 2006
Posts: 36
Default

bucket of water, yeah that's the truth.

Yes, I have directx 9.0c installed, and I've reinstalled the sdk 3 times. And as far as I know is should work with my version of vb. I have visual studio 2008.
Reply With Quote
  #13  
Old 02-17-2008, 10:19 AM
Guitarmonster Guitarmonster is offline
Privileges Suspended
 
Join Date: Feb 2006
Posts: 36
Default

Ok, got something here. I opened dxdiag and it tells me under DirectX files that system.dll is missing, and there are exclamation points next to all the dx debug files. I think I may be able to fix this by manually copying the file
Reply With Quote
  #14  
Old 02-17-2008, 10:23 AM
the master's Avatar
the master the master is offline
Tachikoma
 
Join Date: Mar 2003
Location: Mansfield, UK
Posts: 4,596
Default

Ive just had a look on the web and found this

It seems that the SDK has to support VS and not VS supporting the SDK. You will need the most upto date one you can find and according to that webpage you need the March 2008 SDK which i dont think is available yet
__________________
"That which seems simple is often overlooked" ~ me
Halloween 2014 Yard Haunt
Halloween Special FX
Reply With Quote
  #15  
Old 02-17-2008, 10:29 AM
Guitarmonster Guitarmonster is offline
Privileges Suspended
 
Join Date: Feb 2006
Posts: 36
Default

That's retarted, now I wish i didn't upgrade to vs 2008. But still there is something wrong because I have those errors in dxdiag. Im reinstalling directx and starting over.
Reply With Quote
  #16  
Old 02-17-2008, 01:13 PM
Guitarmonster Guitarmonster is offline
Privileges Suspended
 
Join Date: Feb 2006
Posts: 36
Default

All fixed. My system's directx was seriously screwed up so I uninstalled it, downloaded the november 2007 sdk, reinstalled and not it's working
Reply With Quote
  #17  
Old 03-13-2008, 01:30 PM
MrMosmo's Avatar
MrMosmo MrMosmo is offline
Freshman
 
Join Date: Feb 2003
Location: Lawrence Kansas USA
Posts: 47
Default

Did you ever get this fixed? I am currently using VS2008 pro and DirectX nov 2007 and it is working fine. What version of VS are you using?
__________________
WHY NOT?
It can always be worse!
Reply With Quote
  #18  
Old 03-15-2008, 06:56 PM
Leade's Avatar
Leade Leade is offline
Junior Contributor
 
Join Date: Jul 2005
Location: Wherever i fall over
Posts: 222
Default

If you want to reference the files manually, the files are in C:\windows\system32\assembly\

Try searching the forum, i've answered this question 3 times now.
__________________
Fact: The best ideas come when your smashed of your face. So drink beer and be merry!!!
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
Can't reference DirectX 9
Can't reference DirectX 9
Can't reference DirectX 9 Can't reference DirectX 9
Can't reference DirectX 9
Can't reference DirectX 9
Can't reference DirectX 9 Can't reference DirectX 9 Can't reference DirectX 9 Can't reference DirectX 9 Can't reference DirectX 9 Can't reference DirectX 9 Can't reference DirectX 9
Can't reference DirectX 9
Can't reference DirectX 9
 
Can't reference DirectX 9
Can't reference DirectX 9
 
-->