Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > BOOK: Beginning Visual C#
|
BOOK: Beginning Visual C#
This is the forum to discuss the Wrox book Beginning Visual C#, Revised Edition of Beginning C# for .NET v1.0 by Karli Watson, David Espinosa, Zach Greenvoss, Jacob Hammer Pedersen, Christian Nagel, Jon D. Reid, Matthew Reynolds, Morgan Skinner, Eric White; ISBN: 9780764543821
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 27th, 2003, 04:02 PM
Registered User
 
Join Date: Sep 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with first exercize in the book

     I just installed VS.NET Ent Architect 2003. I have successfully created a couple simple VB Apps, and I am trying C#. The first exercise in "Beginning Visual C#" (p21) is trivial; you only write one line of code:
     Console.WriteLine("Some text");
The wrapper code for this class is autogenerated. I noticed as I typed in lowercase that 'Intellisense' was not converting the statement to mixed case, and as I expected, I got an error when I tried to run it. It's as if it was missing a "Using..." statement.
The auto-generated code had
     Using System;
at the top. I have no such problems when I write VB apps.
     Is there something else I should be including in the "Using..." section? Or is there some basic configuration of VS.NET 2003 that is not properly set?
Thanks.


 
Old September 27th, 2003, 05:07 PM
Authorized User
 
Join Date: Aug 2003
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Chris Beach Send a message via AIM to Chris Beach Send a message via MSN to Chris Beach Send a message via Yahoo to Chris Beach
Default

Thats because C# and pretty much everything cept VB is case sensitive, so iInt, iint and Iint are all different variable names.

So VS can't autocorrect capitilization for you, I'm not sure why you can't have an option to assume 'if it 'xxx' exists already in the language or defined, then captilize the same as before'...because for beginners it is harder to remember and it must slow down the typing of the code.

One tip though, CTRL+SPACE will autocomplete (or bring up a list if VS is unsure) the word, so typing 'using S' then pressing ctrl+space will put in 'ystem' for you.

Also watch the intellisense that does come up, esp on lines like 'xxx var=new' as intellsense will automattically pick the right bit after the new so you can just type '('



 
Old September 28th, 2003, 06:47 PM
Registered User
 
Join Date: Sep 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

That was it!
With all of Microsoft's hype about how unified Visual Studio is, it didn't occur to me that their 'intellisense' didn't correct the casing on text as you type, the way it does with VB. Live and learn!

 
Old December 18th, 2003, 03:20 PM
Registered User
 
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the post. It was pretty frustrating when I couldn't:) even do the first one! I also come from a VB background.

 
Old December 21st, 2003, 06:32 PM
Registered User
 
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

FYI - the first exercise is included in the download material from wrox for this book.
I haven't gotten to the next chapter but I'm assuming that all/most/many of the exercises are included.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Errata and No Forum for my book? rwebb616 Beginning VB 6 1 May 31st, 2008 09:22 AM
Beginner to the book with problem Happy Tommy BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 July 9th, 2007 01:09 AM
Problem with a program from book karistinakise Java Basics 1 March 14th, 2006 04:31 AM
Problem with code in wrox book.... wvmikep JSP Basics 2 August 24th, 2004 04:31 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.