How to patch an error C1004: unexpected end of the file

Hello everyone,

I am trying to create a GUI for an app, so I am following a tutorial on internet: https://www.youtube.com/watch?v=QCnyqMWPkQk

It leads me to this code:

include "MyForm.h"
using namespace System;
using namespace System::windows::Forms;
[STAThread]
int main()
{
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
Project1337::MyForm form;
Application::Run(%form);
return 0;
}
fatal error C1004: unexpected end of the file

It displays an error but I don’t know how to fix it ;(

If I put a ; after the } at the end, it becomes:
error C4430:specifier of the type missing - int is taken into account by default. Note: C++ does not take into account int by default

Can someone please help me to patch this error please ;(

Thank you so much!

P.S:I am French so I had to translate the error display messages
It's probably something in MyForm.h. Check the braces, etc, there.
Topic archived. No new replies allowed.