[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;
}
I'm getting an error saying:
fatal error C1075: end of file found before the left brace '{'
Does anyone know how to fix this?
@disch: but wouldnt it say in the header file? excuse my ignorace, but i use mingw, not visual studios so i dont know the speficity (?) of the error commands. i only ask because i know gcc does
@DTSCode: Not necessarily. It's perfectly legal for a header to have mismatching {braces}. Remember header files are not compiled, they're #included. #include is a glorified copy/paste.
This is perfectly legal:
1 2
// a.h
{
1 2
// b.h
}
1 2 3 4 5 6
// main.cpp
int main()
#include "a.h"
return 0;
#include "b.h"