weird declaration

this the main cpp for my windows form app:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// WindowsFormsApplication1.cpp : main project file.

#include "stdafx.h"
#include "Form1.h"

using namespace WindowsFormsApplication1;

[STAThreadAttribute]   
int main(array<System::String ^> ^args)
{
	
	
	// Enabling Windows XP visual effects before any controls are created
	Application::EnableVisualStyles();
	Application::SetCompatibleTextRenderingDefault(false); 

	// Create the main window and run it
	Application::Run(gcnew Form1());
	return 0;
}

what is this Line:
 
[STAThreadAttribute] //?? 

Last edited on
Never use windows form apps so I haven't seen it, but maybe this helps?
http://blogs.msdn.com/b/jfoscoding/archive/2005/04/07/406341.aspx
thanks .... i already knew that a little bit different than native c++
Topic archived. No new replies allowed.