a vc7 question:
-
Getting compiler errors for this:
// This is the main project file for VC++ application project
// generated using an Application Wizard.#include "stdafx.h"
#using <mscorlib.dll>
#using <System.dll>
#using <System.Windows.Forms.dll>__gc public class CppForm : public Form {
public:
CppForm(){}
};
#include <tchar.h>
using namespace System;
using namespace System::ComponentModel;
using namespace System::Windows::Forms;// This is the entry point for this application
int _tmain(void)
{
// TODO: Please replace the sample code below with your own.
Console::WriteLine(S"forms World");
Application::Run(new CppForm());
return 0;
}e:\vc7practice\CppForm\CppForm.cpp(10): error C2504: 'Form' : base class undefined
and
e:\vc7practice\CppForm\CppForm.cpp(25): error C2665: 'System::Windows::Forms::Application::Run' : none of the 3 overloads can convert parameter 1 from type 'CppForm __gc *'
What am I doing wrong? Thanks! Appreciate your help, ns
-
Getting compiler errors for this:
// This is the main project file for VC++ application project
// generated using an Application Wizard.#include "stdafx.h"
#using <mscorlib.dll>
#using <System.dll>
#using <System.Windows.Forms.dll>__gc public class CppForm : public Form {
public:
CppForm(){}
};
#include <tchar.h>
using namespace System;
using namespace System::ComponentModel;
using namespace System::Windows::Forms;// This is the entry point for this application
int _tmain(void)
{
// TODO: Please replace the sample code below with your own.
Console::WriteLine(S"forms World");
Application::Run(new CppForm());
return 0;
}e:\vc7practice\CppForm\CppForm.cpp(10): error C2504: 'Form' : base class undefined
and
e:\vc7practice\CppForm\CppForm.cpp(25): error C2665: 'System::Windows::Forms::Application::Run' : none of the 3 overloads can convert parameter 1 from type 'CppForm __gc *'
What am I doing wrong? Thanks! Appreciate your help, ns
Can't help you but just to make things clear, this code is not VC7. It is VC++.NET made with studio.NET. We use VC7 to mean VC++ MFC7 which is also made with studio.NET by selecting a different project option. Art