newbie dx compile question

G

Guest

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
 
M

Mykre

You should have a look at www.thezbuffer.com, ZMan has updated the code
to work with the current SDK for DirectX. In the short term, try
rebining the DirectX resources for the project and see if that works.

Also I have some notes on the problems I faced with Toms Books posted
on www.ircomm.net. But please note that these problems were only due to
the upgrading of the Managed DirectX Systems in the SDK.

Mykre
www.ircomm.net
Managed DirectX and Game Programming Resources.
 
J

jeremiah johnson

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top