Re: newbie dx compile question
- From: jeremiah johnson <naikrovek@xxxxxxxxx>
- Date: Sun, 18 Sep 2005 21:28:46 -0500
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
.
- References:
- newbie dx compile question
- From: Andrew Christ
- newbie dx compile question
- Prev by Date: Re: combining css with c#
- Next by Date: Re: C# Language Specification - Delegates
- Previous by thread: Re: newbie dx compile question
- Next by thread: What's the typeof() function for?
- Index(es):
Relevant Pages
|