C#+ 已捕获:“无效的 URI: 未能确定 URI 的格式。”(System.UriFormatException) 异常消息 = "无效的 URI:
代码:privatevoidKillFood(){this.ClearFood(this.foodPoint);System.Media.SoundPlayerplaye...
代码:
private void KillFood()
{
this.ClearFood(this.foodPoint);
System.Media.SoundPlayer player = new System.Media.SoundPlayer();
player.SoundLocation = @"Resources2\Effect34.wav";
player.Load();
player.Play();
}
这个方法里,这句:
player.SoundLocation = @"Resources2\Effect34.wav"; 展开
private void KillFood()
{
this.ClearFood(this.foodPoint);
System.Media.SoundPlayer player = new System.Media.SoundPlayer();
player.SoundLocation = @"Resources2\Effect34.wav";
player.Load();
player.Play();
}
这个方法里,这句:
player.SoundLocation = @"Resources2\Effect34.wav"; 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询