sorry i cant include the code here
its too big besides its not my sourcecode that makes these errors.
#include <time.h>
#include <allegro.h>
#include <mmsystem.h>
#include <windows.h>
#pragma comment(lib, "winmm.lib")
#pragma comment(lib, "alleg.lib")
my program works perfectly when i dont include #include <mmsystem.h> &
#include <windows.h>
and dont call function playsound()
now when i compiled it again i get these errors:
Code:
--------------------Configuration: spel - Win32 Debug--------------------
Compiling...
pode.cpp
c:\program files\microsoft visual studio\vc98\include\mmsystem.h(113) : error C2146: syntax error : missing ';' before identifier 'MMVERSION'
c:\program files\microsoft visual studio\vc98\include\mmsystem.h(113) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
pode.obj - 2 error(s), 0 warning(s)
they both point to a line in mmsystem.h
Code:
#ifndef MM_MIDI_MAPPER
#define MM_MIDI_MAPPER 1 /* MIDI Mapper */
#define MM_WAVE_MAPPER 2 /* Wave Mapper */
#define MM_SNDBLST_MIDIOUT 3 /* Sound Blaster MIDI output port */
#define MM_SNDBLST_MIDIIN 4 /* Sound Blaster MIDI input port */
#define MM_SNDBLST_SYNTH 5 /* Sound Blaster internal synthesizer */
#define MM_SNDBLST_WAVEOUT 6 /* Sound Blaster waveform output */
#define MM_SNDBLST_WAVEIN 7 /* Sound Blaster waveform input */
#define MM_ADLIB 9 /* Ad Lib-compatible synthesizer */
#define MM_MPU401_MIDIOUT 10 /* MPU401-compatible MIDI output port */
#define MM_MPU401_MIDIIN 11 /* MPU401-compatible MIDI input port */
#define MM_PC_JOYSTICK 12 /* Joystick adapter */
#endif
#endif
/* general data types */
#ifdef _WIN32
typedef UINT MMVERSION; /* major (high byte), minor (low byte) *///here is the error??
#else
typedef UINT VERSION; /* major (high byte), minor (low byte) */
#endif
typedef UINT MMRESULT; /* error return code, 0 means no error */
/* call as if(err=xxxx(...)) Error(err); else */
#define _MMRESULT_
typedef UINT FAR *LPUINT;
/* MMTIME data structure */
asi said b4 this is from the include file
mmsystem.h
i've never touched it and im sure no one else has either cause i installed
my msvc yesterday
if someone can find the same lines in his file and post to me if its the same?
i would be very thankful