BELOW IS A CODE SNIPPET
#include <iostream> // Necessary for COUT and CIN
#include <string> //Necessary for STRING variables
#include <mmsystem.h> //Necessary for PlaySound
#include <windows.h> //Necessary for HANDLE,
// BACKGROUND_ and FOREGROUND_ consts, Beep
using namespace std; // Using the standard naming conventions
#pragma comment(lib, "winmm.lib")
int main()
{
//PlaySound(TEXT("allnighter.wav"), 0, SND_SYNC);
the program gives me many errors as soon as i try to run the program with #mmsystem.h
Assume that I have closing brackets at the end of my main, again this is only a snippet, my program works fine without including mmsystem.h
Aucun commentaire:
Enregistrer un commentaire