C++ CLR Windows

This is my first time dealing with a full project using something other than the console window, so if anyone could help me it would be much appreciated.

I created a new C++/CLR/Empty Project, added Windows to Configuration Properties>Linker>System>SubSystem and added "Main" to the Advanced>Entry Point.

The header files that opened as default I have left, and lastly my BMI.cpp file has the header file included.

On my main page .cpp I have:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "MAINPAGE.h"

#include "BMI.h"

using namespace System;

using namespace System::Windows::Forms;

void Main(){

Application::EnableVisualStyles(); Application::SetCompatibleTextRenderingDefault(false);

MYPORTFOLIO::MAINPAGE MAINPAGEObject;
Application::Run(%MAINPAGEObject);
}


This is where my error is:

this->Load += gcnew System::EventHandler(this, &BMI::BMI_Load);

And the error message:

http://pastebin.com/7Sb0UM4V
Last edited on
.
Topic archived. No new replies allowed.