Posts: 3146 Reputation: 43
32 / /
Joined: Jan 2003
RE: C# Programming Help
quote:Originally posted by Matty
quote:Originally posted by nvez
What about removing the { .. } after namespace DateChecker ?
Mehish, tbh C++ is easier for such stuff.
Nope still recieving errors. Saying its missing {
Maybe its because you're missing a { !!
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
Attachment:Screenshot-Mozilla Firefox.png (100.29 KB) This file has been downloaded 183 time(s). This post was edited on 11-14-2005 at 03:50 AM by ShawnZ.
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
Posts: 3146 Reputation: 43
32 / /
Joined: Jan 2003
RE: C# Programming Help
Does [STAThread] need {...}?
quote:Originally posted by Matty
I code in VB not C# and when I was editing it there were equal number of { as } but posted the original.
BS, why are you getting a different error now then.
This post was edited on 11-14-2005 at 04:36 AM by ShawnZ.
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
quote:Originally posted by ShawnZ
Does [STAThread] need {...}?
I don't think it does.
quote:Originally posted by http://www.csharp-station.com/Tutorials/Lesson16.aspx
Listing 16-1 also contains another attribute you're likely to see, the STAThreadAttribute attribute. You'll often see this attribute applied to the Main() method, indicating that this C# program should communicate with unmanaged COM code using the Single Threading Apartment . It is generally safe to use this attribute all the time because you never know when a 3rd party library you're using is going to be communicating with COM. The following excerpt shows how to use the STAThreadAttribute attribute:
[STAThread]
static void Main(string[] args)
...
This post was edited on 11-14-2005 at 04:36 AM by Weyzza.