P
Pol
Hi,
Currently I'm using Visual Studio 2005 .net. I started a new project 2
weeks ago. The application had no error, but now VS tells me:
<pre>Fehler 1 error C2143: syntax error : missing ';' before 'using' d:
\Visual Studio 2005\Projects\thoughtbox\thoughtbox\thoughtbox.cpp 6
</pre>
But I never modified anything in this file, and there is even no
visible error. I don't want to start a new project, as told older
posts. I even opened the source files in an external editor and saved
them new.
Here is the code of thoughtbox.cpp:
<pre>
// thoughtbox.cpp : main project file.
#include "stdafx.h"
#include "Form1.h"
using namespace thoughtbox;
[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;
}
</pre>
Currently I'm using Visual Studio 2005 .net. I started a new project 2
weeks ago. The application had no error, but now VS tells me:
<pre>Fehler 1 error C2143: syntax error : missing ';' before 'using' d:
\Visual Studio 2005\Projects\thoughtbox\thoughtbox\thoughtbox.cpp 6
</pre>
But I never modified anything in this file, and there is even no
visible error. I don't want to start a new project, as told older
posts. I even opened the source files in an external editor and saved
them new.
Here is the code of thoughtbox.cpp:
<pre>
// thoughtbox.cpp : main project file.
#include "stdafx.h"
#include "Form1.h"
using namespace thoughtbox;
[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;
}
</pre>