Click here to Skip to main content
12,065,060 members (38,628 online)
Rate this:
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;");
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;
textBox3.AppendText(textBox_name.Text + "       " + textBox_num.Text);
MessageBox.Show("your contact saved successfully");
Posted 1-Oct-12 13:48pm
Edited 1-Oct-12 19:02pm

1 solution

Rate this: bad
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:[^],[^],[^].

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:[^],[^].

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:[^],[^],[^],[^],[^],[^],[^],[^].

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.


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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web03 | 2.8.160204.4 | Last Updated 2 Oct 2012
Copyright © CodeProject, 1999-2016
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