473,749 Members | 2,443 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\t houghtbox\thoug htbox\thoughtbo x.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;

[STAThreadAttrib ute]
int main(array<Syst em::String ^^args)
{
// Enabling Windows XP visual effects before any controls are created
Application::En ableVisualStyle s();
Application::Se tCompatibleText RenderingDefaul t(false);

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

Apr 23 '07 #1
5 1544
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\t houghtbox\thoug htbox\thoughtbo x.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;

[STAThreadAttrib ute]
int main(array<Syst em::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\t houghtbox\thoug htbox\thoughtbo x.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.a ll.this.long.co mm...@email.itw rote:
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\t houghtbox\thoug htbox\thoughtbo x.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.a ll.this.long.co mm...@email.itw rote:
>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
3202
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 = Tru pInfo.FileName = "c:\corrupt.doc Dim p As Process = System.Diagnostics.Process.Start(pInfo Catch ex As Exceptio MsgBox(ex.ToString End Tr
12
9503
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 converted. A mixture of modules, forms, linking tables & temp. tables at the access end. Exporting to a new database doesn't work (same error). Importing from a new database doesn't work (same error). Trying to open any form or module in code view...
4
10530
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., this error only occurs running my program on computers of some of my clients. To elaborate: I have a program that is being used by around 60 clients all over the world. My program is an mde file in Access2003. It works absolutely without hitch...
1
8234
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 the automation features provided by the Excel.Application component. The Excel workbooks/documents are stored locally before I call my SendExcelDocument() method in order to attatch each document to an instance of
1
1779
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. I saw a message about a blank line in the licenses.licx file. I removed the blank line and it seemed to fix my problem. But now I have another major problem. My ActiveX control doesn't work anymore. When I run my application I get and error:
2
8671
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
2208
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 end from the server to the user's PC. I thought that this was a good idea since Access seems susceptible to corruption. I told the user to open the logon form and click the "Download" button, which would then replace the corrupt front end on his...
4
6745
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, resources, they looked ok to me. I even click on each item and they open up in pain just fine. what can I do?
2
4042
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 cannot be read. The database can be opened only if the VBA project is first deleted. Deleting the VBA project removes all code from modules, forms and reports" Is there any way to extract the vba code and modules from the corrupt db? I would...
1
3104
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 don't have access to run the analyze utility to try and fix the issue. Plus, I've been told it's been run before and has not resolved anything. To my question...how can I duplicate the functionality of the UI that skips corrupted files/folder, in...
0
9388
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9254
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8256
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6800
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6078
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4608
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3319
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.