none
Error for code C++ wrote

    Question

  • // The Speed Typing Game.cpp : main project file.

     

    #include "stdafx.h"

    #include "Form1.h"

     

    using namespace TheSpeedTypingGame;

     

    [STAThreadAttribute]

    int main(array<System:Tongue Tiedtring ^> ^args)

    {

         // Enabling Windows XP visual effects before any controls are created

         Application::EnableVisualStyles();

         Application:Tongue TiedetCompatibleTextRenderingDefault(false);

         // Create the main window and run it

         Application::Run(gcnew Form1());

         return 0;

    }

     

     

    And I get the errors:

    .\The Speed Typing Game.cpp(6) : error C2059: syntax error : 'namespace'

    .\The Speed Typing Game.cpp(6) : error C2238: unexpected token(s) preceding ';'

    .\The Speed Typing Game.cpp(19) : fatal error C1075: end of file found before the left brace '{' at 'c:\documents and settings\barbara\my documents\visual studio 2005\projects\the speed typing game\the speed typing game\Form1.h(23)' was matched

     

    I'm trying to figure out what's wrong because this is the code that C++ wrote as I was making the program and I can't find the problem.

     

    Help really needed,

    Zach

    Friday, July 20, 2007 4:40 AM

Answers

  • I think there is a missing } or missing  in Form1.h

    In fact the error message literally says that.

     

    fatal error C1075: end of file found before the left brace '{' at 'c:\documents and settings\barbara\my documents\visual studio 2005\projects\the speed typing game\the speed typing game\Form1.h(23)' was matched

     

    The solution should be pretty obvious.

    Friday, July 20, 2007 6:43 AM

All replies

  • What kind of the project is this ??
    Friday, July 20, 2007 5:53 AM
  • I think there is a missing } or missing  in Form1.h

    In fact the error message literally says that.

     

    fatal error C1075: end of file found before the left brace '{' at 'c:\documents and settings\barbara\my documents\visual studio 2005\projects\the speed typing game\the speed typing game\Form1.h(23)' was matched

     

    The solution should be pretty obvious.

    Friday, July 20, 2007 6:43 AM