<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'playing wav files with visual C++ ?' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'playing wav files with visual C++ ?' posted on the 'C and C++' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 25 May 2013 18:12:24 -0700</pubDate>
    <lastBuildDate>Sat, 25 May 2013 18:12:24 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>playing wav files with visual C++ ?</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/282905/282905/playing-wav-files-with-visual-c++-/</link>
      <description>I want to play a wav file in my visual C++ program.    I havent been able to find any examples of this.  Can any one help me ?   Thanks&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/282905/282905/playing-wav-files-with-visual-c++-/</guid>
      <pubDate>Sat, 27 Nov 2004 09:32:49 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: playing wav files with visual C++ ?</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/282905/282926/re-playing-wav-files-with-visual-c++-/#282926</link>
      <description>: I want to play a wav file in my visual C++ program.    I havent been able to find any examples of this.  Can any one help me ?   Thanks&lt;br /&gt;
: &lt;br /&gt;
&lt;span style="color: Blue;"&gt;Try this:&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_playsound.asp"&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_playsound.asp&lt;/a&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/282905/282926/re-playing-wav-files-with-visual-c++-/#282926</guid>
      <pubDate>Sat, 27 Nov 2004 14:43:16 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: playing wav files with visual C++ ?</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/282905/282943/re-playing-wav-files-with-visual-c++-/#282943</link>
      <description>: : I want to play a wav file in my visual C++ program.    I havent been able to find any examples of this.  Can any one help me ?   Thanks&lt;br /&gt;
: : &lt;br /&gt;
: &lt;span style="color: Blue;"&gt;Try this:&lt;br /&gt;
: &lt;br /&gt;
: &lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_playsound.asp"&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_playsound.asp&lt;/a&gt;&lt;br /&gt;
: &lt;/span&gt;&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I am trying to do this with a simple dialog program using MFC with visual studios 6.0.   I am using a win 98 platform.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I tried:&lt;br /&gt;
&lt;br /&gt;
     PlaySound("test.wav", NULL, SND_FILENAME | SND_ASYNC);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At the top of the file that I am trying to use the Playsound function,  i added the following:&lt;br /&gt;
&lt;br /&gt;
#include "Windows.h"&lt;br /&gt;
#include "Mmsystem.h"&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I am getting the following error:&lt;br /&gt;
&lt;br /&gt;
drawDlg.obj : error LNK2001: unresolved external symbol __imp__PlaySoundA@12&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any ideas ?&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/282905/282943/re-playing-wav-files-with-visual-c++-/#282943</guid>
      <pubDate>Sat, 27 Nov 2004 22:02:10 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: playing wav files with visual C++ ?</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/282905/282955/re-playing-wav-files-with-visual-c++-/#282955</link>
      <description>: : : I want to play a wav file in my visual C++ program.    I havent been able to find any examples of this.  Can any one help me ?   Thanks&lt;br /&gt;
: : : &lt;br /&gt;
: : &lt;span style="color: Blue;"&gt;Try this:&lt;br /&gt;
: : &lt;br /&gt;
: : &lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_playsound.asp"&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_playsound.asp&lt;/a&gt;&lt;br /&gt;
: : &lt;/span&gt;&lt;br /&gt;
: : &lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: I am trying to do this with a simple dialog program using MFC with visual studios 6.0.   I am using a win 98 platform.&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: I tried:&lt;br /&gt;
: &lt;br /&gt;
:      PlaySound("test.wav", NULL, SND_FILENAME | SND_ASYNC);&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: At the top of the file that I am trying to use the Playsound function,  i added the following:&lt;br /&gt;
: &lt;br /&gt;
: #include "Windows.h"&lt;br /&gt;
: #include "Mmsystem.h"&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: I am getting the following error:&lt;br /&gt;
: &lt;br /&gt;
: drawDlg.obj : error LNK2001: unresolved external symbol __imp__PlaySoundA@12&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: Any ideas ?&lt;br /&gt;
: &lt;br /&gt;
: Thanks&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You'll need to link your project with winmm.lib&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;&lt;span style="color: Blue;"&gt;To understand recursive, first you need to understand recursive&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/282905/282955/re-playing-wav-files-with-visual-c++-/#282955</guid>
      <pubDate>Sun, 28 Nov 2004 03:41:03 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: playing wav files with visual C++ ?</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/282905/282973/re-playing-wav-files-with-visual-c++-/#282973</link>
      <description>&lt;span style="color: Blue;"&gt;In VC++ 6.0 go: Project -&amp;gt; Settings -&amp;gt; Tab 'Link': in the box "Object/library modules:" specify winmm.lib at the end of the line.&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/282905/282973/re-playing-wav-files-with-visual-c++-/#282973</guid>
      <pubDate>Sun, 28 Nov 2004 08:24:03 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: playing wav files with visual C++ ?   Thanks guys ....</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/282905/282980/re-playing-wav-files-with-visual-c++----thanks-guys-/#282980</link>
      <description>: &lt;span style="color: Blue;"&gt;In VC++ 6.0 go: Project -&amp;gt; Settings -&amp;gt; Tab 'Link': in the box "Object/library modules:" specify winmm.lib at the end of the line.&lt;br /&gt;
