What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » C# Programming Help

C# Programming Help
Author: Message:
Weyzza
Veteran Member
*****

Avatar
SoCal sunset > *

Posts: 1170
Reputation: 29
– / Male / –
Joined: May 2003
RE: C# Programming Help
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.
Registered 7700 days, 5 hours, 31 minutes, 35 seconds ago.
Happy Birthday, WDZ

11-14-2005 04:34 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
C# Programming Help - by matty on 11-14-2005 at 12:31 AM
RE: C# Programming Help - by matty on 11-14-2005 at 01:54 AM
RE: C# Programming Help - by ^_^ on 11-14-2005 at 02:02 AM
RE: C# Programming Help - by matty on 11-14-2005 at 02:05 AM
RE: C# Programming Help - by brian on 11-14-2005 at 02:37 AM
RE: C# Programming Help - by matty on 11-14-2005 at 02:42 AM
RE: C# Programming Help - by brian on 11-14-2005 at 02:57 AM
RE: C# Programming Help - by matty on 11-14-2005 at 03:08 AM
RE: C# Programming Help - by brian on 11-14-2005 at 03:10 AM
RE: C# Programming Help - by matty on 11-14-2005 at 03:29 AM
RE: C# Programming Help - by ShawnZ on 11-14-2005 at 03:31 AM
RE: C# Programming Help - by matty on 11-14-2005 at 03:34 AM
RE: C# Programming Help - by ShawnZ on 11-14-2005 at 03:34 AM
RE: RE: C# Programming Help - by matty on 11-14-2005 at 04:26 AM
RE: C# Programming Help - by ShawnZ on 11-14-2005 at 04:33 AM
RE: C# Programming Help - by Weyzza on 11-14-2005 at 04:34 AM
RE: C# Programming Help - by matty on 11-14-2005 at 04:46 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On