Ive been haveing problems with opening new forms.
The problem is I have been using the same code to open for for a while now and
it has only recently started to come up these errors.
c:\users\hamish\documents\visual studio 2010\projects\sose quiz\sose quiz\Incorrect.h(101): error C2065: 'Q1' : undeclared identifier
1>c:\users\hamish\documents\visual studio 2010\projects\sose quiz\sose quiz\Incorrect.h(101): error C2065: 'fQ1' : undeclared identifier
1>c:\users\hamish\documents\visual studio 2010\projects\sose quiz\sose quiz\Incorrect.h(101): error C2061: syntax error : identifier 'Q1'
1>c:\users\hamish\documents\visual studio 2010\projects\sose quiz\sose quiz\Incorrect.h(102): error C2065: 'fQ1' : undeclared identifier
1>c:\users\hamish\documents\visual studio 2010\projects\sose quiz\sose quiz\Incorrect.h(102): error C2227: left of '->ShowDialog' must point to class/struct/union/generic type
It seems to be that the form that i am in cant see the other forms even though I've included them.
I am using Visual Studio 2010 Ultimate by the way.
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
using namespace std;
/// <summary>
/// Summary for Incorrect
/// </summary>
public ref class Incorrect : public System::Windows::Forms::Form
{
public:
Incorrect(void)
{
InitializeComponent();
//
//TODO: Add the constructor code here
//
}
protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
~Incorrect()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::Button^ button1;
protected:
private: System::Windows::Forms::Label^ label1;