Re: newbie dx compile question

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Looks like you're missing some references to me.

Project Menu, Add References. Navigate over to wherever your directX sdk is installed, and find the managed code library folder. Add those DLLs.

jeremiah

Andrew Christ wrote:
I am somewhat new to the c# language, and am working on direct x apps.

I'm having a problem compiling the source for a game that was included as part of the book "Beginning 3d Game Programming" by Tom Miller. I originally tried to compile with the august release of SharpDevelop, but when that failed (with 27 errors) I tried to compile it with my 30 day trial edition of visual studio 2003. Heres the errors that I got (sorry about the length!)

C:\Program Files\Sams Publishing\Beginning 3D Game Programming\Framework\dxmutmisc.cs(2475): 'Microsoft.DirectX.Direct3D.Effect' does not contain a definition for 'EndPass'
C:\Program Files\Sams Publishing\Beginning 3D Game Programming\Framework\dxmutmisc.cs(2473): 'Microsoft.DirectX.Direct3D.Effect' does not contain a definition for 'BeginPass'
C:\Program Files\Sams Publishing\Beginning 3D Game Programming\Framework\dxmutmisc.cs(2448): No overload for method 'SetValue' takes '3' arguments
C:\Program Files\Sams Publishing\Beginning 3D Game Programming\Framework\dxmutmisc.cs(2427): The type or namespace name 'UnsafeNativeMethods' could not be found (are you missing a using directive or an assembly reference?)
C:\Program Files\Sams Publishing\Beginning 3D Game Programming\Framework\dxmutmisc.cs(2426): The type or namespace name 'UnsafeNativeMethods' could not be found (are you missing a using directive or an assembly reference?)
C:\Program Files\Sams Publishing\Beginning 3D Game Programming\Framework\dxmutmisc.cs(2425): The type or namespace name 'UnsafeNativeMethods' could not be found (are you missing a using directive or an assembly reference?)
C:\Program Files\Sams Publishing\Beginning 3D Game Programming\Framework\dxmutmisc.cs(2424): The type or namespace name 'UnsafeNativeMethods' could not be found (are you missing a using directive or an assembly reference?)
C:\Program Files\Sams Publishing\Beginning 3D Game Programming\Framework\dxmutmisc.cs(1812): The type or namespace name 'UnsafeNativeMethods' could not be found (are you missing a using directive or an assembly reference?)
C:\Program Files\Sams Publishing\Beginning 3D Game Programming\Framework\dxmutmisc.cs(1811): The type or namespace name 'UnsafeNativeMethods' could not be found (are you missing a using directive or an assembly reference?)
C:\Program Files\Sams Publishing\Beginning 3D Game Programming\Framework\dxmutmisc.cs(1810): The type or namespace name 'UnsafeNativeMethods' could not be found (are you missing a using directive or an assembly reference?)
C:\Program Files\Sams Publishing\Beginning 3D Game Programming\Framework\dxmutmisc.cs(1809): The type or namespace name 'UnsafeNativeMethods' could not be found (are you missing a using directive or an assembly reference?)
C:\Program Files\Sams Publishing\Beginning 3D Game Programming\Framework\dxmutmisc.cs(680): 'Microsoft.DirectX.Direct3D.Usage' does not contain a definition for 'None'
C:\Program Files\Sams Publishing\Beginning 3D Game Programming\Framework\dxmutmisc.cs(640): 'Microsoft.DirectX.Direct3D.Usage' does not contain a definition for 'None'
C:\Program Files\Sams Publishing\Beginning 3D Game Programming\Framework\dxmutmisc.cs(598): 'Microsoft.DirectX.Direct3D.Usage' does not contain a definition for 'None'
C:\Program Files\Sams Publishing\Beginning 3D Game Programming\Framework\dxmutmesh.cs(90): 'Microsoft.DirectX.Direct3D.MeshFlags' does not contain a definition for 'OptimizeAttributeSort'
C:\Program Files\Sams Publishing\Beginning 3D Game Programming\Framework\dxmutgui.cs(323): 'Microsoft.DirectX.Direct3D.Usage' does not contain a definition for 'None'
C:\Program Files\Sams Publishing\Beginning 3D Game Programming\Framework\dxmutenum.cs(342): Argument '7': cannot convert from 'out int' to 'ref int'
C:\Program Files\Sams Publishing\Beginning 3D Game Programming\Framework\dxmutenum.cs(340): The best overloaded method match for 'Microsoft.DirectX.Direct3D.Manager.CheckDeviceMultiSampleType(int, Microsoft.DirectX.Direct3D.DeviceType, Microsoft.DirectX.Direct3D.Format, bool, Microsoft.DirectX.Direct3D.MultiSampleType, out int, ref int)' has some invalid arguments
C:\Program Files\Sams Publishing\Beginning 3D Game Programming\Framework\dxmut.cs(579): 'Microsoft.DirectX.Direct3D.SwapChain' does not contain a definition for 'PresentParameters'


I have Direct x 9.0c installed, the dx 9.0b sdk, as well as .net 1.1, and 2.0 beta2
I'm not sure whats wrong, but due to the # of errors I'm guessing that I missed somthing obvious.


Any help would be greatly appreciated
.



Relevant Pages

  • Re: Is this still in beta?
    ... Or am I just missing something? ... > DirectX is always under development. ... There is a new SDK every 2 months. ... > used to program your game against. ...
    (microsoft.public.win32.programmer.directx.managed)
  • IDeviceCreation could not be found
    ... added all the DirectX references but when I try to compile it I get ... missing a using directive or an assembly reference?) ...
    (microsoft.public.win32.programmer.directx.managed)
  • Re: Microsoft DirectX 9.0 SDK (October 2005) 2.0 Assembly problem
    ... the 2.0 beta is missing quite a few things.... ... You can't reference the 1.1 and 2.0 assemblies as all the object names will ... http://www.thezbuffer.com - News and information for Managed DirectX ...
    (microsoft.public.win32.programmer.directx.managed)
  • Re: Play. The. Game.
    ... apparently has spirailed out of control and is about, uh, something that I'm missing out on, is this in reference to something that I'm, uh, missing out on? ... There are apparently millions of people who cheat at this game. ... Play. ...
    (rec.games.trading-cards.jyhad)
  • Re: Vista 64 Directx 9 Problem
    ... Call of Duty 4 and Crysis Warhead and both load (directx 9 error) but ... I have tried to install Direct X 9 both ... I can see in explorer that I am missing the d3dx9_34.dll file in my ... Put in the game CD not working ...
    (microsoft.public.games)