List Info

Thread: C-Sharp (C#) Group: Re: Parsing class doc




C-Sharp (C#) Group: Re: Parsing class doc
user name
2006-05-08 10:49:58
Sorry I should have said this is a utility class. Create a new Console Application, add this class to the solution (don't copy it over the existing code VS creates for you) and call it using Demo dm = new Demo();
dm.blah

Liam

On 5/8/06, tyjunior <gmail.com">cppisfungmail.com> wrote:

When I try to compile, I get this error:

error CS5001: Program prog.exe does not have an entry point defined

I read online that it has something to do with not having a main(), I'm
guessing the public Demo would be considered a main? I wasn't sure on
how to modify it so this error would go away. This is the only error I
get when I try to compile.




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---

C-Sharp (C#) Group: Re: Parsing class doc
user name
2006-05-08 18:12:46
public static void Main()
{
    Demo dm = new Demo();
    dm.ProcessXmlInput(...);
    dm.ProcessPerson(...);
    dm.CheckAndAddToCollection(NameValueCollection
Collection(....);
}

I thought in the demo class it already reads from command
line to get
the XML Document? What would be the parameters of the 3
functions, and
would they be called in the following manner? I'm actually
compiling
these programs using mcs.exe and mono to simulate, and not
using VS.
Thank you.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---

C-Sharp (C#) Group: Re: Parsing class doc
user name
2006-05-08 20:13:17
public static void Main(string[] args)
{
      Demo dm = new Demo();
       dm.ProcessXmlInput(args[0]);
}

I'm using the following and when I try to run the
application after the
successful compliation with the input.xml file I get the
following
error:

Unhandled Exception: System.Xml.XmlException: Text node
cannot appear
in this state. Line 1, position 0.
in <0x0005a> System.Xml.XmlTextReader:ReadText (bool)
in <0x00200> System.Xml.XmlTextReader:ReadContent ()
in <0x001a0> System.Xml.XmlTextReader:Read ()
in <0x0008d> System.Xml.XmlReader:MoveToContent ()
in <0x00056> Demo.Demo:ProcessXmlInput (string)
in <0x00050> Demo.Demo:Main (string[])


I'm not sure if the code for main is setup correctly, or if
there is
other things I should include. Thank you.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )