p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Wrox Book Feedback (http://p2p.wrox.com/forumdisplay.php?f=55)
-   -   error cs0234-come from the example of a wrox book (http://p2p.wrox.com/showthread.php?t=2324)

crystallac August 1st, 2003 03:18 AM

error cs0234-come from the example of a wrox book

// C#Example01.cs
using System;
using System.Xml;   //my marker: error cs0234 ÐÐ
using System.Text;
using System.IO;

namespace myApp
  class mainClass
    static void Main(string[] args)
      FileStream myFile = new FileStream("test.xml", FileMode.Open);
      XmlTextReader myReader = new XmlTextReader(myFile);
      Console.Write("{0,-20}{1,-20}{2,-20}\n", "Type", "Name", "Value");
      Console.Write("{0,-20}{1,-20}{2,-20}\n", "--------------------",
                    "--------------------", "--------------------");
                      myReader.Name, myReader.Value);

<?xml version="1.0"?>
&nbsp;&nbsp;&nbsp;<name>Alfred Q. Anybody</name>
&nbsp;&nbsp;&nbsp;<address>123 Anywhere Road</address>

>csc Example01.cs&nbsp;&nbsp;
error cs0234 ...

Example01.cs and test.xml is in the same fold.
why? please.

crystallac August 1st, 2003 03:43 AM

     the correct result is below:

          csc /reference:System.Xml.dll Example01.cs

Hal Levy August 1st, 2003 07:55 AM

As explained in This Topic. This is a forum for FEEDBACK about wrox books.

Please post your book specific question in the appropriate forum that relates to that book. If it's a book not listed post it in "Other Wrox Books" With the name of the book and Page number your talking about.

Hal Levy
Unemployed (Thanks GWB)
NOT a Wiley/Wrox Employee

crystallac August 5th, 2003 10:47 PM

Hi,Hal Levy:
   Thank you for your prompt£¡

All times are GMT -4. The time now is 07:46 AM.

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