4.
using namespace System::Data::OleDb;
5.
using namespace System::Data::SqlClient;
6.
int main(array ^args){
7.
ADOX::Catalog ^ Katalog = gcnew ADOX::Catalog();
8.
try {
9.
Katalog->Create("Provider=Microsoft.Jet." + "OLEDB.4.0;Data
10.
Source=C:\\new_BD.mdb");
11.
MessageBox::Show("Ma`lumotlar bazasi C:\\new_BD.mdb
muvaffaqiyatli yaratildi"); }
12.
catch(System::Runtime::InteropServices::COMException ^
Situasiya){
13.
MessageBox::Show(Situasiya->Message); }
14.
finally { Katalog = nullptr; }
15.
auto Ulanish = gcnew OleDbConnection("Provider=
Microsoft.Jet.OLEDB.4.0;Data Source=C:\\new_BD.mdb");
Do'stlaringiz bilan baham: |