Getting 133 Errors In Coding4Fun Tutorial  
Author Message
Fixxer





PostPosted: Game Technologies: DirectX 101, Getting 133 Errors In Coding4Fun Tutorial Top

I get 133 errors when trying to do this tutorial!

<a href=" http://www.hide-link.com/ ;>Link To Tutorial</a>

Here are the 1st few, maybe they will let you know whats going on...

Error 1 The type or namespace name 'DirectX' does not exist in the namespace 'Microsoft' (are you missing an assembly reference ) C:\Documents and Settings\Owner\Local Settings\Application Data\Temporary Projects\BattleTank2005\DirectX Support\dxmutmisc.cs 12 17 BattleTank2005


Error 2 The type or namespace name 'DirectX' does not exist in the namespace 'Microsoft' (are you missing an assembly reference ) C:\Documents and Settings\Owner\Local Settings\Application Data\Temporary Projects\BattleTank2005\DirectX Support\dxmutmisc.cs 13 17 BattleTank2005


Error 3 The type or namespace name 'Usage' could not be found (are you missing a using directive or an assembly reference ) C:\Documents and Settings\Owner\Local Settings\Application Data\Temporary Projects\BattleTank2005\DirectX Support\dxmutmisc.cs 514 16 BattleTank2005


Error 4 The type or namespace name 'Format' could not be found (are you missing a using directive or an assembly reference ) C:\Documents and Settings\Owner\Local Settings\Application Data\Temporary Projects\BattleTank2005\DirectX Support\dxmutmisc.cs 515 16 BattleTank2005


Game Technologies: DirectX, XNA, XACT, etc.9  
 
 
Moayad Mardini





PostPosted: Game Technologies: DirectX 101, Getting 133 Errors In Coding4Fun Tutorial Top

You must install DirectX SDK (managed), to download the last version :
DirectX SDK - June 2006.

 
 
Fixxer





PostPosted: Game Technologies: DirectX 101, Getting 133 Errors In Coding4Fun Tutorial Top

I already have it installed.

 
 
gonzo883





PostPosted: Game Technologies: DirectX 101, Getting 133 Errors In Coding4Fun Tutorial Top

'are you missing an assembly reference '

Have you added the reference to your project

cu,gonZoX.


 
 
The ZMan





PostPosted: Game Technologies: DirectX 101, Getting 133 Errors In Coding4Fun Tutorial Top

As the previous posters have said you need to add the correct references. Battle tanks uses MDX 1.1 so you need to add the DirectX assemblies with version number 1.0.2902.0 except for D3DX which you take the one with the biggest number - 1.0.2911.0.

Do no add anything with a version number like 2.0.xxxx



 
 
Fixxer





PostPosted: Game Technologies: DirectX 101, Getting 133 Errors In Coding4Fun Tutorial Top

I added references to all of the DirectX assemblies, and allowed unsafe code.
Now I am left with just1 error.

Error    1    The type or namespace name 'Framework' could not be found (are you missing a using directive or an assembly reference )    C:\Documents and Settings\Owner\My Documents\Visual Studio 2005\Projects\BattleTank2005\DirectX Support\dxmutmisc.cs    2189    61    BattleTank2005


 
 
The ZMan





PostPosted: Game Technologies: DirectX 101, Getting 133 Errors In Coding4Fun Tutorial Top

I think this means you are missing some of the dx*.* files. Try loading up some SDK samples and look for which file Framework is defined in.

 
 
ForbidenMaster





PostPosted: Game Technologies: DirectX 101, Getting 133 Errors In Coding4Fun Tutorial Top

I was going over the same tutorial and at the bottom it has this:

"That’s it. We now have a way to track time. As an added bonus, in the next article, we will use this timer to compute our frame rate. You will notice that the solution now will no longer build. This is because the classes in the file we added require DirectX to be referenced. We are going to cover which parts of DirectX we need in the next article."

I asume that is the problem, I have yet to do the next tutorial yet (going to do it right now).



 
 
Gideon Kane





PostPosted: Game Technologies: DirectX 101, Getting 133 Errors In Coding4Fun Tutorial Top

While you could comment out the code that is un-used, you probably prefer to know how to solve the problem. The 'dxmutmisc.cs' code uses several classes defined in the same "Samples\Managed\Common" directory. To resolve the error, you have to add the other classes to your project.

More specifically, add the following existing items to the 'DirectXSupport' folder you created--

  • dxmut.cs
  • dxmutdata.cs
  • dxmutenum.cs
  • dxmutexceptions.cs
  • dxmutgui.cs
  • dxmutmisc.cs
  • dxmutSettingsDlg.cs

I also suggest reviewing the files in '\Samples\Managed\Direct3D\EmptyProject*'