Thread View: borland.public.cppbuilder.multimedia
3 messages
3 total messages
Started by Kresten Tolstrup
Mon, 23 Apr 2007 13:58
Direct sound
Author: Kresten Tolstrup
Date: Mon, 23 Apr 2007 13:58
Date: Mon, 23 Apr 2007 13:58
11 lines
1265 bytes
1265 bytes
Hi, I intend to use direct sound from DirectX. do anyone have any examples? 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 ; I'm using BCB6. Does anyone know what is missing? Best Regards Kresten
Re: Direct sound
Author: Remy Lebeau (TeamB)
Date: Mon, 23 Apr 2007 18:09
Date: Mon, 23 Apr 2007 18:09
21 lines
1871 bytes
1871 bytes
"Kresten Tolstrup" <kt@danphone.com> wrote in message news:462cbb6e$1@newsgroups.borland.com... > 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
Re: Direct sound
Author: Darren Dwyer
Date: Sat, 02 Jun 2007 22:35
Date: Sat, 02 Jun 2007 22:35
20 lines
1603 bytes
1603 bytes
look at http://bcb-tools.com DirectX Components for BCB - darren "Kresten Tolstrup" <kt@danphone.com> wrote in message news:462cbb6e$1@newsgroups.borland.com... > > Hi, > I intend to use direct sound from DirectX. do anyone have any examples? > 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 ; > I'm using BCB6. > Does anyone know what is missing? > Best Regards > Kresten
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads