I use System::Diagnostics::ProcessStartInfo. Ex below
Diagnostics::ProcessStartInfo ^pInfo;
if ( String::IsNullOrEmpty(SoundString) == false )
{
if ( System::IO::File::Exists(SoundString) == true )
{
pInfo = gcnew Diagnostics::ProcessStartInfo();
pInfo->Verb = "play";
pInfo->FileName = SoundString;
pInfo->CreateNoWindow = true;
pInfo->UseShellExecute = false;
Diagnostics::Process::Start(pInfo);
}
else
LogDebugInfo(String::Format(L"SoundString file {0} does not exists", SoundString));
}
else
{
LogDebugInfo(L"SoundString string was empty");
}
Programmer Glenn Earl Graham Austin, TX