|
You could search, Google and MSDN and CP Articles are more faster and reliable. Take a look here[^] in CP
While (true) { Human.isLearnable = true; }
|
|
|
|
|
So I was wondering, which is more used, VB or C#. I was told that C# is the most recent and the most powerful. It doesn't even have to stop there, is there any other languages in the same category thats more powerful?
|
|
|
|
|
There's no "more or less powerful", it all depends on what you're trying to do with the language. Each language/framework has its strengths and weaknesses, there's no "perfect" language.
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Christopher Clarke wrote: which is more used, VB or C#
I use C# and VC++ at work. We have very few applications written on VB.NET. .NET applications written on any language will be converted into MSIL on compilation. So you can't say which language is powerful.
VC++ team blog says, VC++ compiler generates most optimized MSIL compared to other two. I think you will get a slight performance difference, but it is not noticeable.
|
|
|
|
|
N a v a n e e t h wrote: I think you will get a slight performance difference, but it is not noticeable.
WOW!
led mike
|
|
|
|
|
N a v a n e e t h wrote: VC++ team blog says, VC++ compiler generates most optimized MSIL compared to other two.
However, very little of the omptimisation is done when creating the IL code. Most of the optimisation is done by the JIT compiler when creating the native code from the IL code.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
The most used programming language is profanity, because sometimes, you just gotta say "f***".
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John Simmons / outlaw programmer wrote: most used programming language is profanity, because sometimes, you just gotta say "f***"
That has to be the funniest thing I've read/heard today.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
|
F*** yeah, it's the funniest thing I've heard/read thus far, and today is still early here in Southern Cal
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Got my 5! Lost count of how many times I said that today!
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
John Simmons / outlaw programmer wrote: The most used programming language is profanity
Not sure. I believe Lying probably gives profanity a good run for it's money.
led mike
|
|
|
|
|
led mike wrote: John Simmons / outlaw programmer wrote:
The most used programming language is profanity
Not sure. I believe Lying probably gives profanity a good run for it's money. Big Grin
That's the difference between the private/academic world and the business world.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
led mike wrote: I believe Lying probably gives profanity a good run for it's money.
At least if you include buzzwording, bullshitting and statistics...
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
|
Completely correct.
One of my favourite metrics is "number of uses of F*** in the source" over time.
|
|
|
|
|
C#, but more from expressiveness than from "powerfulness".
On the other hand, if you pit a hundred random VB programmers against a hundred random C# programmers in an arm wrestling tournament, the winner will likely be a C# programmer.
|
|
|
|
|
Yeah, with the new C# boxing features
While (true) { Human.isLearnable = true; }
|
|
|
|
|
Christopher Clarke wrote: So I was wondering, which is more used, VB or C#.
Looking at the ms newsgroups and the cp forums, the C# community is 2-3 times more active than VB.NET community.
Christopher Clarke wrote: I was told that C# is the most recent and the most powerful.
C# is a lot newer than VB, but C# and VB.NET were created at about the same time. Although VB.NET was completely rewritten into a fully object oriented language, it still has some syntax quirks from previous versions of VB.
All .NET languages uses the same framework, so there is very little difference in what they can do. There are some small differences, for example in C# you can have unsafe code blocks where you can use pointers, which you can't do in VB.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
I am likely overlooking something obvious and simple, but need help with this nonetheless. I am able to retrieve data from the database; however, when inserting, I get the following compile error:
Error 1 Cannot implicitly convert type 'int' to 'MTA_pre_test.MTATest.StudentsDataTable' E:\Documents\Visual Studio 2008\Projects\MTA_pre_test\MTA_pre_test\Form1.cs 100 25 MTA_pre_test
Here is the code:
private void btnAddData_Click(object sender, EventArgs e)
{
string fname = txtFname.Text;
string lname = txtLname.Text;
StudentsTableAdapter studentTA = new StudentsTableAdapter();
MTATest.StudentsDataTable studentDT = new MTATest.StudentsDataTable();
studentDT = studentTA.Insert(fname, lname);
txtFname.Text = "";
txtLname.Text = "";
}
Thank you in advance.
modified on Monday, October 6, 2008 1:19 PM
|
|
|
|
|
It seems that studentTA.Insert(fname, lname) returns an int so you have error because your studentDT is a MTATest.StudentsDataTable
While (true) { Human.isLearnable = true; }
|
|
|
|
|
After reading from a page on the msdn site, | have modified my code - this is actually an insert to a different table in the same database. I no longer receive errors; however, the code does not insert the record. I googled and found other people experiencing the same problem, where the code is apparently correct, but the insert (or update, as some found) never happens...
private void btnAddAttend_Click(object sender, EventArgs e)
{
string status = txtStatus.Text;
string desc = txtDesc.Text;
bool charge = chkCharge.Checked;
MTATestTableAdapters.AttendanceTableAdapter attendTA = new AttendanceTableAdapter();
attendTA.Insert(status, desc, charge);
txtStatus.Text = "";
txtDesc.Text = "";
chkCharge.Checked = false;
}
What is odd is that when I do a query to find the row count, it increments as if the data has been added. But, if I search for a particular entry, only those entries I manually added to Access appear...
|
|
|
|
|
I think you should use something like attendTA.Update(); or attendTA.Save(); or attendTA.EnythingLikeThat(); (I don't know clearly ) but you have to do something like that to save your changes, take a look on MSDN[^] it surely helps.
While (true) { Human.isLearnable = true; }
|
|
|
|
|
With persistence comes success... the original database file was set to always copy to the debug folder, effectively overwriting changes each time the application shut down. By changing the properties of the database file in my project to "Do Not Copy" the problem was solved. Hope this may be of use to someone in the same position some day.
|
|
|
|
|
Congratulations! =D>
Edward Hoad wrote: Hope this may be of use to someone in the same position some day.
Surely it is
While (true) { Human.isLearnable = true; }
|
|
|
|