Article View: borland.public.cppbuilder.multimedia
Article #159Re: Direct sound
From: 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
Technical Details
Message-ID:
<462cf6cf$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!news2.euro.net!213.132.189.2.MISMATCH!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<462cbb6e$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,413990ad8b62936 X-Google-Attributes: gid10d0fc,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.multimedia References: <462cbb6e$1@newsgroups.borland.com> Subject: Re: Direct sound Date: Mon, 23 Apr 2007 11:09:58 -0700 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 75.82.60.244 Message-ID: <462cf6cf$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1177351887 75.82.60.244 (23 Apr 2007 11:11:27 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!news2.euro.net!213.132.189.2.MISMATCH!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail