Visual Studio '}' bekleniyor hatası

behzat_c

Hectopat
Katılım
28 Kasım 2020
Mesajlar
893
Çözümler
6
Daha fazla  
Cinsiyet
Erkek
Merhabalar. Visual Studio üzerinde bir open source projeyi düzenliyorum. Derledikten sonra '}' bekleniyor hatasını aldım. Ne yapmalıyım?

C++:
namespace GABB {

    using namespace System;
    using namespace System::ComponentModel;
    using namespace System::Collections;
    using namespace System::Windows::Forms;
    using namespace System::Data;
    using namespace System::Drawing;
    public ref class Form1 : public System::Windows::Forms::Form
    {
    public:
        Form1(void)
        {
            InitializeComponent();
        }

    protected:
        ~Form1()
        {
            if (components)
            {
                delete components;
            }
        }
    protected:
    private: System::Windows::Forms::Timer^ engineEventTimer;
    private: System::ComponentModel::BackgroundWorker^ backgroundWorker1;
    private: System::Windows::Forms::TabPage^ tabAccounts;
    private: System::Windows::Forms::Label^ labelUnbannerTimer;
    private: System::Windows::Forms::Panel^ panelAccountsEdit;
    private: System::Windows::Forms::Button^ buttonAccountEditRandom;
    private: System::Windows::Forms::Button^ buttonAccountEditCANCEL;
    private: System::Windows::Forms::Button^ buttonAccountEditOK;
    private: System::Windows::Forms::Label^ label7;
    private: System::Windows::Forms::Label^ label6;
    private: System::Windows::Forms::Label^ labelAccountEdit;
    private: System::Windows::Forms::TextBox^ textBoxAccountsCreateName;
    private: System::Windows::Forms::TextBox^ textBoxAccountsCreateMAC;
    private: System::Windows::Forms::Button^ buttonAccountsEdit;
    private: System::Windows::Forms::Button^ buttonAccountsAdd;
    private: System::Windows::Forms::Button^ buttonAccountsUnban;
    private: System::Windows::Forms::Button^ buttonAccountsDelete;
    private: System::Windows::Forms::Button^ buttonAccountsSet;
    private: System::Windows::Forms::TextBox^ textBoxAccountsCurrent;
    private: System::Windows::Forms::Label^ label4;
    private: System::Windows::Forms::ListBox^ listBoxAccounts;
    private: System::Windows::Forms::TabControl^ tabControl1;











































































































































    private: System::ComponentModel::IContainer^ components;
    private:
#pragma region Windows Form Designer generated code
        /// <summary>
        /// Metoda wymagana do obs³ugi projektanta — nie nale¿y modyfikowaæ
        /// jej zawartoœci w edytorze kodu.
        /// </summary>
        void InitializeComponent(void)
        {
            this->components = (gcnew System::ComponentModel::Container());
            System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid));
            this->engineEventTimer = (gcnew System::Windows::Forms::Timer(this->components));
            this->backgroundWorker1 = (gcnew System::ComponentModel::BackgroundWorker());
            this->tabAccounts = (gcnew System::Windows::Forms::TabPage());
            this->listBoxAccounts = (gcnew System::Windows::Forms::ListBox());
            this->label4 = (gcnew System::Windows::Forms::Label());
            this->textBoxAccountsCurrent = (gcnew System::Windows::Forms::TextBox());
            this->buttonAccountsSet = (gcnew System::Windows::Forms::Button());
            this->buttonAccountsDelete = (gcnew System::Windows::Forms::Button());
            this->buttonAccountsUnban = (gcnew System::Windows::Forms::Button());
            this->buttonAccountsAdd = (gcnew System::Windows::Forms::Button());
            this->buttonAccountsEdit = (gcnew System::Windows::Forms::Button());
            this->panelAccountsEdit = (gcnew System::Windows::Forms::Panel());
            this->textBoxAccountsCreateMAC = (gcnew System::Windows::Forms::TextBox());
            this->textBoxAccountsCreateName = (gcnew System::Windows::Forms::TextBox());
            this->labelAccountEdit = (gcnew System::Windows::Forms::Label());
            this->label6 = (gcnew System::Windows::Forms::Label());
            this->label7 = (gcnew System::Windows::Forms::Label());
            this->buttonAccountEditOK = (gcnew System::Windows::Forms::Button());
            this->buttonAccountEditCANCEL = (gcnew System::Windows::Forms::Button());
            this->buttonAccountEditRandom = (gcnew System::Windows::Forms::Button());
            this->labelUnbannerTimer = (gcnew System::Windows::Forms::Label());
            this->tabControl1 = (gcnew System::Windows::Forms::TabControl());
            this->tabAccounts->SuspendLayout();
            this->panelAccountsEdit->SuspendLayout();
            this->tabControl1->SuspendLayout();
            this->SuspendLayout();
            //
            // engineEventTimer
            //
            this->engineEventTimer->Enabled = true;
            this->engineEventTimer->Interval = 10;
            //
            // tabAccounts
            //
            this->tabAccounts->BackColor = System::Drawing::Color::Black;
            this->tabAccounts->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"tabAccounts.BackgroundImage")));
            this->tabAccounts->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Zoom;
            this->tabAccounts->Controls->Add(this->labelUnbannerTimer);
            this->tabAccounts->Controls->Add(this->panelAccountsEdit);
            this->tabAccounts->Controls->Add(this->buttonAccountsEdit);
            this->tabAccounts->Controls->Add(this->buttonAccountsAdd);
            this->tabAccounts->Controls->Add(this->buttonAccountsUnban);
            this->tabAccounts->Controls->Add(this->buttonAccountsDelete);
            this->tabAccounts->Controls->Add(this->buttonAccountsSet);
            this->tabAccounts->Controls->Add(this->textBoxAccountsCurrent);
            this->tabAccounts->Controls->Add(this->label4);
            this->tabAccounts->Controls->Add(this->listBoxAccounts);
            this->tabAccounts->Location = System::Drawing::Point(4, 44);
            this->tabAccounts->Name = L"tabAccounts";
            this->tabAccounts->Size = System::Drawing::Size(832, 334);
            this->tabAccounts->TabIndex = 8;
            this->tabAccounts->Text = L"Devices";
            //
            // listBoxAccounts
            //
            this->listBoxAccounts->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(36)), static_cast<System::Int32>(static_cast<System::Byte>(36)),
                static_cast<System::Int32>(static_cast<System::Byte>(36)));
            this->listBoxAccounts->Font = (gcnew System::Drawing::Font(L"Trebuchet MS", 10));
            this->listBoxAccounts->ForeColor = System::Drawing::Color::White;
            this->listBoxAccounts->ItemHeight = 18;
            this->listBoxAccounts->Location = System::Drawing::Point(178, 9);
            this->listBoxAccounts->Name = L"listBoxAccounts";
            this->listBoxAccounts->Size = System::Drawing::Size(390, 310);
            this->listBoxAccounts->TabIndex = 0;
            //
            // label4
            //
            this->label4->AutoSize = true;
            this->label4->BackColor = System::Drawing::Color::Transparent;
            this->label4->Font = (gcnew System::Drawing::Font(L"Trebuchet MS", 10));
            this->label4->ForeColor = System::Drawing::Color::White;
            this->label4->Location = System::Drawing::Point(574, 9);
            this->label4->Name = L"label4";
            this->label4->Size = System::Drawing::Size(107, 18);
            this->label4->TabIndex = 1;
            this->label4->Text = L"Current device:";
            //
            // textBoxAccountsCurrent
            //
            this->textBoxAccountsCurrent->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(36)),
                static_cast<System::Int32>(static_cast<System::Byte>(36)), static_cast<System::Int32>(static_cast<System::Byte>(36)));
            this->textBoxAccountsCurrent->ForeColor = System::Drawing::Color::White;
            this->textBoxAccountsCurrent->Location = System::Drawing::Point(574, 30);
            this->textBoxAccountsCurrent->Name = L"textBoxAccountsCurrent";
            this->textBoxAccountsCurrent->ReadOnly = true;
            this->textBoxAccountsCurrent->Size = System::Drawing::Size(245, 26);
            this->textBoxAccountsCurrent->TabIndex = 2;
            this->textBoxAccountsCurrent->TextAlign = System::Windows::Forms::HorizontalAlignment::Center;
            //
            // buttonAccountsSet
            //
            this->buttonAccountsSet->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(36)),
                static_cast<System::Int32>(static_cast<System::Byte>(36)), static_cast<System::Int32>(static_cast<System::Byte>(36)));
            this->buttonAccountsSet->FlatStyle = System::Windows::Forms::FlatStyle::Flat;
            this->buttonAccountsSet->ForeColor = System::Drawing::Color::White;
            this->buttonAccountsSet->Location = System::Drawing::Point(8, 9);
            this->buttonAccountsSet->Name = L"buttonAccountsSet";
            this->buttonAccountsSet->Size = System::Drawing::Size(164, 33);
            this->buttonAccountsSet->TabIndex = 4;
            this->buttonAccountsSet->Text = L"SET";
            this->buttonAccountsSet->UseVisualStyleBackColor = false;
            //
            // buttonAccountsDelete
            //
            this->buttonAccountsDelete->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(36)),
                static_cast<System::Int32>(static_cast<System::Byte>(36)), static_cast<System::Int32>(static_cast<System::Byte>(36)));
            this->buttonAccountsDelete->FlatStyle = System::Windows::Forms::FlatStyle::Flat;
            this->buttonAccountsDelete->ForeColor = System::Drawing::Color::White;
            this->buttonAccountsDelete->Location = System::Drawing::Point(8, 286);
            this->buttonAccountsDelete->Name = L"buttonAccountsDelete";
            this->buttonAccountsDelete->Size = System::Drawing::Size(164, 33);
            this->buttonAccountsDelete->TabIndex = 4;
            this->buttonAccountsDelete->Text = L"DELETE";
            this->buttonAccountsDelete->UseVisualStyleBackColor = false;
            //
            // buttonAccountsUnban
            //
            this->buttonAccountsUnban->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(36)),
                static_cast<System::Int32>(static_cast<System::Byte>(36)), static_cast<System::Int32>(static_cast<System::Byte>(36)));
            this->buttonAccountsUnban->FlatStyle = System::Windows::Forms::FlatStyle::Flat;
            this->buttonAccountsUnban->ForeColor = System::Drawing::Color::White;
            this->buttonAccountsUnban->Location = System::Drawing::Point(621, 286);
            this->buttonAccountsUnban->Name = L"buttonAccountsUnban";
            this->buttonAccountsUnban->Size = System::Drawing::Size(164, 33);
            this->buttonAccountsUnban->TabIndex = 4;
            this->buttonAccountsUnban->Text = L"UNBAN";
            this->buttonAccountsUnban->UseVisualStyleBackColor = false;
            //
            // buttonAccountsAdd
            //
            this->buttonAccountsAdd->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(36)),
                static_cast<System::Int32>(static_cast<System::Byte>(36)), static_cast<System::Int32>(static_cast<System::Byte>(36)));
            this->buttonAccountsAdd->FlatStyle = System::Windows::Forms::FlatStyle::Flat;
            this->buttonAccountsAdd->ForeColor = System::Drawing::Color::White;
            this->buttonAccountsAdd->Location = System::Drawing::Point(8, 247);
            this->buttonAccountsAdd->Name = L"buttonAccountsAdd";
            this->buttonAccountsAdd->Size = System::Drawing::Size(164, 33);
            this->buttonAccountsAdd->TabIndex = 4;
            this->buttonAccountsAdd->Text = L"ADD";
            this->buttonAccountsAdd->UseVisualStyleBackColor = false;
            //
            // buttonAccountsEdit
            //
            this->buttonAccountsEdit->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(36)),
                static_cast<System::Int32>(static_cast<System::Byte>(36)), static_cast<System::Int32>(static_cast<System::Byte>(36)));
            this->buttonAccountsEdit->FlatStyle = System::Windows::Forms::FlatStyle::Flat;
            this->buttonAccountsEdit->ForeColor = System::Drawing::Color::White;
            this->buttonAccountsEdit->Location = System::Drawing::Point(8, 208);
            this->buttonAccountsEdit->Name = L"buttonAccountsEdit";
            this->buttonAccountsEdit->Size = System::Drawing::Size(164, 33);
            this->buttonAccountsEdit->TabIndex = 4;
            this->buttonAccountsEdit->Text = L"EDIT";
            this->buttonAccountsEdit->UseVisualStyleBackColor = false;

            //
            // panelAccountsEdit
            //
            this->panelAccountsEdit->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(24)),
                static_cast<System::Int32>(static_cast<System::Byte>(24)), static_cast<System::Int32>(static_cast<System::Byte>(28)));
            this->panelAccountsEdit->BorderStyle = System::Windows::Forms::BorderStyle::FixedSingle;
            this->panelAccountsEdit->Controls->Add(this->buttonAccountEditRandom);
            this->panelAccountsEdit->Controls->Add(this->buttonAccountEditCANCEL);
            this->panelAccountsEdit->Controls->Add(this->buttonAccountEditOK);
            this->panelAccountsEdit->Controls->Add(this->label7);
            this->panelAccountsEdit->Controls->Add(this->label6);
            this->panelAccountsEdit->Controls->Add(this->labelAccountEdit);
            this->panelAccountsEdit->Controls->Add(this->textBoxAccountsCreateName);
            this->panelAccountsEdit->Controls->Add(this->textBoxAccountsCreateMAC);
            this->panelAccountsEdit->Location = System::Drawing::Point(106, 48);
            this->panelAccountsEdit->Name = L"panelAccountsEdit";
            this->panelAccountsEdit->Size = System::Drawing::Size(628, 232);
            this->panelAccountsEdit->TabIndex = 5;
            this->panelAccountsEdit->Visible = false;
            //
            // textBoxAccountsCreateMAC
            //
            this->textBoxAccountsCreateMAC->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(36)),
                static_cast<System::Int32>(static_cast<System::Byte>(36)), static_cast<System::Int32>(static_cast<System::Byte>(36)));
            this->textBoxAccountsCreateMAC->ForeColor = System::Drawing::Color::White;
            this->textBoxAccountsCreateMAC->Location = System::Drawing::Point(33, 150);
            this->textBoxAccountsCreateMAC->Name = L"textBoxAccountsCreateMAC";
            this->textBoxAccountsCreateMAC->Size = System::Drawing::Size(560, 26);
            this->textBoxAccountsCreateMAC->TabIndex = 0;
            this->textBoxAccountsCreateMAC->TextAlign = System::Windows::Forms::HorizontalAlignment::Center;
            //
            // textBoxAccountsCreateName
            //
            this->textBoxAccountsCreateName->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(36)),
                static_cast<System::Int32>(static_cast<System::Byte>(36)), static_cast<System::Int32>(static_cast<System::Byte>(36)));
            this->textBoxAccountsCreateName->ForeColor = System::Drawing::Color::White;
            this->textBoxAccountsCreateName->Location = System::Drawing::Point(33, 79);
            this->textBoxAccountsCreateName->Name = L"textBoxAccountsCreateName";
            this->textBoxAccountsCreateName->Size = System::Drawing::Size(560, 26);
            this->textBoxAccountsCreateName->TabIndex = 0;
            this->textBoxAccountsCreateName->TextAlign = System::Windows::Forms::HorizontalAlignment::Center;
            //
            // labelAccountEdit
            //
            this->labelAccountEdit->Font = (gcnew System::Drawing::Font(L"Trebuchet MS", 14));
            this->labelAccountEdit->ForeColor = System::Drawing::Color::White;
            this->labelAccountEdit->Location = System::Drawing::Point(3, 12);
            this->labelAccountEdit->Name = L"labelAccountEdit";
            this->labelAccountEdit->Size = System::Drawing::Size(620, 35);
            this->labelAccountEdit->TabIndex = 1;
            this->labelAccountEdit->Text = L"Editting Device";
            this->labelAccountEdit->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
            //
            // label6
            //
            this->label6->ForeColor = System::Drawing::Color::White;
            this->label6->Location = System::Drawing::Point(3, 56);
            this->label6->Name = L"label6";
            this->label6->Size = System::Drawing::Size(620, 20);
            this->label6->TabIndex = 2;
            this->label6->Text = L"Name (just a descriptor for you):";
            this->label6->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
            //
            // label7
            //
            this->label7->ForeColor = System::Drawing::Color::White;
            this->label7->Location = System::Drawing::Point(3, 127);
            this->label7->Name = L"label7";
            this->label7->Size = System::Drawing::Size(620, 20);
            this->label7->TabIndex = 2;
            this->label7->Text = L"MAC:";
            this->label7->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
            //
            // buttonAccountEditOK
            //
            this->buttonAccountEditOK->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(36)),
                static_cast<System::Int32>(static_cast<System::Byte>(36)), static_cast<System::Int32>(static_cast<System::Byte>(36)));
            this->buttonAccountEditOK->FlatStyle = System::Windows::Forms::FlatStyle::Flat;
            this->buttonAccountEditOK->ForeColor = System::Drawing::Color::White;
            this->buttonAccountEditOK->Location = System::Drawing::Point(389, 182);
            this->buttonAccountEditOK->Name = L"buttonAccountEditOK";
            this->buttonAccountEditOK->Size = System::Drawing::Size(139, 31);
            this->buttonAccountEditOK->TabIndex = 3;
            this->buttonAccountEditOK->Text = L"OK";
            this->buttonAccountEditOK->UseVisualStyleBackColor = false;
            //
            // buttonAccountEditCANCEL
            //
            this->buttonAccountEditCANCEL->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(36)),
                static_cast<System::Int32>(static_cast<System::Byte>(36)), static_cast<System::Int32>(static_cast<System::Byte>(36)));
            this->buttonAccountEditCANCEL->FlatStyle = System::Windows::Forms::FlatStyle::Flat;
            this->buttonAccountEditCANCEL->ForeColor = System::Drawing::Color::White;
            this->buttonAccountEditCANCEL->Location = System::Drawing::Point(99, 182);
            this->buttonAccountEditCANCEL->Name = L"buttonAccountEditCANCEL";
            this->buttonAccountEditCANCEL->Size = System::Drawing::Size(139, 31);
            this->buttonAccountEditCANCEL->TabIndex = 3;
            this->buttonAccountEditCANCEL->Text = L"CANCEL";
            this->buttonAccountEditCANCEL->UseVisualStyleBackColor = false;
            //
            // buttonAccountEditRandom
            //
            this->buttonAccountEditRandom->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(36)),
                static_cast<System::Int32>(static_cast<System::Byte>(36)), static_cast<System::Int32>(static_cast<System::Byte>(36)));
            this->buttonAccountEditRandom->FlatStyle = System::Windows::Forms::FlatStyle::Flat;
            this->buttonAccountEditRandom->ForeColor = System::Drawing::Color::White;
            this->buttonAccountEditRandom->Location = System::Drawing::Point(244, 182);
            this->buttonAccountEditRandom->Name = L"buttonAccountEditRandom";
            this->buttonAccountEditRandom->Size = System::Drawing::Size(139, 31);
            this->buttonAccountEditRandom->TabIndex = 3;
            this->buttonAccountEditRandom->Text = L"RANDOM";
            this->buttonAccountEditRandom->UseVisualStyleBackColor = false;
            //
            // labelUnbannerTimer
            //
            this->labelUnbannerTimer->AutoSize = true;
            this->labelUnbannerTimer->BackColor = System::Drawing::Color::Transparent;
            this->labelUnbannerTimer->ForeColor = System::Drawing::Color::White;
            this->labelUnbannerTimer->Location = System::Drawing::Point(621, 322);
            this->labelUnbannerTimer->Name = L"labelUnbannerTimer";
            this->labelUnbannerTimer->Size = System::Drawing::Size(0, 22);
            this->labelUnbannerTimer->TabIndex = 6;
            //
            // tabControl1
            //
            this->tabControl1->AllowDrop = true;
            this->tabControl1->Controls->Add(this->tabAccounts);
            this->tabControl1->Dock = System::Windows::Forms::DockStyle::Fill;
            this->tabControl1->Font = (gcnew System::Drawing::Font(L"Trebuchet MS", 12, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
                static_cast<System::Byte>(238)));
            this->tabControl1->ItemSize = System::Drawing::Size(90, 40);
            this->tabControl1->Location = System::Drawing::Point(0, 0);
            this->tabControl1->Name = L"tabControl1";
            this->tabControl1->RightToLeft = System::Windows::Forms::RightToLeft::No;
            this->tabControl1->SelectedIndex = 0;
            this->tabControl1->Size = System::Drawing::Size(840, 382);
            this->tabControl1->SizeMode = System::Windows::Forms::TabSizeMode::Fixed;
            this->tabControl1->TabIndex = 3;
            //
            // Form1
            //
            this->AllowDrop = true;
            this->AutoScaleDimensions = System::Drawing::SizeF(6, 16);
            this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
            this->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(24)), static_cast<System::Int32>(static_cast<System::Byte>(24)),
                static_cast<System::Int32>(static_cast<System::Byte>(28)));
            this->ClientSize = System::Drawing::Size(840, 382);
            this->Controls->Add(this->tabControl1);
            this->Font = (gcnew System::Drawing::Font(L"Trebuchet MS", 8.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
                static_cast<System::Byte>(238)));
            this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedDialog;
            this->Icon = (cli::safe_cast<System::Drawing::Icon^>(resources->GetObject(L"$this.Icon")));
            this->Margin = System::Windows::Forms::Padding(3, 4, 3, 4);
            this->MaximizeBox = false;
            this->Name = L"Form1";
            this->Opacity = 0.97;
            this->Text = L"GABB by Sircam";
            this->tabAccounts->ResumeLayout(false);
            this->tabAccounts->PerformLayout();
            this->panelAccountsEdit->ResumeLayout(false);
            this->panelAccountsEdit->PerformLayout();
            this->tabControl1->ResumeLayout(false);
            this->ResumeLayout(false);

        }

1623075098302.png
 
Hocam Windows Defender korumayı komple kapatın gabb virüslü bir şey. Eskiden Growtopia oynadığım için biliyorum. Yüksek derece de trojan var PC'yi bozmaya değmez.
 
Bu içeriği görüntülemek için üçüncü taraf çerezlerini yerleştirmek için izninize ihtiyacımız olacak.
Daha detaylı bilgi için, çerezler sayfamıza bakınız.
şu videoyu izleyin.
Benim yapmaya çalıştığım aslında. Sadece GABB'da ki Device kısmını ayrı bir program gibi yapmak. Sanırım diğer dosyalarla kodların bağlantısı olduğundan hata veriyor. Saatlerce uğraşmak gerek sanırım.
 

Geri
Yukarı