|
I am looking at moving to C# from VB. What I'm looking for is the differences in syntax and structuring an application.
I've started rewriting some of my utilities in C# and keep hitting syntax differences that are taking me way too long to reaserch.
So a book or research material would be appreciated.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Not sure where I can help you out, but one thing I notice that is fun is switching back and forth between the two. I teach VB.NET at the local college, but develop professionally with C#, and it gets to be funny when I forget ;
Mycroft Holmes wrote: started rewriting some of my utilities in C# and keep hitting syntax differences
What syntax differences are these?
"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
|
|
|
|
|
Try declaring a Property
Trying to close a connection on a SQL Command object with
oCmd.Connection.Close;
generates an error (still to chase that one down)
If statements feel odd, foreach is better, class declaration will require some study and I will probably need to redesign my global declaration of my DAL.
I'm hoping there is a resource that will be specifically for cross training. I can't use a beginners book, they are too painful. More advanced books assume too much and I end up chasing a syntax issue all day.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
[Paul rubs eyes] I thought originally it was you going from C# to VB, but it's the other way around. Must be bed time
"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
|
|
|
|
|
Mycroft Holmes wrote: Trying to close a connection on a SQL Command object with
oCmd.Connection.Close;
generates an error (still to chase that one down)
Close is a method, maybe using "oCmd.Connection.Close();" will work.
|
|
|
|
|
Yah got that one, and I love square brackets .
I'm actually thoroughly enjoying myself rewriting all my VB utilities. It's an opportunity to upgrade them in detail. My DAL originated in VB5/6 and a whole swag of UI hacks are getting thrown out as they are now included in the .net classes.
I downloaded the book Robert recommended, light reading for the next few days. And Google is great, prefix every query with C# and some other poor sod has already asked it!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
You should pick it up really quickly, and if you get stuck using Reflector to translate between VB.NET and C# could be helpful.
|
|
|
|
|
|
Thank, I also found this excellent reference:
clickety[^]
Ya look long enough and you can usually find it on the net. The above link has been very usefull.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi All Tech Gurus..!
I am working as a software engineer in pune and recently I was told by my seniors to complete MCTS certification in 3 months. I have started studying it but I was wondering about some practice tests or dumps to go through parallaly so as to boost my confidence for exams.
PLease send me latest dumps for MCTS 70-536,70-529,70-528 at earliest...plz help me guys..My emaila ddress is dreamstocatch@gmail.com
|
|
|
|
|
koolbuddy4u20004 wrote: PLease send me latest dumps
No....get some books and start studying.
koolbuddy4u20004 wrote: My emaila ddress is dreamstocatch@gmail.com
You realize this is not a wise thing to do in a public forum?
"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
|
|
|
|
|
Hi ,
I am working on some report generation project.Any idea about inserting data from MS SQL SERVER in MS EXCELL Sheet.
G Singh
|
|
|
|
|
What ideas have you come up with?
"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 the end solution but it will set you on the right track. Consider using the OleDbConnection object to open the excel spreadsheet. This will then allow you to execute T-SQL commands against spreadsheet as if it were a table.
Fernando Mendes
Senior .NET Developer, Architect
|
|
|
|
|
Hi,
I'm working on a project at work which involves updating the programming language our program is written in from C to possibly C#.
I'm only at this job for a short period of time, I was wondering if it is possible to update parts of the program at a time to C#, yet still allow the whole program to work?
In other words, is there a way getting a program to run by writing it using two different languages?
Thanks,
Alan
|
|
|
|
|
The only way to do that would be to split the application apart into separate DLLs, one in C and the other in C#. There is more work needed to make sure that both assemblies can work together and that the main application can use both of them and still work correctly. It's possible, but not trivial.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
You can have multiple languages in the same project.
"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
|
|
|
|
|
Paul Conrad wrote: You can have multiple languages in the same project.
Is what you said possible if I am mixing a managed language(C#) and an unmanaged language (C)?
If not, then if I were to compile the unmanaged language(C) in VS would it work?
modified on Thursday, July 31, 2008 6:06 AM
|
|
|
|
|
Almadeus wrote:
I only have Express Editions of VS so I can't directly test this myself right now..
If you go the Express Edition route, you have to have the multiple languages in different projects using the Express Edition for the particular language. Compile the class, then reference it in the other Express Editions...
"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
|
|
|
|
|
Ok thank you very much for your help! I can get it to work for what I am doing!
|
|
|
|
|
Hi guys,
I hope you can help.
I want to start work as a trainee developer and to do this I plan to train myself up in C# and .NET.
In order to prove to employers that I have done this work, I plan to take the Microsoft exam 70-536: TS: Microsoft .NET Framework, Application Development Foundation.
However, the only self study material available at the moment is the Microsoft self paced kit. I've read mixed revues about this book unfortunately. Some people say it's good but a lot say it's not and apparently it contains many errors which could easily confuse beginners. I see that a second edition of the book is coming out in October though, so what I thought I'd do is wait until the second edition comes out and, in the mean time, begin studying C#.
Is this a good idea, heading towards this exam?
I was wondering if anyone knew of a good book to start studying C#? I was thinking of the Microsoft book 'Visual C# 2008 Step by Step' by John Sharp. I've looked at this and a couple of other books; they all come with CD's but none of them say if the CD includes any sort of version of C# to practice on. Could anyone tell me if the books would include a copy of C# to practice on or would I have to go out and purchase it?
I'm not at all sure how these things work so forgive me if I sound naive.
Thanks very much,
Dan
|
|
|
|
|
Dan - you can download the express editions (free) of things like Visual C# 2008 directly from Microsoft. I'm also biased against people who have little real experience, but have passed an MS exam as they don't really end up with the depth and breadth I would expect. I would rather that a developer had spent their time writing sample programs, helping out here on the forums and generally shown a bit of get-up-and-go.
|
|
|
|
|
|
You might want to move this to the ASP.NET forum.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
Wrong forum, better chance at getting help is in the ASP.NET forum.
"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
|
|
|
|