![]() |
| [[ Home | Forums | 3D Engines Database | Wiki | Articles/Tutorials | Game Dev Jobs | IRC Chat Network | Contact Us ]] |
|
|
#1 |
|
New Member
Join Date: Dec 2005
Location: Egypt
Posts: 1
|
hi all :
I have a problem with using sound in Directx9 when trying to compile a program(I took this project from a tutorial) it gives me 96 errors!! here r the errors: ------------------------------------------------------------------ c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2146: syntax error : missing ';' before identifier 'dwReserved1' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2501: 'dwReserved1' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2146: syntax error : missing ';' before identifier 'dwReserved2' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2501: 'dwReserved2' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\strmif.h(1018) : error C2146: syntax error : missing ';' before identifier 'HSEMAPHORE' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\strmif.h(1018) : fatal error C1004: unexpected end of file found Cone.cpp c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2146: syntax error : missing ';' before identifier 'dwReserved1' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2501: 'dwReserved1' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2146: syntax error : missing ';' before identifier 'dwReserved2' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2501: 'dwReserved2' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\strmif.h(1018) : error C2146: syntax error : missing ';' before identifier 'HSEMAPHORE' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\strmif.h(1018) : fatal error C1004: unexpected end of file found Cuboid.cpp c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2146: syntax error : missing ';' before identifier 'dwReserved1' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2501: 'dwReserved1' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2146: syntax error : missing ';' before identifier 'dwReserved2' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2501: 'dwReserved2' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\strmif.h(1018) : error C2146: syntax error : missing ';' before identifier 'HSEMAPHORE' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\strmif.h(1018) : fatal error C1004: unexpected end of file found Cylinder.cpp c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2146: syntax error : missing ';' before identifier 'dwReserved1' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2501: 'dwReserved1' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2146: syntax error : missing ';' before identifier 'dwReserved2' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2501: 'dwReserved2' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\strmif.h(1018) : error C2146: syntax error : missing ';' before identifier 'HSEMAPHORE' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\strmif.h(1018) : fatal error C1004: unexpected end of file found Font.cpp c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2146: syntax error : missing ';' before identifier 'dwReserved1' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2501: 'dwReserved1' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2146: syntax error : missing ';' before identifier 'dwReserved2' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2501: 'dwReserved2' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\strmif.h(1018) : error C2146: syntax error : missing ';' before identifier 'HSEMAPHORE' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\strmif.h(1018) : fatal error C1004: unexpected end of file found Game.cpp c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2146: syntax error : missing ';' before identifier 'dwReserved1' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2501: 'dwReserved1' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2146: syntax error : missing ';' before identifier 'dwReserved2' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2501: 'dwReserved2' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\strmif.h(1018) : error C2146: syntax error : missing ';' before identifier 'HSEMAPHORE' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\strmif.h(1018) : fatal error C1004: unexpected end of file found Main.cpp c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2146: syntax error : missing ';' before identifier 'dwReserved1' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2501: 'dwReserved1' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2146: syntax error : missing ';' before identifier 'dwReserved2' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2501: 'dwReserved2' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\strmif.h(1018) : error C2146: syntax error : missing ';' before identifier 'HSEMAPHORE' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\strmif.h(1018) : fatal error C1004: unexpected end of file found Mesh.cpp c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2146: syntax error : missing ';' before identifier 'dwReserved1' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2501: 'dwReserved1' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2146: syntax error : missing ';' before identifier 'dwReserved2' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2501: 'dwReserved2' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\strmif.h(1018) : error C2146: syntax error : missing ';' before identifier 'HSEMAPHORE' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\strmif.h(1018) : fatal error C1004: unexpected end of file found Panel.cpp c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2146: syntax error : missing ';' before identifier 'dwReserved1' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2501: 'dwReserved1' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2146: syntax error : missing ';' before identifier 'dwReserved2' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2501: 'dwReserved2' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\strmif.h(1018) : error C2146: syntax error : missing ';' before identifier 'HSEMAPHORE' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\strmif.h(1018) : fatal error C1004: unexpected end of file found Sound.cpp c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2146: syntax error : missing ';' before identifier 'dwReserved1' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2501: 'dwReserved1' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2146: syntax error : missing ';' before identifier 'dwReserved2' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2501: 'dwReserved2' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\strmif.h(1018) : error C2146: syntax error : missing ';' before identifier 'HSEMAPHORE' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\strmif.h(1018) : fatal error C1004: unexpected end of file found Sphere.cpp c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2146: syntax error : missing ';' before identifier 'dwReserved1' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2501: 'dwReserved1' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2146: syntax error : missing ';' before identifier 'dwReserved2' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2501: 'dwReserved2' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\strmif.h(1018) : error C2146: syntax error : missing ';' before identifier 'HSEMAPHORE' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\strmif.h(1018) : fatal error C1004: unexpected end of file found Terrain.cpp c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2146: syntax error : missing ';' before identifier 'dwReserved1' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(305) : error C2501: 'dwReserved1' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2146: syntax error : missing ';' before identifier 'dwReserved2' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\dsound.h(306) : error C2501: 'dwReserved2' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\strmif.h(1018) : error C2146: syntax error : missing ';' before identifier 'HSEMAPHORE' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\strmif.h(1018) : fatal error C1004: unexpected end of file found Error executing cl.exe. ---------------------------------------------------------------------- cud anyone plz helps me in compiling them thnx a lot |
|
|
|
|
|
#2 |
|
DevMaster Staff
Join Date: Sep 2003
Location: Hell
Posts: 1,109
|
Could be because you are not including windows.h before any other include file.
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Oct 2005
Posts: 12
|
I have something similar atm, but i only get these errors.
c:\dxsdk\include\dsound.h(305) : error C2146: syntax error : missing ';' before identifier 'dwReserved1' c:\dxsdk\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers c:\dxsdk\include\dsound.h(305) : error C2501: 'dwReserved1' : missing storage-class or type specifiers c:\dxsdk\include\dsound.h(306) : error C2146: syntax error : missing ';' before identifier 'dwReserved2' c:\dxsdk\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers c:\dxsdk\include\dsound.h(306) : error C2501: 'dwReserved2' : missing storage-class or type specifiers I have tried including windows.h before any others and changing orders of header include files. :S |
|
|
|
|
|
#4 |
|
DevMaster Staff
Join Date: Sep 2003
Location: Hell
Posts: 1,109
|
Make sure you are not forgetting to put a ';' after any class or function declaration. Make sur eyou are not defining DWORD anywhere, becayse that's what those statements teh errors refer to use.
|
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Oct 2005
Location: Pensacola, FL
Posts: 1,028
|
From MSDN:
DWORD_PTR Unsigned long type for pointer precision. Use when casting a pointer to a long type to perform pointer arithmetic. (Also commonly used for general 32-bit parameters that have been extended to 64 bits in 64-bit Windows. ) This type is declared in BaseTsd.h as follows: typedef ULONG_PTR DWORD_PTR; |
|
|
|
|
|
#6 |
|
New Member
Join Date: Oct 2005
Posts: 12
|
I have checked the ';'s and havent defined DWORD anywhere, the error messages are referring to dsound.h.
Windows.h and basetsd.h are included before dsound.h and it still has errors. Please help ![]() |
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Oct 2005
Location: Pensacola, FL
Posts: 1,028
|
The newest version of DirectX doesn't get along well with VC6. Here is a workaround:
http://dhost.info/realityfactory/for...topic.php?t=56 |
|
|
|
|
|
#8 |
|
Valued Member
Join Date: Jul 2005
Posts: 117
|
For the love of god was posting all of that necessary? And why are you still using VC6?
|
|
|
|
|
|
#9 | |
|
Valued Member
Join Date: Oct 2004
Location: Alberta, Canada
Posts: 152
|
Quote:
Why not offer some constructive advice instead of offering only negative comments? It was a valid question, and the OP gave the information he thought necessary for us to help him. Maybe give an alternative to VC6, and how to obtain it legally. Otherwise your post was full of useless text that helps no one. |
|
|
|
|
|
|
#10 | |
|
Valued Member
Join Date: Jul 2005
Posts: 117
|
Quote:
http://img312.imageshack.us/img312/9...fdffdfd4dg.jpg lol, woah take it easy there cowboy. Hopefully my post would encourage the topic creator to just all of that "necessary information" in something called a Pastebin. |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|