|
-
Mar 21st, 2003, 05:04 PM
#1
Thread Starter
Lively Member
[STAThread]
WhenI start a new windows app, this code is automatically put in near the bottom of the code. What is it? I've taken out the line and the app still runs, just wondering why the designer puts it there.
-
Mar 21st, 2003, 08:13 PM
#2
yay gay
[STAThread]
Single Threaded Apartement Thread
\m/  \m/
-
Mar 21st, 2003, 10:35 PM
#3
Thread Starter
Lively Member
What is it (what is it used for) / do i need it?
-
Mar 25th, 2003, 09:12 AM
#4
Lively Member
it is for COM interoperability.
if u have some experience writing COM objects, u probably recall COM Threading Model (aka COM Apartment Model).
basically, if u need the Win Form to run also in unmanage code (eg COM client) leave that attribute as it is, if not, u can remove it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|