473,385 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Corrupt Project

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(fal se);

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

Apr 23 '07 #1
5 1516
Pol wrote:
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>
I bet you forgot the semicolon at the end of a class declaration.
>
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)
{
This isn't C++ code.

--
Ian Collins.
Apr 23 '07 #2
Pol wrote:
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;
Well, I can try to suggest you to check the end of the file Form1.h...
could there be a missing semicolon or something like that?

Regards,

Zeppe
Apr 23 '07 #3
Pol
On Apr 23, 10:16 am, Zeppe
<zeppe.remove.all.this.long.comm...@email.itwrot e:
Pol wrote:
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;

Well, I can try to suggest you to check the end of the file Form1.h...
could there be a missing semicolon or something like that?

Regards,

Zeppe
@Ian: It's C++ .net.

@Zeppe: It's the entire code posted above and there is surely no
semikolon missing.

:(

Apr 23 '07 #4
On Mon, 23 Apr 2007 04:20:59 -0700, Pol wrote:
On Apr 23, 10:16 am, Zeppe
<zeppe.remove.all.this.long.comm...@email.itwrot e:
>Pol wrote:
Hi,
Currently I'm using Visual Studio 2005 .net.
[...]
@Ian: It's C++ .net.
This ng deals with *standard* C++; you'll probably be more likely to find
help in a .NET/C++ forum.

--
Lionel B
Apr 23 '07 #5
Pol wrote:
>
@Zeppe: It's the entire code posted above and there is surely no
semikolon missing.

:(
Dear Pol,

the code is not completely there. As I suggested you, you should check
the file Form1.h

If you forget a semicolon somewhere at the end of the file Form1.h, the
error can appear while compiling the file thoughtbox.cpp.

Post the file Form1.h and we can see what there is at the end, that's
the only way to understand where the problem lays.

Regards,

Zeppe
Apr 23 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Vinay | last post by:
Hi I have a corrupt word file. I am able to open it with the code given below tr Dim pInfo As System.Diagnostics.ProcessStartInfo = New System.Diagnostics.ProcessStartInfo( pInfo.UseShellExecute...
12
by: Nick Stansbury | last post by:
Hi, Access 2003. Running over terminal server on a Windows Server 2003 box. The error occurs on every machine that I've tried copying the file to. Latest Jet SP & Office SP. Database hasn't been...
4
by: Harris | last post by:
Can anyone please help? I have read the postings on the error "The Visual Basic for Applications Project in the database is corrupt" but none report the particular problem I am experiencing, i.e.,...
1
by: Trond A. S. Andersen | last post by:
Hi all, I'm working on a project in which i need to send mail attachments in the form of Excel documents from a .NET C# application. I've written a class which creates the Excel document using...
1
by: Joe | last post by:
Some how I believe my project got corrupt. I added a new form to my project and the keyword highlighting and intelsense stopped working. If I would complie it would come back for a short time. ...
2
by: Simon | last post by:
Dear reader, I can't repair this with Tools>>Database utilities>>Compact and repair database.... And another way around: after creating a new database and start import all
3
by: rdemyan via AccessMonster.com | last post by:
One of my users had a corrupt front end that wouldn't open. My app is launched using a launching application (logon app). The logon app has a button for downloading a "fresh" copy of the front...
4
by: GS | last post by:
How do I fix this corrupt resource file header problem? Corrupt .resources file. Got an unexpected EndOfStreamException while trying to read the ResourceReader header. When I open up properties,...
2
by: wevans | last post by:
I designed a db in Access 07 and opened it up once in Access 2003. No when I open it up in 07 again I get this message... "The database cannot be opened because the VBA project contained in it...
1
by: ianoble | last post by:
Hi all, I am running a simple command line Get for a networked VSS database. The command executes properly until it reaches a directory that is corrupted. Because the database is not local, I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.