Click here to Skip to main content
11,481,404 members (64,965 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++
like these?
OleDbConnection coldb = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\Souri\Documents\Database3.accdb;;Jet OLEDB:Database Password=123;");
coldb.Open();
OleDbCommand command = new OleDbCommand();
command.Connection = coldb;
command.CommandText = "INSERT INTO PhoneBook ([name],[phone num]) VALUES (@param1,@param2)";
command.Parameters.AddWithValue("@param1", textBox_name.Text);
command.Parameters.AddWithValue("@param2", textBox_num.Text);
command.CommandType = CommandType.Text;
command.ExecuteNonQuery();
coldb.Close();
textBox3.AppendText(textBox_name.Text + "       " + textBox_num.Text);
MessageBox.Show("your contact saved successfully");
Posted 1-Oct-12 13:48pm
eli551340
Edited 1-Oct-12 19:02pm
JF201553.7K
v3
Comments
Sergey Alexandrovich Kryukov at 1-Oct-12 19:47pm
   
Why?
--SA

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

First, Qt. The answer is "yes", but in the following trivial sense: Qt is the framework for GUI development, so it has nothing to do with your code, which looks like ADO.NET. Please see:
http://en.wikipedia.org/wiki/Qt_%28framework%29[^],
http://qt.digia.com/[^],
http://en.wikipedia.org/wiki/Ado.net[^].

Second, NetBeans. The answer is "no", in two related senses of this word. If you mean a platform framework for Java, your code has nothing to do with Java, please see the last link above. If you mean the NetBeans IDE, I never heard it supported .NET, I'm pretty much sure it does not. Please see:
http://en.wikipedia.org/wiki/NetBeans[^],
http://netbeans.org/[^].

And finally, if we also pay attention for the tag "C++", the general answer will be "no" if you really mean "C++", and not "C++/CLI" (most likely, the only one kind of C++ which can be used for .NET), because your code sample is in C#. If you nevertheless mean "C++/CLI", it should be noted that you can easily re-write your code sample into C++/CLI, because a .NET language is a .NET language. Please see:
http://en.wikipedia.org/wiki/C%2B%2B[^],
http://en.wikipedia.org/wiki/C%2B%2B/CLI[^],
http://www.ecma-international.org/publications/standards/Ecma-372.htm[^],
http://msdn.microsoft.com/en-us/library/xey702bw.aspx[^],
http://en.wikipedia.org/wiki/List_of_.NET_languages[^],
http://en.wikipedia.org/wiki/.net[^],
http://en.wikipedia.org/wiki/Common_Language_Infrastructure[^],
http://en.wikipedia.org/wiki/Common_Language_Runtime[^].

As a conclusion, I must note that the question does not make a whole lot of sense, so I tried to answer formally, but in an informative way.

—SA
  Permalink  
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 2 Oct 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100