A
aunthas
I want to play sound using winapi, so I wrote these lines of code:-
-------------------------------------------------------------------------------------------------------------------
using namespace System;
using namespace System::Runtime::InteropServices;
namespace WavAPI
{
[DllImport("winmm.dll")]
extern "C" bool sndPlaySound(String* lpszSound, unsigned int fuSound);
}
-------------------------------------------------------------------------------------------------------------------
But I got "FILETIME: ambiguous symbol" when I compiled, because FILETIME
is both the member of InteropService
namespace and defined in WinDef.h.
I tried to use #undef FILETIME, but it didn't work. How can I solve this
problem? Or is there another way to play
sound from API?
-------------------------------------------------------------------------------------------------------------------
using namespace System;
using namespace System::Runtime::InteropServices;
namespace WavAPI
{
[DllImport("winmm.dll")]
extern "C" bool sndPlaySound(String* lpszSound, unsigned int fuSound);
}
-------------------------------------------------------------------------------------------------------------------
But I got "FILETIME: ambiguous symbol" when I compiled, because FILETIME
is both the member of InteropService
namespace and defined in WinDef.h.
I tried to use #undef FILETIME, but it didn't work. How can I solve this
problem? Or is there another way to play
sound from API?