求助~VB.NET绝对路径改相对路径问题~~急
Private Sub AxMediaPlayer1_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AxMediaPlayer1.EnterDim strFileName As String
strFileName = Application.StartupPath & "\resources\周杰伦-说好的幸福呢.wma"
With AxMediaPlayer1
.Stop()
.FileName = strFileName
.Play()
End With
End Sub
运行之后显示错误,用户代码未处理ComException.对 COM 组件的调用返回了错误 HRESULT E_FAIL。是什么意思啊,怎么样解决?想放在游戏里做背景音乐的
补充:VB , 基础类