[System::Runtime::InteropServices::DllImport("winmm.dll")]
extern
bool PlaySound(String^ lpszName, int hModule, int dwFlags);
2. Вызываем нужные методы:
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
PlaySound(Application::StartupPath + "\\ring.wav", 0, 1);
}
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
PlaySound(Application::StartupPath + "\\ring.wav", 0, 1);
}