: &lt;/span&gt;&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
Thanks guys.  I was able to get the wave file playing from my program with your help.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/282905/282980/re-playing-wav-files-with-visual-c++----thanks-guys-/#282980</guid>
      <pubDate>Sun, 28 Nov 2004 10:09:24 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: playing wav files with visual C++ ?</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/282905/341611/re-playing-wav-files-with-visual-c++-/#341611</link>
      <description>: &lt;span style="color: Blue;"&gt;In VC++ 6.0 go: Project -&amp;gt; Settings -&amp;gt; Tab 'Link': in the box "Object/library modules:" specify winmm.lib at the end of the line.&lt;br /&gt;
: &lt;/span&gt;&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
Please give me the entire syntax of playing a wav file in vc++ 6.0&lt;br /&gt;
&lt;br /&gt;
thanx&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/282905/341611/re-playing-wav-files-with-visual-c++-/#341611</guid>
      <pubDate>Fri, 21 Jul 2006 14:05:06 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: playing wav files with visual C++ ?</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/282905/341622/re-playing-wav-files-with-visual-c++-/#341622</link>
      <description>: : &lt;span style="color: Blue;"&gt;In VC++ 6.0 go: Project -&amp;gt; Settings -&amp;gt; Tab 'Link': in the box "Object/library modules:" specify winmm.lib at the end of the line.&lt;br /&gt;
: : &lt;/span&gt;&lt;br /&gt;
: : &lt;br /&gt;
: &lt;br /&gt;
: Please give me the entire syntax of playing a wav file in vc++ 6.0&lt;br /&gt;
: &lt;br /&gt;
: thanx&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
&lt;span style="color: Blue;"&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_playsound.asp&lt;/span&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/282905/341622/re-playing-wav-files-with-visual-c++-/#341622</guid>
      <pubDate>Fri, 21 Jul 2006 20:29:38 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: playing wav files with visual C++ ?</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/282905/341654/re-playing-wav-files-with-visual-c++-/#341654</link>
      <description>thanx but i dont get it. can u send me the source code. im kinda newbie. only work on turbo.&lt;br /&gt;
&lt;br /&gt;
dorwin&lt;br /&gt;
&lt;br /&gt;
: : : &lt;span style="color: Blue;"&gt;In VC++ 6.0 go: Project -&amp;gt; Settings -&amp;gt; Tab 'Link': in the box "Object/library modules:" specify winmm.lib at the end of the line.&lt;br /&gt;
: : : &lt;/span&gt;&lt;br /&gt;
: : : &lt;br /&gt;
: : &lt;br /&gt;
: : Please give me the entire syntax of playing a wav file in vc++ 6.0&lt;br /&gt;
: : &lt;br /&gt;
: : thanx&lt;br /&gt;
: : &lt;br /&gt;
: : &lt;br /&gt;
: &lt;span style="color: Blue;"&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_playsound.asp&lt;/span&gt;&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/282905/341654/re-playing-wav-files-with-visual-c++-/#341654</guid>
      <pubDate>Sat, 22 Jul 2006 10:37:46 -0700</pubDate>
      <category>C and C++</category>
    </item>
  </channel>
</rss>