MessageBox自身に送信します。インスタンス過負荷メッセージボックス
エラー:
'メッセージボックス':あいまいなシンボルのIntelliSense:オーバーロードされた関数のインスタンス
のIntelliSense:オーバーロードされた関数のインスタンス「システム:: Windowsの::フォーム:: MessageBox :: Show "は引数リストと一致します 引数の型は次のとおりです。(const char [12]、System :: Windows :: Forms :: MessageBoxButtons、 System :: Windows :: Forms :: MessageBoxIcon)
私も#include <windows.h>
コードを使用している:
private: System::Void autoriusToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {
MessageBox::Show("Close:\n"
"Program?", MessageBoxButtons::OK);
}
private: System::Void apieProgramaToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {
MessageBox::Show("Choose your answer", MessageBoxButtons::YesNoCancel, MessageBoxIcon::Exclamation);
}
あなたの問題に関連していない、しかし、あなたはあなたのユーザー「プログラムの強制終了を?」尋ねると、彼は唯一の「OK」オプションを与えていない。このような
何かがあなたのためのトリックを行う必要があります! –
C++/CLIによるGUIアプリケーションの作成は実際にはサポートされていません。代わりにC#を使用することを検討してください。 –