Directsound C++ problem...

Programming Reality Factory and Genesis3D.
Post Reply
Fix_Metal
Posts: 1
Joined: Fri Mar 03, 2006 8:09 pm
Contact:

Directsound C++ problem...

Post by Fix_Metal » Fri Mar 03, 2006 8:15 pm

Hi all. I'm using C++Builder 6 from Borland.
I'm about to begin DSound programming but i get a compiler problem when including DSound.h

Exactly the problem is on line 60 @ this entries:

#ifndef _LPCWAVEFORMATEX_DEFINED
#define _LPCWAVEFORMATEX_DEFINED
typedef const WAVEFORMATEX *LPCWAVEFORMATEX; <--line 62
#endif // _LPCWAVEFORMATEX_DEFINED

[C++ Error] Dsound.h(62): E2257 , expected
[C++ Error] Dsound.h(129): E2303 Type name expected
[C++ Error] Dsound.h(129): E2139 Declaration missing ;
[C++ Error] Dsound.h(143): E2303 Type name expected
[C++ Error] Dsound.h(143): E2139 Declaration missing ;
[C++ Error] Dsound.h(194): E2303 Type name expected
[C++ Error] Dsound.h(194): E2139 Declaration missing ;

those next errors are caused by the first error.
any advice?:\
thank you all.

Post Reply