diff --git a/Project3.sln b/Project3.sln new file mode 100644 index 0000000..e450e09 --- /dev/null +++ b/Project3.sln @@ -0,0 +1,35 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.32002.261 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Project3", "Project3\Project3.vcxproj", "{7AC62CB8-8C8B-4AD9-8D0D-7DB4B756C552}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {7AC62CB8-8C8B-4AD9-8D0D-7DB4B756C552}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {7AC62CB8-8C8B-4AD9-8D0D-7DB4B756C552}.Debug|x64.ActiveCfg = Debug|x64 + {7AC62CB8-8C8B-4AD9-8D0D-7DB4B756C552}.Debug|x64.Build.0 = Debug|x64 + {7AC62CB8-8C8B-4AD9-8D0D-7DB4B756C552}.Debug|x86.ActiveCfg = Debug|Win32 + {7AC62CB8-8C8B-4AD9-8D0D-7DB4B756C552}.Debug|x86.Build.0 = Debug|Win32 + {7AC62CB8-8C8B-4AD9-8D0D-7DB4B756C552}.Release|Any CPU.ActiveCfg = Release|Win32 + {7AC62CB8-8C8B-4AD9-8D0D-7DB4B756C552}.Release|x64.ActiveCfg = Release|x64 + {7AC62CB8-8C8B-4AD9-8D0D-7DB4B756C552}.Release|x64.Build.0 = Release|x64 + {7AC62CB8-8C8B-4AD9-8D0D-7DB4B756C552}.Release|x86.ActiveCfg = Release|Win32 + {7AC62CB8-8C8B-4AD9-8D0D-7DB4B756C552}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {7A7F0AF7-97B2-4897-B481-820B2B0683EA} + EndGlobalSection +EndGlobal diff --git a/Project3/Interop/Interop.DTSLib.1.0.dll b/Project3/Interop/Interop.DTSLib.1.0.dll new file mode 100644 index 0000000..2723581 Binary files /dev/null and b/Project3/Interop/Interop.DTSLib.1.0.dll differ diff --git a/Project3/Interop/Interop.DTSPipeline.1.0.dll b/Project3/Interop/Interop.DTSPipeline.1.0.dll new file mode 100644 index 0000000..8d5b8fd Binary files /dev/null and b/Project3/Interop/Interop.DTSPipeline.1.0.dll differ diff --git a/Project3/Interop/Interop.TxAgg.1.0.dll b/Project3/Interop/Interop.TxAgg.1.0.dll new file mode 100644 index 0000000..eb6290c Binary files /dev/null and b/Project3/Interop/Interop.TxAgg.1.0.dll differ diff --git a/Project3/Interop/Interop.TxBDD.1.0.dll b/Project3/Interop/Interop.TxBDD.1.0.dll new file mode 100644 index 0000000..4a93c08 Binary files /dev/null and b/Project3/Interop/Interop.TxBDD.1.0.dll differ diff --git a/Project3/Interop/Interop.TxDataConvert.1.0.dll b/Project3/Interop/Interop.TxDataConvert.1.0.dll new file mode 100644 index 0000000..caecaa7 Binary files /dev/null and b/Project3/Interop/Interop.TxDataConvert.1.0.dll differ diff --git a/Project3/Interop/Interop.TxSplit.1.0.dll b/Project3/Interop/Interop.TxSplit.1.0.dll new file mode 100644 index 0000000..b907ef3 Binary files /dev/null and b/Project3/Interop/Interop.TxSplit.1.0.dll differ diff --git a/Project3/MyForm.cpp b/Project3/MyForm.cpp new file mode 100644 index 0000000..dd54adf --- /dev/null +++ b/Project3/MyForm.cpp @@ -0,0 +1,12 @@ +#include "MyForm.h" +using namespace System; +using namespace System::Windows::Forms; + +[STAThread] +int main(array^ arg) { + Application::EnableVisualStyles(); + Application::SetCompatibleTextRenderingDefault(false); + + Project3::MyForm form; + Application::Run(% form); +} diff --git a/Project3/MyForm.h b/Project3/MyForm.h new file mode 100644 index 0000000..f19f482 --- /dev/null +++ b/Project3/MyForm.h @@ -0,0 +1,127 @@ +#pragma once + +namespace Project3 { + + using namespace System; + using namespace System::ComponentModel; + using namespace System::Collections; + using namespace System::Windows::Forms; + using namespace System::Data; + using namespace System::Drawing; + using namespace System::Data::Sql; + using namespace System::Data::SqlClient; +// using namespace System::Data::SqlClient::SqlDataReader; + + + /// + /// MyForm + /// + public ref class MyForm : public System::Windows::Forms::Form + { + public: + MyForm(void) + { + InitializeComponent(); + // + //TODO: + // + } + + protected: + /// + /// . + /// + ~MyForm() + { + if (components) + { + delete components; + } + } + private: System::Windows::Forms::DataGridView^ dataGridView1; + private: System::Windows::Forms::DataGridViewTextBoxColumn^ FriendName; + private: System::Windows::Forms::Button^ Refreshbtn; + protected: + + private: + /// + /// . + /// + System::ComponentModel::Container ^components; + +#pragma region Windows Form Designer generated code + /// + /// + /// . + /// + void InitializeComponent(void) + { + this->dataGridView1 = (gcnew System::Windows::Forms::DataGridView()); + this->FriendName = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn()); + this->Refreshbtn = (gcnew System::Windows::Forms::Button()); + (cli::safe_cast(this->dataGridView1))->BeginInit(); + this->SuspendLayout(); + // + // dataGridView1 + // + this->dataGridView1->AllowUserToOrderColumns = true; + this->dataGridView1->ColumnHeadersHeightSizeMode = System::Windows::Forms::DataGridViewColumnHeadersHeightSizeMode::AutoSize; + this->dataGridView1->Columns->AddRange(gcnew cli::array< System::Windows::Forms::DataGridViewColumn^ >(1) { this->FriendName }); + this->dataGridView1->Location = System::Drawing::Point(12, -2); + this->dataGridView1->Name = L"dataGridView1"; + this->dataGridView1->RowHeadersWidth = 51; + this->dataGridView1->RowTemplate->Height = 24; + this->dataGridView1->Size = System::Drawing::Size(333, 378); + this->dataGridView1->TabIndex = 0; + this->dataGridView1->CellContentClick += gcnew System::Windows::Forms::DataGridViewCellEventHandler(this, &MyForm::dataGridView1_CellContentClick); + // + // FriendName + // + this->FriendName->HeaderText = L"Name"; + this->FriendName->MinimumWidth = 6; + this->FriendName->Name = L"FriendName"; + this->FriendName->Width = 125; + // + // Refreshbtn + // + this->Refreshbtn->Location = System::Drawing::Point(1130, 323); + this->Refreshbtn->Name = L"Refreshbtn"; + this->Refreshbtn->Size = System::Drawing::Size(239, 53); + this->Refreshbtn->TabIndex = 1; + this->Refreshbtn->Text = L"Refresh"; + this->Refreshbtn->UseVisualStyleBackColor = true; + this->Refreshbtn->Click += gcnew System::EventHandler(this, &MyForm::Refreshbtn_Click); + // + // MyForm + // + this->AutoScaleDimensions = System::Drawing::SizeF(8, 16); + this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font; + this->ClientSize = System::Drawing::Size(1381, 377); + this->Controls->Add(this->Refreshbtn); + this->Controls->Add(this->dataGridView1); + this->Name = L"MyForm"; + this->Text = L"MyForm"; + (cli::safe_cast(this->dataGridView1))->EndInit(); + this->ResumeLayout(false); + + } +#pragma endregion + private: System::Void dataGridView1_CellContentClick(System::Object^ sender, System::Windows::Forms::DataGridViewCellEventArgs^ e) { + } + private: System::Void Refreshbtn_Click(System::Object^ sender, System::EventArgs^ e) { + SqlConnection^ SqlCon = gcnew SqlConnection(); + SqlCommand^ SqlCom = gcnew SqlCommand(); + DataTable^ SqlDt = gcnew DataTable(); + SqlDataAdapter^ SqlDtA = gcnew SqlDataAdapter(); + SqlDataReader^ SqlRd = gcnew SqlDataReader(); + SqlCon->ConnectionString = "Data Source=LAPTOP-ALEX\SQLEXPRESS;Initial Catalog=PhonesFriends;Integrated Security=False"; + SqlCon->Open(); + SqlCom->Connection = SqlCon; + SqlCom->CommandText = "SELECT FriendName FROM PhonesFriends"; + SqlRd = SqlCom->ExecuteReader(); + SqlDt->Load(SqlRd); + dataGridView1->DataSource = SqlDt; + + } + }; +} diff --git a/Project3/MyForm.resx b/Project3/MyForm.resx new file mode 100644 index 0000000..d52c6a8 --- /dev/null +++ b/Project3/MyForm.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + \ No newline at end of file diff --git a/Project3/Project3.vcxproj b/Project3/Project3.vcxproj new file mode 100644 index 0000000..e3afe59 --- /dev/null +++ b/Project3/Project3.vcxproj @@ -0,0 +1,174 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + {7AC62CB8-8C8B-4AD9-8D0D-7DB4B756C552} + v4.7.2 + ManagedCProj + Project3 + 10.0 + + + + Application + true + v142 + true + Unicode + + + Application + false + v142 + true + Unicode + + + Application + true + v142 + true + Unicode + + + Application + false + v142 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + + Level3 + WIN32;_DEBUG;%(PreprocessorDefinitions) + + + + + + + + Level3 + _DEBUG;%(PreprocessorDefinitions) + + + + + + + + Level3 + WIN32;NDEBUG;%(PreprocessorDefinitions) + + + + + + + + Level3 + NDEBUG;%(PreprocessorDefinitions) + + + + + + + + + + + + + + + + + + CppForm + + + + + MyForm.h + + + + + 0 + 1 + f480240e-915b-4fca-83f4-59de3c57a7cc + 0 + tlbimp + false + true + + + 0 + 1 + 8eca2a6a-031e-4d1d-8a60-61482b708644 + 0 + tlbimp + false + true + + + 0 + 1 + 5d932e44-ae95-4e16-8226-d95bbce5070a + 0 + tlbimp + false + true + + + 0 + 1 + f438d025-d8f5-4383-b78c-1374fa201c46 + 0 + tlbimp + false + true + + + + + + \ No newline at end of file diff --git a/Project3/Project3.vcxproj.filters b/Project3/Project3.vcxproj.filters new file mode 100644 index 0000000..2ec3e5c --- /dev/null +++ b/Project3/Project3.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Исходные файлы + + + + + Файлы заголовков + + + \ No newline at end of file