Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional C# 4.0 and .NET 4
This is the forum to discuss the Wrox book Professional C# 4.0 and .NET 4 by Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner; ISBN: 9780470502259
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional C# 4.0 and .NET 4 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 December 15th, 2010, 02:22 PM
Authorized User
Points: 267, Level: 5
Points: 267, Level: 5 Points: 267, Level: 5 Points: 267, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2010
Posts: 56
Thanks: 17
Thanked 2 Times in 2 Posts
Default Page 24: Failed at the first Hurdle!

After following the instructions on page 24, I created First.exe.

However, when I try to run First.exe from the command prompt I get errors.

Here is the code:
Any clues?

Thanks
Ken

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>csc c:\First.cs
Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.1
Copyright (C) Microsoft Corporation. All rights reserved.


C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>csc First.exe
Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.1
Copyright (C) Microsoft Corporation. All rights reserved.

error CS2015: 'c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\First.exe'
is a binary file instead of a text file
error CS1504: Source file 'c:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\First.exe' could not be opened ('Unspecified error ')

Last edited by ken evans; December 15th, 2010 at 02:25 PM..
 
Old December 15th, 2010, 02:28 PM
Authorized User
Points: 267, Level: 5
Points: 267, Level: 5 Points: 267, Level: 5 Points: 267, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2010
Posts: 56
Thanks: 17
Thanked 2 Times in 2 Posts
Default Found the problem

OK, so I was trying to compile an already compiled program!
10 cents in the dummies box!

Ken




Similar Threads
Thread Thread Starter Forum Replies Last Post
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 1 Page 24 Data Grid + Linked List Box not working VS2008 nineismine BOOK: Beginning ASP.NET 2.0 and Databases 0 May 10th, 2009 03:11 PM
Call to Server.Execute failed while loading page i_shahid Classic ASP Basics 1 February 21st, 2008 04:48 PM
splitting large value 2^24 scoobie C++ Programming 0 November 27th, 2005 03:52 PM
error: Failed to render the page kimonkod Crystal Reports 3 July 2nd, 2003 12:09 PM





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