繁体   English   中英

不受支持的文件Visual Studio 2015吗?

[英]Unsupported file ion Visual Studio 2015?

我和我的朋友正在制作一个可以在窗口中运行的简单游戏。 我已经开始使用它,并且正在使用Visual Studio Community 2015,但是我的朋友有Mac,因此他不能使用与我相同的IDE。 我正在使用Windows窗体,但是它的代码是普通的C ++代码,但是当我的朋友尝试克隆存储库时,它说它是不受支持的文件。 有人知道这是谁吗? 还是任何可以运行此代码的Mac版IDE?

#pragma once

namespace TextRPG {

using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;

/// <summary>
/// Summary for UserInterface
/// </summary>
public ref class UserInterface : public System::Windows::Forms::Form
{
public:
    UserInterface(void)
    {
        InitializeComponent();
        //
        //TODO: Add the constructor code here
        //
    }

protected:
    /// <summary>
    /// Clean up any resources being used.
    /// </summary>
    ~UserInterface()
    {
        if (components)
        {
            delete components;
        }
    }
public: System::Windows::Forms::PictureBox^  pictureBox1;
protected:
public: System::Windows::Forms::PictureBox^  pictureBox2;
public: System::Windows::Forms::Button^  option1;
public: System::Windows::Forms::Button^  option2;
public: System::Windows::Forms::Button^  option3;
public: System::Windows::Forms::Button^  option4;
public: System::Windows::Forms::Button^  startGame;
public: System::Windows::Forms::Button^  saveGame;

public:
    /// <summary>
    /// Required designer variable.
    /// </summary>
    System::ComponentModel::Container ^components;

#pragma region Windows Form Designer generated code
    /// <summary>
    /// Required method for Designer support - do not modify
    /// the contents of this method with the code editor.
    /// </summary>
    void InitializeComponent(void)
    {
        this->pictureBox1 = (gcnew System::Windows::Forms::PictureBox());
        this->pictureBox2 = (gcnew System::Windows::Forms::PictureBox());
        this->option1 = (gcnew System::Windows::Forms::Button());
        this->option2 = (gcnew System::Windows::Forms::Button());
        this->option3 = (gcnew System::Windows::Forms::Button());
        this->option4 = (gcnew System::Windows::Forms::Button());
        this->startGame = (gcnew System::Windows::Forms::Button());
        this->saveGame = (gcnew System::Windows::Forms::Button());
        (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->pictureBox1))->BeginInit();
        (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->pictureBox2))->BeginInit();
        // 
        // pictureBox2
        // 
        this->pictureBox2->ImageLocation = L"C:\\Users\\sylva\\Source\\Repos\\Text-RPG\\Mohammed_Background Scenery.PNG";
        this->pictureBox2->Location = System::Drawing::Point(0, 0);
        this->pictureBox2->Name = L"pictureBox2";
        this->pictureBox2->Size = System::Drawing::Size(870, 627);
        this->pictureBox2->SizeMode = System::Windows::Forms::PictureBoxSizeMode::AutoSize;
        this->pictureBox2->TabIndex = 1;
        this->pictureBox2->TabStop = false;
        this->pictureBox2->Click += gcnew System::EventHandler(this, &UserInterface::pictureBox2_Click);
        // 
        // option1
        // 
        this->option1->Location = System::Drawing::Point(61, 418);
        this->option1->Name = L"option1";
        this->option1->Size = System::Drawing::Size(256, 62);
        this->option1->TabIndex = 2;
        this->option1->Text = L"option1";
        this->option1->UseVisualStyleBackColor = true;
        this->option1->Visible = false;
        // 
        // option2
        // 
        this->option2->Location = System::Drawing::Point(434, 418);
        this->option2->Name = L"option2";
        this->option2->Size = System::Drawing::Size(256, 62);
        this->option2->TabIndex = 3;
        this->option2->Text = L"option2";
        this->option2->UseVisualStyleBackColor = true;
        this->option2->Visible = false;
        // 
        // option3
        // 
        this->option3->Location = System::Drawing::Point(61, 516);
        this->option3->Name = L"option3";
        this->option3->Size = System::Drawing::Size(256, 62);
        this->option3->TabIndex = 4;
        this->option3->Text = L"option3";
        this->option3->UseVisualStyleBackColor = true;
        this->option3->Visible = false;
        // 
        // option4
        // 
        this->option4->Location = System::Drawing::Point(434, 516);
        this->option4->Name = L"option4";
        this->option4->Size = System::Drawing::Size(256, 62);
        this->option4->TabIndex = 5;
        this->option4->Text = L"option4";
        this->option4->UseVisualStyleBackColor = true;
        this->option4->Visible = false;
        // 
        // startGame
        // 
        this->startGame->Location = System::Drawing::Point(276, 317);
        this->startGame->Name = L"startGame";
        this->startGame->Size = System::Drawing::Size(195, 66);
        this->startGame->TabIndex = 6;
        this->startGame->Text = L"Start Game";
        this->startGame->UseVisualStyleBackColor = true;
        this->startGame->Click += gcnew System::EventHandler(this, &UserInterface::startGame_Click);
        // 
        // saveGame
        // 
        this->saveGame->Location = System::Drawing::Point(13, 13);
        this->saveGame->Name = L"saveGame";
        this->saveGame->Size = System::Drawing::Size(114, 37);
        this->saveGame->TabIndex = 7;
        this->saveGame->Text = L"Save Game";
        this->saveGame->UseVisualStyleBackColor = true;
        this->saveGame->Visible = false;
        // 
        // UserInterface
        // 
        this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
        this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
        this->ClientSize = System::Drawing::Size(763, 590);
        this->Controls->Add(this->saveGame);
        this->Controls->Add(this->startGame);
        this->Controls->Add(this->option4);
        this->Controls->Add(this->option3);
        this->Controls->Add(this->option2);
        this->Controls->Add(this->option1);
        this->Controls->Add(this->pictureBox2);
        this->Controls->Add(this->pictureBox1);
        this->Name = L"UserInterface";
        this->Text = L"UserInterface";
        (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->pictureBox1))->EndInit();
        (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->pictureBox2))->EndInit();
        this->ResumeLayout(false);
        this->PerformLayout();

    }
#pragma endregion
public: System::Void pictureBox2_Click(System::Object^  sender, System::EventArgs^  e) {
}
public: System::Void startGame_Click(System::Object^  sender, System::EventArgs^  e) {

    option1->Visible = true;
    option2->Visible = true;
    option3->Visible = true;
    option4->Visible = true;
    saveGame->Visible = true;
    startGame->Visible = false;
}
};
}

有两种解决方法。 您的朋友可以安装虚拟机,并在此计算机上运行VS 2015。 第二种方法是Jetbrains的CLion,它是C ++开发人员最酷的IDE之一,并且适用于Windows和Mac,也许您可​​以使用它。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM