Воспроизведение файла из ресурсов - C#
Формулировка задачи:
[DllImport("winmm.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern long PlaySound(String lpszName, long hModule, long dwFlags);
PlaySound("ConsoleApplication11.Properties.Resources.Up", 1, 1);Решение задачи: «Воспроизведение файла из ресурсов»
textual
Листинг программы
Media.SoundPlayer objPlayer = new Media.SoundPlayer; objPlayer.Stream = My.Resources.Resource1.start; objPlayer.Play();