> If I take a new project, include the file dsound.h, and then define
> the variabel: LPDIRECTSOUND pds;, compile the project, then
> I get the following errors:
> [C++ Error] dsound.h(62): E2257 , expected
> [C++ Error] dsound.h(129): E2303 Type name expected
> [C++ Error] dsound.h(129): E2139 Declaration missing ;
The DirectX header files are not very self-contained. They usually
require declarations in other header files, but don't actually include
the headers that they need, requiring the programmer to do it manually
in his/her own code. In this particular case, lines 62 and 129 of
dsound.h are trying to use the WAVEFORMATEX structure, which obviously
has not been declared yet. So you should #include mmreg.h or
mmsystem.h before you #include dsound.h
Gambit
- darren
"Kresten Tolstrup" <k...@danphone.com> wrote in message
news:462cbb6e$1...@newsgroups.borland.com...
>