Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

MS Visual Studio 2010, error przy kompilacji.


Rekomendowane odpowiedzi

Opublikowano

Cześć, jak w temacie. Mam MS Visual Studio C++ 2010, napisałem program w C++, zapisuję, sprawdzam, "klinuję" i zaczynam kompilować.

tak czekam, kompiluje, a pod koniec wyskakuje error w logu "Build Failed". Jest to prosta przeglądarka, kilka buttonów, odniesienie do mojej strony... testowałem w Dev-C++, żeby skompilować-też nie działa.

 

log z kompilacji:

 

1>------ Build started: Project: vvf, Configuration: Debug Win32 ------
1>Build started 2012-06-07 09:39:29.
1>InitializeBuildStatus:
1>  Touching "Debug\vvf.unsuccessfulbuild".
1>GenerateTargetFrameworkMonikerAttribute:
1>Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
1>ClCompile:
1>  All outputs are up-to-date.
1>  vvf.cpp
1>vvf.cpp(8): error C2337: 'STAThreadAttribute' : attribute not found
1>vvf.cpp(12): error C2653: 'Application' : is not a class or namespace name
1>vvf.cpp(12): error C3861: 'EnableVisualStyles': identifier not found
1>vvf.cpp(13): error C2653: 'Application' : is not a class or namespace name
1>vvf.cpp(13): error C3861: 'SetCompatibleTextRenderingDefault': identifier not found
1>vvf.cpp(16): error C2653: 'Application' : is not a class or namespace name
1>vvf.cpp(16): error C2061: syntax error : identifier 'Form1'
1>vvf.cpp(16): error C3861: 'Run': identifier not found
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:02.40
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

 

 

za pomoc sypię + ^_^

Opublikowano

nie, wszystko sam od początku...

binblioteki są, nawet kod podam...

 

#pragma once

namespace Test {

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 Form1
/// </summary>
public ref class Form1 : public System::Windows::Forms::Form
{
public:
Form1(void)
{
InitializeComponent();
//
//TODO: Add the constructor code here
//
}

protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
~Form1()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::WebBrowser^  webBrowser1;
protected: 

protected: 








private:
/// <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->webBrowser1 = (gcnew System::Windows::Forms::WebBrowser());
this->SuspendLayout();
// 
// webBrowser1
// 
this->webBrowser1->Dock = System::Windows::Forms::DockStyle::Fill;
this->webBrowser1->Location = System::Drawing::Point(0, 0);
this->webBrowser1->MinimumSize = System::Drawing::Size(20, 20);
this->webBrowser1->Name = L"webBrowser1";
this->webBrowser1->Size = System::Drawing::Size(764, 314);
this->webBrowser1->TabIndex = 0;
this->webBrowser1->Url = (gcnew System::Uri(L"http://cortheze.cba.pl", System::UriKind::Absolute));
this->webBrowser1->DocumentCompleted += gcnew System::Windows::Forms::WebBrowserDocumentCompletedEventHandler(this, &Form1::webBrowser1_DocumentCompleted);
// 
// Form1
// 
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->ClientSize = System::Drawing::Size(764, 314);
this->Controls->Add(this->webBrowser1);
this->Name = L"Form1";
this->Text = L"Cortheze Site";
this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);
this->ResumeLayout(false);

}
#pragma endregion
private: System::Void comboBox1_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
}
private: System::Void webBrowser1_DocumentCompleted(System::Object^  sender, System::Windows::Forms::WebBrowserDocumentCompletedEventArgs^  e) {
}
private: System::Void Form1_Load(System::Object^  sender, System::EventArgs^  e) {
}
};
}

 

 

;p

 

wszystko sprawne, tylko że wywala errora przy buildzie :(

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...