I have this error : "no appropriate default constructor available " in Form1.h.
Form1.h
#pragma once
#include <time.h>
#include <windows.h>
ref class CCenter;
namespace RCK {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
/// <summary>
/// Summary for Form1
///
/// WARNING: If you change the name of this class, you will need to change the
/// 'Resource File Name' property for the managed resource compiler tool
/// associated with all .resx files this class depends on. Otherwise,
/// the designers will not be able to interact properly with localized
/// resources associated with this form.
/// </summary>
public ref class Form1 : public System::Windows::Forms::Form
{
public:
Form1(void)
{
InitializeComponent();
CCenter^ Engine = gcnew CCenter(0);
//
//TODO: Add the constructor code here
//
}
...
Center.h
#pragma once
#include "StandsQue.h"
#include "Giver.h"
#include "StandsQue.h"
#include "Form1.h"
public ref class CCenter
{
public:
CCenter();
~CCenter(void);
void AddGiver(void);
void Work(void);
void AddStand(System::Int32 StandsNumber);
private:
RCK::Form1 Interfejs;
};
Center.cpp
#include "StdAfx.h"
#include "Center.h"
#include "StandsQue.h"
#include "Form1.h"
CCenter::CCenter()
{
//Interfejs.DocStands->Items->Add("1")->SubItems->Add("Udalo sie");
}
CCenter::~CCenter(void)
{
}
void CCenter::AddGiver(void)
{
}
void CCenter::Work(void)
{
}
void CCenter::AddStand(System::Int32 StandsNumber)
{
}
Someone can help ?