?
Solved

How to play sounds on Visual c++ 6.0

Posted on 2003-11-07
2
Medium Priority
?
485 Views
Last Modified: 2010-04-01
I am used to turbo c++ 3.0

My school uses visual c++ 6 so i want to convert all my files to visual 6.
But my files only work on DoS environments. I need the header files that would replace my DoS files from turbo to visual.

This is hard becouse Visual didnt work the graphics and sound that I had so i need the headers and the syntax examples that would call sound.

Im used to

playsound(45);
delay(100);
from my turbo c 3.0

i have no idea what to include and use for sound in Visual c++ 6.0
0
Comment
Question by:blacken
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
n_fortynine earned 75 total points
ID: 9704637
Try this:

#include <mmsystem.h>                 /* For PlaySound */
#pragma  comment(lib, "winmm.lib")    /* Linking to Sound DLL */

PlaySound("click.wav", NULL, SND_FILENAME | SND_ASYNC);

0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
Suggested Courses
Course of the Month10 days, 21 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question