これは、[エラー リスト] 出力ウィンドウに移動し、最初のエラーをダブルクリックするか、F8 キーを押すことにより、手動で実行されます。これを自動化する方法はありますか?
(それが重要な場合は、C++ を使用しています。)
これは、[エラー リスト] 出力ウィンドウに移動し、最初のエラーをダブルクリックするか、F8 キーを押すことにより、手動で実行されます。これを自動化する方法はありますか?
(それが重要な場合は、C++ を使用しています。)
vittoreは順調に進んでいます...
VSでは、Alt+F11を押してマクロIDEを開きます。「MyMacros」の下で「EnvironmentEvents」モジュールを開き、これらの3行の下
'Event Sources End
'End of automatically generated code
#End Region
このサブを貼り付けます:
Private Sub BuildEvents_OnBuildProjConfigDone(ByVal Project As String, ByVal ProjectConfig As String, ByVal Platform As String, ByVal SolutionConfig As String, ByVal Success As Boolean)Handles BuildEvents.OnBuildProjConfigDone
If Success = False Then
DTE.ExecuteCommand("Build.Cancel")
Beep()
System.Windows.Forms.MessageBox.Show("Build failed!", "Build Events", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error)
DTE.ExecuteCommand("Edit.GoToNextLocation")
End If
End Sub
もちろん、ビープ音とメッセージボックスをコメントアウトまたは削除することができます...