// SoundWAVPlay.cpp : メイン プロジェクト ファイルです。 #include "stdafx.h" using namespace System; using namespace System::Media; int main(array ^args) { String^ path = "xmas004.wav"; SoundPlayer^ wavePlayer = gcnew SoundPlayer(path); wavePlayer->PlaySync(); return 0; }