Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer
This is the forum to discuss the Wrox book Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer by Rod Stephens; ISBN: 9780470596906
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 23rd, 2011, 04:39 PM
Authorized User
Points: 139, Level: 2
Points: 139, Level: 2 Points: 139, Level: 2 Points: 139, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 24 Tryit objects not showing up

When I run Debug on the Chapter 24 Tryit, I don't see any of the objects, here are the last couple lines of the Output.

The thread 'vshost.LoadReference' (0xcf0) has exited with code 0 (0x0).
'Parameter.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Documents and Settings\Orchard\My Documents\Visual Studio 2010\Projects\Parameter\Parameter\bin\Debug\Parame ter.exe', Symbols loaded.
The thread '<No Name>' (0x190) has exited with code 0 (0x0).
The program '[2024] Parameter.vshost.exe: Managed (v4.0.30319)' has exited with code 0 (0x0).

I compared the code to the downloaded copy of
Form1.cs, and it looks fine. Any ideas?
  #2 (permalink)  
Old June 23rd, 2011, 05:26 PM
Rod Stephens's Avatar
Wrox Author
Points: 3,166, Level: 23
Points: 3,166, Level: 23 Points: 3,166, Level: 23 Points: 3,166, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts
Default

Do you mean you don't see any of the constructors' messages in the output window? Be sure you're looking at the Output window and not some other window.

A lot of the interesting code for this Try It is in the classes not the main form. You might look there to make sure it looks okay, but the main form should display some text, too, so if you're not seeing anything, I'm not sure what's wrong.

If that doesn't help, you can zip up the project and send it to me at RodStephens@CSharpHelper.com and I'll take a look.
__________________
Rod

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)
  #3 (permalink)  
Old June 23rd, 2011, 05:30 PM
Authorized User
Points: 139, Level: 2
Points: 139, Level: 2 Points: 139, Level: 2 Points: 139, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I should be seeing the Console.WriteLine information. The window says Show output from Debug, which I assume is the correct display.
  #4 (permalink)  
Old June 23rd, 2011, 05:43 PM
Rod Stephens's Avatar
Wrox Author
Points: 3,166, Level: 23
Points: 3,166, Level: 23 Points: 3,166, Level: 23 Points: 3,166, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts
Default

You should see it in a window named "Output." Usually it's one of the tabs at the bottom of the IDE.

You can find it by opening the Debug menu, selecting the Windows submenu, and picking Output.

I think the text you're looking for should be in the same window as the "exited code (0)" message you saw. It would be higher up so perhaps it scrolled off the top?

I'm not sure why else you wouldn't see the messages. Why don't you send me the project and I'll take a look.
__________________
Rod

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)
  #5 (permalink)  
Old June 23rd, 2011, 06:22 PM
Authorized User
Points: 139, Level: 2
Points: 139, Level: 2 Points: 139, Level: 2 Points: 139, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default

While zipping it up, I discovered that the classes are not showing up in the Project folder. When I open the project in VS 2010 they show up in the GUI, but are not there is I try and access them through File, Open File. wierd.
  #6 (permalink)  
Old June 24th, 2011, 01:06 AM
Rod Stephens's Avatar
Wrox Author
Points: 3,166, Level: 23
Points: 3,166, Level: 23 Points: 3,166, Level: 23 Points: 3,166, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts
Default

That is weird.

You should be able to see them in the Solution Explorer. If you click on one there, the Properties window should show you where the file actually is. It doesn't necessarily need to be in the project directory, although that's customary because it's less confusing.

Wherever the files are, you should be able to double-click them in the Solution Explorer to edit them. Perhaps you were editing the wrong versions of the class files?
__________________
Rod

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)
  #7 (permalink)  
Old June 24th, 2011, 02:15 AM
Registered User
 
Join Date: Jun 2011
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Everyone
I'm new to This forum
it is great to join this Forum, hope i'm welcome in ;) http://freeimagestocks.com/content/69/grey.png
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 10 Tryit Mark P. BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer 3 June 20th, 2011 08:20 PM
Chapter 24: Using ITC mparquette BOOK: Excel 2007 VBA Programmer's Reference ISBN: 978-0-470-04643-2 0 February 11th, 2010 08:55 PM
Chapter 24 Setup Application sirmilt BOOK: Beginning Microsoft Visual Basic 2008 ISBN: 978-0-470-19134-7 0 September 4th, 2009 11:23 AM
Chapter 24 Remoting code is missing eschmidt BOOK: Professional VB 2005 ISBN: 0-7645-7536-8 3 February 16th, 2008 09:37 PM
Code of Chapter 24 qazi_nomi BOOK: Beginning ASP 3.0 0 June 23rd, 2004 11:48 PM



All times are GMT -4. The time now is 07:54 PM.


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