dzanis, на твой пост (
07.02.2013 / 19:57) отвечу, не сработал фокус с
_T#pragma once
namespace array1 {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
char arr[]={"qwerty"};
public ref class Form1 : public System::Windows::Forms::Form
{
public:
Form1(void)
{
InitializeComponent();
}
protected:
~Form1()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::TextBox^ textBox1;
protected:
private:
System::ComponentModel::Container ^components;
#pragma region Windows Form Designer generated code
void InitializeComponent(void)
{
this->textBox1 = (gcnew System::Windows::Forms::TextBox());
this->SuspendLayout();
this->textBox1->Location = System::Drawing::Point(27, 58);
this->textBox1->Name = _T"textBox1";
this->textBox1->Size = System::Drawing::Size(216, 20);
this->textBox1->TabIndex = 0;
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->ClientSize = System::Drawing::Size(284, 262);
this->Controls->Add(this->textBox1);
this->Name = _T"Form1";
this->Text = _T"Form1";
this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);
this->ResumeLayout(false);
this->PerformLayout();
}
#pragma endregion
public: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {
this->textBox1->Text=System::Convert::ToString(arr);
}
};
}
1>------ Build started: Project: array, Configuration: Release Win32 ------
1>Compiling...
1>array.cpp
1>c:\users\user\documents\visual studio 2008\projects\array\array\Form1.h(66) : error C2065: '_T' : undeclared identifier
1>c:\users\user\documents\visual studio 2008\projects\array\array\Form1.h(66) : error C2143: syntax error : missing ';' before 'string'
1>c:\users\user\documents\visual studio 2008\projects\array\array\Form1.h(76) : error C2065: '_T' : undeclared identifier
1>c:\users\user\documents\visual studio 2008\projects\array\array\Form1.h(76) : error C2143: syntax error : missing ';' before 'string'
1>c:\users\user\documents\visual studio 2008\projects\array\array\Form1.h(77) : error C2065: '_T' : undeclared identifier
1>c:\users\user\documents\visual studio 2008\projects\array\array\Form1.h(77) : error C2143: syntax error : missing ';' before 'string'
1>c:\users\user\documents\visual studio 2008\projects\array\array\Form1.h(85) : warning C4800: 'char *' : forcing value to bool 'true' or 'false' (performance warning)
1>Build log was saved at "file://c:\Users\User\Documents\Visual Studio 2008\Projects\array\array\Release\BuildLog.htm"
1>array - 6 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========