hi
today i got my msvc to work with allegro
(i use used dev-4 b4)
when i compiled my file
i get the following errors:
Code:--------------------Configuration: playsound - Win32 Debug-------------------- Compiling... playsound.cpp c:\program files\microsoft visual studio\vc98\include\allegro\system.h(29) : error C2371: 'BITMAP' : redefinition; different basic types c:\program files\microsoft visual studio\vc98\include\wingdi.h(486) : see declaration of 'BITMAP' c:\temp\playsound_cpp\playsound\playsound.cpp(378) : error C2731: 'WinMain' : function cannot be overloaded c:\temp\playsound_cpp\playsound\playsound.cpp(378) : see declaration of 'WinMain' Error executing cl.exe. playsound.obj - 2 error(s), 0 warning(s)
i've included:
#include <windows.h>
#include <time.h>
#include <allegro.h>
#include <mmsystem.h>
and i've linked to winmm.lib
to use playsound();
anyone know what is wrong??
thanks



LinkBack URL
About LinkBacks



